Bulb names are configurable but I'm lazy. |
Yes, it's just the Zenity color selection dialog. |
These are quick and dirty scripts using Zenity, but they work (at least under a default Ubuntu install) and make playing with the bulbs a lot easier. I haven't tested this on any other Linux distributions but as long as Zenity and netcat are available they should work.
What I hope is slightly more interesting is that I've tried to separate out some simple but useful functions for working with the Q. I hope these will be useful to other people in playing with the hardware. There are Bash functions for changing the color of the bulbs, turning them on and off, and building the JSON string that the Q expects via its UDP interface. (It's painful and error-prone to do this by hand.)
The code is up on github and can be cloned with 'git clone https://github.com/mccollam/belleds.git'. If anyone uses this or has any suggestions I'd love to hear about it!
No comments:
Post a Comment