Orb is a MQTT client that listens for commands that will then control a ws2801 pixel LED.
See http://jezra.net/post/2017-01-02_another_orb_device.html and http://www.jezra.net/blog/orb for an example usage. :)
python Paho python library for MQTT
Setup and configure
- mv settings.tmp.py to settings.py
- edit settings.py to match your MQTT broker and topic needs
- run ./orb.py
Orb listens for a MQTT message string containing ACTION (/ HEXCOLOR) (/VARS) commands. HEXCOLOR should be in RRGGBB format.
Turning the Orb on or off
Setting the orb a solid color
Interrupting the current color with an alert flash
By default, the orb will flash the alert color 5 times and then return to the previous color.
Set the number of flashes in an alert
Blinking a certain color continuously
blink will cycle between .5 seconds of the HEXCOLOR and .5 seconds of Off (000000).
Set the time a blink color is on in seconds
On for .1 seconds
On for 2 seconds
set the time a blink color is on and off
on for .1 seconds, off for .75 seconds
Fading to a certain color
Default fade time is 3 seconds
Fade over a number of seconds
"fade/000000/120" oh, the movie is starting :)