NUGU 스마트홈 디바이스를 제어하기 위한 비공식 API 서버입니다.
반디스마트스위치 BDS03B에서 테스트되었으며, 현재는 전원 제어만 지원합니다.
authorization,widgetId값은 Packet Capture를 통해 얻을 수 있습니다.
- NUGU 스마트홈에서 얻은
authorizationKey - NUGU 스마트홈에서 얻은
widgetIdValue
-
Clone the repository:
git clone https://github.com/bsy0317/SKT-IoT-API.git
-
Navigate to the project directory:
cd SKT-IoT-API -
Install dependencies:
pip install -r requirements.txt
프로젝트 디렉토리에 settings.ini 파일이 필요합니다. settings.ini 파일은 settings_sample.ini 파일을 참고하여 작성하시면 됩니다.
- Python dependencies를 설치합니다.
pip install -r requirements.txtrun_windows.bat스크립트를 실행합니다.
run_windows.bat- Python dependencies를 설치합니다.
pip install -r requirements.txtrun_linux.sh스크립트를 실행합니다.
./run_linux.sh- Endpoint:
/controlDevice/<action> - Methods: GET
- Description: Controls the device by turning it on or off.
- Actions:
on: Turns the device on.off: Turns the device off.
- Endpoint:
/controlDevice/status - Methods: GET
- Description: Checks the status of the device.
This project is licensed under the MIT License - see the LICENSE file for details.