Wire WiFi creds via .env + build-time injection, add heartbeat reporting

Adopts the weather-display pattern: .env file parsed by tools/load_env.py
and injected as -D compiler flags. WIFI_NETWORKS uses "SSID:password" format.
ESP32 now sends a heartbeat POST after each display update so the server
can track frame status for the HA integration.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-26 17:28:20 -05:00
parent 4ddda58b43
commit 4642b90366
6 changed files with 69 additions and 10 deletions

5
firmware/.env.example Normal file
View File

@@ -0,0 +1,5 @@
# WiFi credentials (comma-separated "SSID:password" pairs)
WIFI_NETWORKS="MyNetwork:mypassword"
# Photo server URL
PHOTO_SERVER_URL="http://nas.home.network:8473/photo"