Control the leds at FIXME. https://fixme.ch/wiki/LED_Lighting

rorist 37d227bb3c timeout on join 9 months ago
.gitignore ef0dcc6abd rename led-ctrl, ignore pyc files 11 months ago
README.md 62b4582d18 TODO 10 months ago
apache-vhost.conf 9a5b5904b3 apache vhost 11 months ago
app.wsgi dc56eaa20d wsgi file for apache 11 months ago
ips 923a5d36e5 Add IPs 11 months ago
led_ctrl.py 37d227bb3c timeout on join 9 months ago
requirements.txt 54e655d67e Add CORS for Access-Control-Allow-Origin:* header 11 months ago

README.md

Installation

pip3 install --user -r requirements.txt

Usage

curl -XPOST localhost:5000/ctrl -d 'do=off'
curl -XPOST localhost:5000/ctrl -d 'do=on'

TODO

  • Use a JSON payload instead of POST variables ?
  • Keep the state of every strip
  • Check that the state is applied and reapply it if this is not the case
  • Multi color effects (JSON Payload needed)