Web API for Voltcraft SEM6000 Outlets
$ git clone --recurse-submodules https://github.com/Matthias-pixel/voltcraft-api.git voltcraft-api
$ cd voltcraft-api
- Create a virtual environment
$ virtualenv -p python3 venv
- Enter the virtual environment
$ source venv/bin/activate
- Install packages
$ pip3 install -r requirements.txt
Configure aliases in config.yaml
- Go into the server directory
$ cd server
- Start server
$ python3 -m voltcraft_api
GET /v1/on/{alias}
replace {alias} with the outlet's alias
GET /v1/off{alias}
GET /v1/info/{alias}
GET /v1/list