Repository navigation
A big iteration on what History shows and how it gets there.
Added
- Intraday backfill via
stationDay— Fetch / Poll-now now pulls the per-5-min SolisCloud curve for every date in range and upserts it intostation_samples. Historical days you weren't running the scheduler over get their full minute-grained shape back. - Full transient capture — each sample now stores the entire upstream
stationDetailpayload underraw(~375 fields: family load, running grid purchase/sell, CO₂ avoided, etc.). Future chart metrics can be wired up without re-pulling. /datatab consolidating Poll-now, date-range Fetch (with live progress bar), and Purge — moved off History / Settings.- Dashboard home charts — three live panels under the tile strip: Today's power, Battery SOC (7 days), This month's daily energy. Auto-refresh every 60s.
- New History metrics: Charge, Discharge, Consumption, Import, Export, Net, Cashflow (configurable tariffs → real money-in / money-out per period).
- Settings UI fully populated — Scheduler config (run-poller toggle, sample cadence, daily rollup time, API rate cap) and Tariffs (feed-in, import, currency) editable from
/settings. Key Secret now visible as plain text (single-user dashboard behind login). - Resolution dropdown on every History tab (Auto / Samples / Daily / Monthly / Yearly). Auto label reflects what it picked.
- Pico tooltips on every metric tab.
- Branded favicon (dark amber, contrasts on light AND dark tab strips).
Changed
- History tabs rationalised to 11: Energy, Power, Battery SOC, Battery power, Charge, Discharge, Consumption, Import, Export, Net, Cashflow. Money / Total / Alarms-chart pruned.
- Aligned auto-resolution thresholds across all metrics — sample-only metrics now bucket the same as daily-rollup ones for spans > 7 days, so the x-axis is consistent when flipping tabs.
- Date-range From/To with quick presets replaces the Range + single-date inputs. Dense sample series render as a thin line (no area fill) so a day at 1-min cadence isn't a coloured block.
- Per-startup cache buster on every vendored / custom asset, so CSS / JS edits take effect on next page load.
- Purge scope narrowed to
station_dailyandstationsonly — both unconditionally re-pullable from SolisCloud.station_samples(point-in-time polled data) andalarms(unclear upstream retention) are preserved.
Fixed
- Tab-label invisibility on the active tab (Pico's
--pico-coloris#fffinside buttons; switched to--pico-h1-color). - HTMX
hx-disinheritplacement (was on the polling div, needed to be on the parent form) — backfill progress now updates every 700ms through completion. - Date inputs refresh on change + blur + debounced input — typing no longer requires tabbing out.
- Sign-out button vertically centres in the top bar (
inline-flex; align-items: center). - Battery power tab no longer 500s.
poll_currentupserts tostation_samples(no moreDuplicateKeyErrortracebacks when SolisCloud returns the samedataTimestamptwice).get_solis_clienttolerates missingapp.state(theASGITransporttest path).- Conftest sandboxes
XDG_CONFIG_HOMEto a per-session tmp dir so the reset-flow test no longer silently wipes~/.config/solisdash/solisdash.toml.