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>
40 lines
1.5 KiB
INI
40 lines
1.5 KiB
INI
; ESP_UniClock for the RetroModding NixieIN12v2 (5 V) clock. See README.md in this folder.
|
|
;
|
|
; The sketch keeps the upstream Arduino IDE layout (ESP32_UniClock2/ with all .ino files), so it
|
|
; still opens in the Arduino IDE. Libraries are the versions bundled upstream, unpacked in lib/.
|
|
|
|
[platformio]
|
|
src_dir = ESP32_UniClock2
|
|
data_dir = ESP32_UniClock2/data
|
|
default_envs = nixie_in12
|
|
|
|
[env:nixie_in12]
|
|
platform = espressif8266
|
|
board = esp12e
|
|
framework = arduino
|
|
; 4 MB flash: 2 MB app slot, 2 MB SPIFFS at 0x200000 (same split as the stock firmware)
|
|
board_build.ldscript = eagle.flash.4m2m.ld
|
|
board_build.filesystem = spiffs
|
|
board_build.flash_mode = dio
|
|
board_build.f_cpu = 80000000L
|
|
; evaluate #ifdefs when resolving includes: the sketch includes ESP32-only libraries inside #if
|
|
lib_ldf_mode = chain+
|
|
; the web UI source is web/index.html; this writes data/index.html.gz for uploadfs
|
|
extra_scripts = pre:web/gzip_web.py
|
|
; CH340C adapter on COM7 without auto-reset: put the clock in flash mode by hand
|
|
; (hold GPIO0 to GND, tap RST, release GPIO0) before every upload/uploadfs.
|
|
upload_port = COM7
|
|
upload_speed = 460800
|
|
; "ck" = esptool --before no_reset --after soft_reset (no DTR/RTS toggling)
|
|
upload_resetmethod = ck
|
|
monitor_port = COM7
|
|
monitor_speed = 115200
|
|
monitor_filters = esp8266_exception_decoder
|
|
|
|
; Same firmware, uploaded over WiFi with ArduinoOTA (espota). Add --auth=<OTA_PASSWORD> to
|
|
; upload_flags once secrets.h sets one.
|
|
[env:nixie_in12_ota]
|
|
extends = env:nixie_in12
|
|
upload_protocol = espota
|
|
upload_port = 10.1.1.97
|