feat: 완전한 Tapo 스마트 플러그 백엔드 시스템 구현
✨ 새로운 기능: - Tapo P110/P100 스마트 플러그 완전 연동 - 동적 기기 관리 (추가/제거/수정) - 실시간 전력 데이터 수집 API - 설정 파일 기반 확장 가능한 아키텍처 🔧 기술 개선: - Docker Compose 파일 통합 (mac-mini 전용 제거) - MariaDB 설정 최적화 (호환성 문제 해결) - 포트 구조 개선 (9304-9307 대역 사용) - Express.js 기반 RESTful API 완성 📚 문서화: - README 전면 업데이트 (구현된 API 반영) - Tapo API 엔드포인트 상세 문서화 - 실제 사용 가능한 curl 예제 추가 🗄️ 데이터베이스: - MariaDB 11 안정화 - Redis 캐시 시스템 구축 - 사용자 권한 모델 준비 🚀 Docker 환경: - 단일 docker-compose.yml로 통합 - 포트 충돌 해결 - 헬스체크 및 자동 재시작 설정
This commit is contained in:
@@ -36,8 +36,6 @@ innodb_read_io_threads = 2
|
||||
innodb_write_io_threads = 2
|
||||
|
||||
# 시계열 데이터 최적화
|
||||
innodb_compression_default = ON
|
||||
innodb_page_compression = ON
|
||||
innodb_adaptive_hash_index = ON
|
||||
|
||||
# 로깅
|
||||
|
||||
40
config/tapo-devices.json
Normal file
40
config/tapo-devices.json
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"devices": [
|
||||
{
|
||||
"id": "mac_mini_power",
|
||||
"name": "Mac Mini M4 Pro 전력",
|
||||
"ip": "192.168.1.101",
|
||||
"email": "your-tapo-email@gmail.com",
|
||||
"password": "your-tapo-password",
|
||||
"location": "서재",
|
||||
"device_type": "server",
|
||||
"enabled": true,
|
||||
"poll_interval": 300000,
|
||||
"description": "Mac Mini M4 Pro 서버의 전력 소비 모니터링"
|
||||
},
|
||||
{
|
||||
"id": "nas_power",
|
||||
"name": "Synology DS1525+ 전력",
|
||||
"ip": "192.168.1.102",
|
||||
"email": "your-tapo-email@gmail.com",
|
||||
"password": "your-tapo-password",
|
||||
"location": "서재",
|
||||
"device_type": "nas",
|
||||
"enabled": true,
|
||||
"poll_interval": 300000,
|
||||
"description": "Synology NAS의 전력 소비 모니터링"
|
||||
}
|
||||
],
|
||||
"default_settings": {
|
||||
"poll_interval": 300000,
|
||||
"retry_attempts": 3,
|
||||
"timeout": 5000,
|
||||
"email": "your-tapo-email@gmail.com",
|
||||
"password": "your-tapo-password"
|
||||
},
|
||||
"notifications": {
|
||||
"power_threshold": 100,
|
||||
"offline_alert": true,
|
||||
"daily_report": true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user