From 9b80076b5b79c753881b1518946c59c7d0b86604 Mon Sep 17 00:00:00 2001 From: "alexei.dolgolyov" Date: Mon, 23 Mar 2026 22:40:55 +0300 Subject: [PATCH] feat: expand color strip sources with new effects, gradient improvements, and daylight/candlelight enhancements Effects: add 7 new procedural effects (rain, comet, bouncing ball, fireworks, sparkle rain, lava lamp, wave interference) and custom palette support via user-defined [[pos,R,G,B],...] stops. Gradient: add easing functions (linear, ease_in_out, step, cubic) for stop interpolation, plus noise_perturb and hue_rotate animation types. Daylight: add longitude field and NOAA solar equations for accurate sunrise/sunset based on latitude, longitude, and day of year. Candlelight: add wind simulation (correlated gusts), candle type presets (taper/votive/bonfire), and wax drip effect with localized brightness dips. Also fixes editor preview to include all new fields for inline LED test. --- CLAUDE.md | 8 + .../api/schemas/color_strip_sources.py | 26 +- .../core/processing/candlelight_stream.py | 153 +++++-- .../core/processing/color_strip_stream.py | 110 ++++- .../core/processing/daylight_stream.py | 163 ++++++-- .../core/processing/effect_stream.py | 376 +++++++++++++++++- server/src/wled_controller/static/js/app.ts | 3 +- .../static/js/features/color-strips-test.ts | 9 +- .../static/js/features/color-strips.ts | 132 +++++- .../wled_controller/static/locales/en.json | 45 +++ .../storage/color_strip_source.py | 45 ++- .../templates/modals/css-editor.html | 65 ++- 12 files changed, 1015 insertions(+), 120 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 6ce7c81..06b3b5f 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -66,6 +66,14 @@ This applies to: file paths in `StorageConfig`, JSON root keys (e.g. `picture_ta **Incident context:** A past rename of `picture_targets.json` → `output_targets.json` was done without migration. The app created a new empty `output_targets.json` while the user's 7 targets sat unread in the old file. Data was silently lost. +## UI Component Rules (CRITICAL) + +**NEVER use plain HTML ` + + + + + + @@ -168,6 +182,13 @@ + + + + + + + @@ -178,7 +199,7 @@ - @@ -187,9 +208,20 @@ + + + @@ -557,6 +598,28 @@ +
+
+ + +
+ + +
+
+
+ + +
+ + +