Version 1 (modified by 6 years ago) (diff) | ,
---|
pilight example
Install pilight on some raspi and have the daemon listen to port 5000.
Use https://github.com/DavidLP/pilight to control the daemon. Install via
pip install --user pilight
Example
from pilight import pilight pilight_client = pilight.Client(host='pick', port=5000) data_on={"protocol": [ "intertechno_old" ], "id": 1, "unit": 0, "on": 1 } data_off={"protocol": [ "intertechno_old" ], "id": 1, "unit": 0, "off": 1 } pilight_client.send_code(data_on) pilight_client.send_code(data_off)