#mcu #cli #search #host-port

app led-cli

A tool for controlling LED lights over mqqt

1 unstable release

0.1.0 Nov 20, 2024

#1171 in Command line utilities

Download history 91/week @ 2024-11-15 35/week @ 2024-11-22 2/week @ 2024-11-29 8/week @ 2024-12-06

136 downloads per month

MIT/Apache and GPL-3.0-or-later

10KB
131 lines

LED-CLI-Controller

A simple CLI tool to control my LED strip connected to an Esp32 microcontroller. Run

led-cli set --mqtt_host=localhost --port=1884

to set the host and port of the mqtt broker to which the client should connect. Run 'on' or 'off' to publish messages at least once to the topic 'led'. You can provide the message the option 'color' and 'percentage' this will result in a message string in json format like this:

{
    "led-state": "on/off",
    "color": "red",
    "percentage": 100
}

Dependencies

~5–14MB
~176K SLoC