2026-05-10 21:30:39 +02:00
2026-05-10 21:30:39 +02:00
2026-05-10 21:04:44 +02:00
2026-05-10 21:04:44 +02:00
2026-05-10 21:30:39 +02:00

wled-cli

Tiny no-dependency CLI for talking to a WLED box over its JSON API.

Features

  • turn lights on/off
  • set brightness
  • set named or hex colors
  • target 1-based inclusive LED ranges
  • set effects by name or id
  • list effects
  • list presets
  • use presets by name or id
  • inspect raw WLED JSON endpoints

Install

npm install
npm link

Or just run it directly:

node ./bin/wled.js status

Default target

By default the CLI talks to:

  • http://wled.local

Override with:

wled --url http://another-device.local status

Or set an env var:

export WLED_URL=http://another-device.local

Usage

wled on
wled off
wled status
wled effects
wled effects rainbow
wled presets
wled set --color blue --range 70-80 --brightness 50%
wled set --color green --range 90-100 --effect blink --rest-color white
wled set --hex '#00ff88' --effect solid
wled set --preset 1
wled raw /json/info

Notes

  • --range is 1-based inclusive. So 70-80 means LEDs 70 through 80.
  • --brightness accepts 1-255 or a percentage like 50%.
  • --rest-color / --rest-hex lets you paint the LEDs outside the selected range in one shot.
  • --effect accepts a numeric id or a fuzzy name match.
  • --preset accepts a numeric id or a fuzzy preset name match.
  • For new integrations, prefer WLED's JSON API docs: https://kno.wled.ge/interfaces/json-api/

License

MIT

Description
No description provided
Readme 35 KiB
Languages
JavaScript 100%