Groundwork for the dashboard settings page and the five-inverter contract:
- GET/PUT /api/settings stores display options (comparison averaging,
scale and reference, power chart range and smoothing, voltage display,
default language) in the meta table. Shared by every viewer since there
are no accounts; PUT needs the API key so a public visitor can't change
everyone's view. Unknown keys are ignored, missing ones take defaults.
- /api/summary returns each inverter's last few readings (recent_power) so
the comparison can average out one reading taken under a passing cloud.
- Offline is now judged per inverter: a couple of missed cycles at the
unit's own cadence (INV5 is cloud-polled every ~5 min), never below
ONLINE_WINDOW_SECONDS. Before, INV5 flapped offline between reports.
- /api/power?last_run=true covers the latest production run, split at
night silences; units reporting 0 W overnight don't join runs.
- Issues carry params so clients can render them in Greek.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>