This is an API for the IKEA dioder.
This is what you need to run the API:
- a working Go environment (Instructions)
- Pi-Blaster and the
/dev/pi-blaster
-device - IKEA-Dioder assembled like in the blog post from @lakrizz (It got deleted, the WayBackMachine archived it: The piDioder)
By default, the API listens on port 8080
. There is no API-prefix.
-
color/COLOR
- COLOR can be anything of the following:
- red
- green
- blue
- COLOR can be anything of the following:
-
/hex/HEXCODE
HEXCODE
must be a valid hex-code without#
(3 or 6 characters)
-
/rgb/REDVALUE/GREENVALUE/BLUEVALUE
- The values must be a number within the range
0-255
- The values must be a number within the range