Replace the web UI with a single-file page
The upstream jQuery page (147 KB, 3-column grid, slider values hidden, help behind label clicks, no save feedback) is replaced by firmware/uniclock/web/index.html: one file, no jQuery, gzipped by web/gzip_web.py to data/index.html.gz (12 KB) before every build. - Tabs Home / Tubes / Light / Network / System, rows with label, help line and control; sliders always show their value - "Saved" / "Not saved" after each change, reverted on failure; offline indicator with automatic retry (the old poll stopped after one error) - WiFi and MQTT settings only save with a Save button, then offer a restart; password fields are write-only - Controls for hardware this clock lacks (alarm, radar, sensors) hidden - Runs on sample data when opened from disk Firmware: one serveStatic route (gzip, no-cache + ETag) replaces the per-file routes; /getConfiguration no longer returns passwords and adds ip, hasAlarm, hasRadar and the real cathProtMin; /getCurrentInfos adds currentSec and mqtt state and sends "lux" instead of "lx" when there is no sensor; /cathodeProtect and /firmwareupdate now answer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ae87849e75
commit
b40b5f680c
14 files changed
+724
-1661
No files matched your search
@@ -3,8 +3,12 @@
|
||||
Firmware for this clock, based on [ESP_UniClock](https://github.com/gpeter62/ESP_UniClock) by
|
||||
Peter Gautier (GPL-3.0-or-later), vendored from upstream commit `1189810` (2026-09-07).
|
||||
|
||||
- `ESP32_UniClock2/`: the upstream sketch folder (all `.ino`/`.h` files and the web UI in `data/`).
|
||||
It keeps the upstream layout, so it still opens in the Arduino IDE.
|
||||
- `ESP32_UniClock2/`: the upstream sketch folder (all `.ino`/`.h` files; `data/` is the SPIFFS
|
||||
content). It keeps the upstream layout, so it still opens in the Arduino IDE.
|
||||
- `web/index.html`: the web UI (replaces the upstream jQuery page), one file with its CSS and JS.
|
||||
`web/gzip_web.py` gzips it to `data/index.html.gz`; PlatformIO runs it before every build, in the
|
||||
Arduino IDE run `python web/gzip_web.py` before uploading the data folder. Opened straight from
|
||||
disk, the page runs on sample data, so layout changes can be checked without the clock.
|
||||
- `lib/`: the library versions bundled upstream (`libraries/*.zip`), only those the ESP8266 build
|
||||
needs. The upstream manuals, datasheets, photos and ESP32-only libraries were left out.
|
||||
Exception: `arduino-home-assistant` is v2.1.0 (upstream bundles 1.3.0, which has no light,
|
||||
@@ -18,7 +22,7 @@ Local changes are separate commits on top of the import (`git log -- firmware/un
|
||||
```sh
|
||||
pio run # build
|
||||
pio run -t upload # flash the firmware over COM7
|
||||
pio run -t uploadfs # flash the web UI (data/) to SPIFFS
|
||||
pio run -t uploadfs # flash the web UI (data/) to SPIFFS; over WiFi: -e nixie_in12_ota
|
||||
pio device monitor # serial log, 115200 Bd
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user