A simple web service that allows you to control LED light strips using a rest API. Using a Ardiuno with wifi to control the LED strip.
It writes the devices and mode to a local file for persistence. No need for a database.
This repo builds a container on docker hub. You can use that if you do not want to build this go project your self. Get the container here.
By default it runs on port 3333. Set a environment variable for PORT to the port number you want to run on.
The rest endpoints are:
The idea is the a Ardiuno will connect to the Rest API, register itself. If its already registered, it will see it and start checking for what colors it should set the LEDs to.
This Adafruit Feather has wifi built into it. It makes it simple to connect it to the API server and it has enough power to run a 5 meter strip of 60 LEDs (WS2812B). I followed the wiring of the LEDs from Adafruit Uber guide it get it working.
Content type
Image
Digest
Size
81.7 MB
Last updated
about 8 years ago
docker pull blee1170/led-control