WS2811 leds driver with REST API based on Flask.
RPi WS281x Python: https://github.com/rpi-ws281x/rpi-ws281x-python
-
Install requirement packages
$ sudo apt update $ sudo apt install python3-venv
-
Clone the repo
$ git clone https://github.com/ptrre/ws2811-rest
-
Run setup.sh script
$ cd ws2811-rest $ chmod +x setup.sh $ ./setup.sh
n = 0 -> turn off leds
n = 1 -> turn on leds
Activate scene number id.
Return the active scene and leds state.
Return parameters of all scenes.