A command line interface to control a Nyrius Smart Bulb
Depends on the fantastic bluepy BTLE library.
Bluetooth 4.0 (BTLE) support in hardware
Tested on python 2.7
Add support for color preset file
Further investigation into other bluetooth "endpoints"
All examples show the minimum arguments needed to work.
control.py rgb
Set a particular color
python control.py rgb color -a C4:ED:BA:56:00:00 --red 0 --green 102 --blue 202
Sets a random color, currently mostly light colors / pastels
python control.py rgb random -a C4:ED:BA:56:00:00
control.py hue
HSV Control mode
python control.py hue color -a C4:ED:BA:56:00:00 --hue 0
Pick a min Hue and a maximum hue, will select a color between the two values. If min > max, we go around the other direction
python control.py hue minmax -a C4:ED:BA:56:00:00 --min 192 --max 15
TODO
- Refactored into reusable classes
- Exploration into name setting, name getting, no luck just yet.
- Better usage of
argparse - COL Bounce
- Updated Examples
- Sync modes for randoms, set all bulbs to the same random color, instead of individually
--sync0
- HSV Mode
- HSV MinMax
- COL Random
- Initial Version with COL mode