Utility for controlling a specific brand of Cozylife lights
| ledcontrol | ||
| LICENSE.bsd.md | ||
| LICENSE.spezi.md | ||
| README.md | ||
ledcontrol
Bash utility for controlling a specific brand of Cozylife lights
Requires jo, jq, nc, kiesel in PATH
This project will not pair your light to your local network. You must do that with the app or by reverse-engineering it.
You must edit the IP variable with the IP of your light strip. If you don't know what it is, may god help you. Try to find it by opening Wireshark.
Only tested with the Music Rhythm Light Strip. Bugs be afoot.
Project double-licensed with BSD-3-Clause and Speziware.
Usage: ledcontrol OPTION ... ARGUMENTS ...
ledcontrol: utility for controlling a specific brand of Cozylife lights
ledcontrol color: query the current color of the lights in HSL/HSB
To set the color, use one, and only one of these options.
ledcontrol color <hue (0-360)> <saturation (0-255)> <brightness (0-255)>: set the current color of the lights in HSL/HSB
ledcontrol color --rgb <red> <green> <blue>: set the current color of the lights in RGB (0-255)
ledcontrol color --hex <hexadecimal value starting with #>: set the current color of the lights in hex code
ledcontrol brightness: query the current brightness level of the lights
To set the brightness, add the brightness level as an extra argument, like so:
ledcontrol brightness <brightness level>: set the brightness level (0-255)
ledcontrol switch: query whether or not the lights are switched on.
To set whether or not the lights are switched on, specify your wanted state as an extra argument, like so:
ledcontrol switch <on/off>: switch the lights on or off.
Powered by Kiesel. This LED utility has Javascript superpowers.