Add help examples, header

This commit is contained in:
Michael Bisbjerg
2025-04-06 01:17:44 +02:00
committed by GitHub
parent 5203c3927f
commit 9e96bd6705

View File

@@ -1,5 +1,9 @@
#!/bin/bash #!/bin/bash
# WLED Tools
# A utility for managing WLED devices in a local network
# https://github.com/wled/WLED
# Color Definitions # Color Definitions
GREEN="\e[32m" GREEN="\e[32m"
RED="\e[31m" RED="\e[31m"
@@ -64,6 +68,19 @@ Commands:
update Update the firmware of a WLED device or multiple discovered devices. update Update the firmware of a WLED device or multiple discovered devices.
discover Discover WLED devices using mDNS and list their IP addresses and names. discover Discover WLED devices using mDNS and list their IP addresses and names.
Examples:
# Discover all WLED devices on the network
./wled-tools discover
# Backup a specific WLED device
./wled-tools -t 192.168.1.100 backup
# Backup all discovered WLED devices to a specific directory
./wled-tools -D -d /path/to/backups backup
# Update firmware on all discovered WLED devices
./wled-tools -D -f /path/to/firmware.bin update
EOF EOF
} }