Let SignalRGB keep the clock awake at night

New "Wake at night" setting (prmExt.wledWakeAtNight, web UI only): while
WLED frames arrive, the night schedule is ignored and the clock runs as by
day. Night mode returns as soon as the frames time out. The manual night
toggle, radar and HA Tubes switch still win.

The field uses the former padding byte of prmExt; MAGIC_VALUE_EXT is now
0x5702 and 0x5701 settings are migrated, so existing SignalRGB settings
are kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mangavalkandClaude Opus 5.5 committed 2026-11-03 00:04:15 +01:00
1 parent 7d5cd3bf8d
commit 6b1d20acde
5 files changed
+48 -16

No files matched your search

+7 -3
View File
@@ -103,9 +103,13 @@ GPIO0 to GND, tap RST to GND, then release GPIO0.
6. Done (2026-10-25): SignalRGB via WLED emulation (`wled.ino`, `USE_WLED_REALTIME`,
`WLED_MAX_FPS` 30: no flicker, no loop stalls). SignalRGB's WLED plugin only sends as many LEDs as the channel's component has (needs 4). LED order checked:
SignalRGB LED 0 = left tube, `tubePixels` {0,1,2,3} is right. Settings `wledEnable` /
`wledDarkWithTubes` / `wledUseBrightness` live in `prmExt`, stored in EEPROM after `prm` with
their own magic value: never add fields to `prm` (a `MAGIC_VALUE` bump factory-resets the
clock, WiFi included). HA switch "SignalRGB".
`wledDarkWithTubes` / `wledUseBrightness` / `wledWakeAtNight` live in `prmExt`, stored in EEPROM
after `prm` with their own magic value: never add fields to `prm` (a `MAGIC_VALUE` bump
factory-resets the clock, WiFi included). `prmExt` 0x5702 added `wledWakeAtNight` in the old
padding byte and migrates 0x5701; it has no padding left, so the next field needs a real
migration. HA switch "SignalRGB".
`wledWakeAtNight` ("Wake at night", web UI only): while frames arrive, `evalShutoffTime()` keeps
day mode during the night schedule; the manual night toggle, radar and HA Tubes switch still win.
7. Done (2026-10-29, on the clock): new web UI. Source `firmware/uniclock/web/index.html`
(one file, no jQuery, controls generated from the `PAGES` table), gzipped by `web/gzip_web.py`
to `data/index.html.gz` (12 KB, was 147 KB), served by one `serveStatic` with `no-cache`.