Skip to content

feat(web): set up the WLED Strip from Settings - #35

Merged
mathieuletyrant merged 1 commit into
mainfrom
claude/lueur-bandeau-led-s77mlq
Nov 15, 2026
Merged

mathieuletyrant merged 1 commit into
mainfrom
claude/lueur-bandeau-led-s77mlq

Conversation

@mathieuletyrant

Copy link
Copy Markdown
Owner

Until now, the WLED Strip could only be set up by hand in lueur.json.

What changes

  • Settings → Lights: choose between Philips Hue and WLED strip. Switching back to Hue forgets the controller and keeps the Layout.
  • WLED step:
    • Finds controllers on the network over mDNS, or checks an address you type. It reads the controller's name and LED count from its /json/info.
    • Edits the Layout: the corner where LED 0 is, the direction, and the LEDs behind each side. The step shows a warning when the total differs from the LED count set up in WLED.
    • Draws the Strip around the TV, with LED 0 and the direction marked. Once saved, it shows live colors, makes a LED blink when you click it, and plays the rainbow.
  • Now and Look pages: draw the Strip the same way, instead of 135 Hue dots.
  • API: GET /api/wled/discover and GET /api/wled/info?host=.

Checked

I checked it locally against a fake WLED controller (HTTP /json/info and a UDP listener on the DDP port):

  • the step reads the controller;
  • the Layout saves, and the player restarts with 130 LEDs after left: 35 → 30;
  • the rainbow plays on the Now page.

cargo test and tsc pass.

Refs #31


Generated by Claude Code

The Strip could only be set up by hand in lueur.json. Settings now has a
Lights switch, Philips Hue or WLED strip; the WLED step:

- finds controllers on the network (mDNS `_wled._tcp`), or checks a typed
  address, and reads the controller's name and LED count (`/json/info`);
- edits the Layout: start corner, direction, LEDs per side, with the total
  compared to the LEDs set up in WLED;
- draws the Strip around the TV with LED 0 and the direction marked, then,
  once saved, live colors, a LED that blinks when clicked, and the rainbow.

The Now and Look pages draw the Strip the same way instead of 135 Hue dots.
Switching back to Hue forgets the controller and keeps the Layout.

API: `GET /api/wled/discover`, `GET /api/wled/info?host=`.

Refs #31

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MqWWDYFwNv4NMRRJyLea93
@mathieuletyrant
mathieuletyrant merged commit d626ca0 into main Nov 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants