Asking for the key every time a phone changes a chart option was friction
the owner doesn't want. These settings only change how data is displayed
(averaging, scale, chart range, language default), so PUT /api/settings is
now open. Inverter edits (name, kWp, ...) and ingest still need the key.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The end user is Greek and the owner wants to confirm at a glance that
every inverter is working without one cloud-shaded reading raising doubt.
- Settings page (gear in the header), stored on the server and shared
by every viewer; saving asks for the API key once per device.
- Output comparison: latest reading or average of the last 3/5 (evens out
a passing cloud); bar scale auto (round ceiling above the best) /
highest = 100% / custom kW; percentage vs fleet median, best inverter
or the custom kW.
- Power chart: 30 min to last month plus "last production run", a
per-visit range picker on the card, optional light/strong smoothing.
Series reporting slower than the chart bucket (INV5, every 5 min) are
now interpolated across short gaps — on 1-min buckets their line used
to vanish entirely; night gaps still break the line.
- Greek/English: per-device switch in the header, shared default in
settings, Greek number/date formats; issue texts translated from
code + params.
- AC voltage shown as phase (L-N) or line (L-L, x√3, matching the
inverter screens); lifetime total says how many inverters it covers;
the inverter's own status text appears on its card.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The on-site agent found that the DC (P052/P054/P05A/P05C) and energy (P063)
registers are static/frozen and ac_power_total_w is now computed V*I, so
the backend and dashboard have to cope with those fields being absent.
- Feeding/Standby from status_code (FEEDING_STATUS_CODES, default 7 and 8:
INV1's OEM board uses 7). Online but not feeding = Standby; a standby
inverter while peers produce is still caught by the underperformance
check. Missing error_code stays "no fault".
- Daily energy falls back to AC power integrated between readings, flagged
estimated (≈ in the UI); out-of-order (spooled) readings recompute the
day. Existing databases get the column and a rebuild on startup.
- Totals are null instead of 0 when there's no energy data; lifetime shows
"not available yet". Parameters the poller doesn't send are hidden on the
detail page, DC lines only drawn when DC data exists.
- Timestamps more than 5 min in the future are stored at receive time and
counted in clamped_future — the example payload carried local Athens time
labelled +00:00.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Monitoring for the Refusol 020K inverters. The on-site poller POSTs each
60 s cycle to /api/readings; the dashboard answers first whether every
inverter is operating and whether one is producing far less than its peers
(string fuse / breaker problems).
- Backend: FastAPI + SQLite. Parameters defined once in fields.py (columns
auto-added on start); unknown poller keys are kept in `extra` since the
parameter map is still being researched. Idempotent ingest, daily energy
rollup in site-local days, history downsampling, 2-year retention.
- Health: Offline vs Sleeping (sun elevation) vs No data (datalogger
silent, detected via empty-batch heartbeats), Fault from error_code,
underperformance vs fleet median (per kWp when sizes set), MPPT imbalance.
- Frontend: mobile-first React + Tailwind, installable PWA, comparison bars,
24 h power / 30 day energy charts, detail page with all parameters.
- Docker: backend + frontend + nginx on one port for NPM, as in
bellsystems-cp; deploy-host.sh pulls main and rebuilds.
- poller/backend_client.py: stdlib client with offline spool for
refusol_poller.py; fake_poller.py simulates the site.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>