Utility for controlling a specific brand of Cozylife lights
Find a file
2025-02-23 03:24:54 +00:00
ledcontrol Update ledcontrol 2025-02-23 03:24:54 +00:00
LICENSE.bsd.md Add LICENSE.bsd.md 2025-02-23 03:16:05 +00:00
LICENSE.spezi.md Add LICENSE.spezi.md 2025-02-23 03:17:36 +00:00
README.md Update README.md 2025-02-23 03:23:08 +00:00

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.