Skip to content

v0.10.0 — Intraday backfill, full transient capture, Cashflow

Latest

Choose a tag to compare

@jdrumgoole jdrumgoole released this 19 May 15:17

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 into station_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 stationDetail payload under raw (~375 fields: family load, running grid purchase/sell, CO₂ avoided, etc.). Future chart metrics can be wired up without re-pulling.
  • /data tab 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_daily and stations only — both unconditionally re-pullable from SolisCloud. station_samples (point-in-time polled data) and alarms (unclear upstream retention) are preserved.

Fixed

  • Tab-label invisibility on the active tab (Pico's --pico-color is #fff inside buttons; switched to --pico-h1-color).
  • HTMX hx-disinherit placement (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_current upserts to station_samples (no more DuplicateKeyError tracebacks when SolisCloud returns the same dataTimestamp twice).
  • get_solis_client tolerates missing app.state (the ASGITransport test path).
  • Conftest sandboxes XDG_CONFIG_HOME to a per-session tmp dir so the reset-flow test no longer silently wipes ~/.config/solisdash/solisdash.toml.