Repository navigation
Releases
v0.10.0 — Intraday backfill, full transient capture, Cashflow
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.
v0.8.2 — Housekeeping
Changed
- Housekeeping release. No user-visible changes. Backfilled GitHub Release pages for v0.7.0 – v0.8.1 with their full CHANGELOG entries so the project's release history is properly browseable from the Releases tab.
v0.8.1 — Fix dead HTMX buttons in pywebview
Fixed
- HTMX buttons (Test MongoDB connection, Test SolisCloud, Poll SolisCloud now) silently did nothing inside pywebview. HTMX was loaded from a CDN with SRI; pywebview's WKWebView dropped the script in some environments (offline, strict caching, SRI mismatches) and the buttons stopped working with no visible error. Solisdash now vendors HTMX, Pico CSS, Chart.js, and the Chart.js date-fns adapter under `static/vendor/`, so the entire UI works without network access to a CDN.
Added
- `tests/test_clickability.py` regression suite. For every authed page (`/`, `/history`, `/alarms`, `/settings`) we extract every ``, ``, `[hx-{get,post,put,delete}]` URL pointing at our own app and assert each endpoint doesn't 5xx. The same file also asserts (a) no template references a CDN at runtime, (b) all four vendored assets are present on disk, and (c) `style.css` doesn't sneak in a `pointer-events: none` overlay.
v0.8.0 — Highly graphical History: metric tabs + tile sparklines
Added
- Metric tabs on the History page. Power / Energy / Battery / Money / Alarms sit across the top; the range selector greys out options that aren't valid for the chosen metric (e.g. Money is daily-rollup only, so the Day option disables when Money is active). Each metric gets its own series colour. CSV download now follows the active metric.
- 24-hour sparklines under each live tile on the home page. Tiny SVG trend lines drawn from `station_samples`, refreshed alongside the tiles via the existing 30-second HTMX swap. Server-rendered SVG paths, no extra JS or Chart.js needed.
- New JSON/CSV history endpoints accept `?metric=` (`power`, `energy`, `battery`, `money`, `alarms`). Existing callers without the parameter keep getting the previous default (power for day, energy elsewhere).
Changed
- `HistoryService.day_series`, `month_daily`, `year_monthly`, `all_time` now take an optional `metric=` keyword. Defaults are unchanged.
Fixed
- `LiveTilesService.get_tiles` falls through to the existing tile data if the sparkline lookup fails. Sparklines are decorative; a Mongo hiccup must never blank the home page.
v0.7.3 — Soften Settings page env-var footnote
Changed
- Softened the Settings page footnote about environment variables. The previous wording told every user that env vars "still take precedence over what's written here", which is jargon for a GUI-only client; now it just notes that same-named env vars may override saved values on managed deployments.
v0.7.2 — History empty state: Poll button, not CLI hint
Changed
- The History page's empty state no longer tells the user to drop to a shell and run `uv run python -m invoke poll-once`. It now offers a Poll SolisCloud now button that pulls each station's current state once via a new auth-gated `POST /history/poll-now` endpoint and refreshes the page so the chart UI takes over. Keeps the client experience GUI-only.
Fixed
- `get_solis_client` no longer raises `AttributeError` when the lifespan handler hasn't initialised `app.state` (e.g. under `httpx.ASGITransport` in tests).
v0.7.1 — Fix wizard 500 on duplicate username
Fixed
- Submitting the setup wizard against a MongoDB that already contained a user with the chosen username raised
DuplicateKeyErrorand returned a 500. The wizard now probes for a username collision before persisting anything and renders a friendly inline error pointing the user at/login. ADuplicateKeyErrorfallback covers the index race.
v0.7.0 — Webview-driven setup wizard + Settings page
TOML-backed configuration. No CLI prompts.
Changed
- All configuration now lives inside the webview. The CLI no longer prompts for anything —
solisdashboots straight into the pywebview window and silently generatesSESSION_SECRETon first run.
Added
- First-run setup wizard at
/setup: a single-page form with three sections (MongoDB, SolisCloud, Administrator account). Each section has an HTMX Test button that probes the value inline before save. After save the user is auto-signed-in and dropped on the dashboard. - Settings page at
/settings(linked from the nav as ⚙ Settings): re-edit the same values, re-test, or reset the configuration. Reset wipessolisdash.tomland re-runs the wizard; MongoDB data (users, samples, alarms, daily totals) is left alone. ~/.config/solisdash/solisdash.tomlas the persisted config store, XDG-aware and chmodded to0600. Loaded via pydantic-settings'TomlConfigSettingsSource. Environment variables still take precedence over the file, and a project-local.envis still read for dev.
Removed
- The interactive CLI setup helpers (
solisdash setup, prompts on first boot). Theadd-usersubcommand stays for post-install user management.
v0.6.2 — Drop invoke runtime dep
Slimmer install. `pip install -U solisdash` / `uv tool upgrade solisdash`.
The `invoke` package was in `[project] dependencies` but nothing under `src/solisdash/` actually imports it — it's only used by the repo-root `tasks.py` (developer admin tasks) which isn't shipped in the wheel. So end-users have been pulling a dep they never exercised. Moved to `[project.optional-dependencies] dev`.
Also dropped a misleading line in the CLI module docstring that pointed installed users at `uv run python -m invoke …` commands they don't have. The CLI is a pure Python entry point installed by the wheel — no `uv` / `invoke` / external tooling at runtime.
No behaviour change.
v0.6.1 — Fix 500 on signin when SolisCloud creds are empty
Bug fix release. `pip install -U solisdash` / `uv tool upgrade solisdash`.
The bug
After completing the v0.6.0 setup wizard with the SolisCloud Key ID left blank (the wizard explicitly allows that), signing in returned an Internal Server Error:
```
File ".../solisdash/app.py", line 149, in get_solis_client
raise RuntimeError("SOLIS_KEY_ID / SOLIS_KEYSECRET not configured")
RuntimeError: SOLIS_KEY_ID / SOLIS_KEYSECRET not configured
```
The raise fired inside FastAPI's dependency resolution chain for the home page (`Depends(get_tiles_service)` → `Depends(get_solis_client)`), so `_resolve_tiles` never got to render the friendly alert.
The fix
`get_solis_client` builds the client with whatever creds it has. SolisCloud rejects empty / unsigned calls with HTTP 403 `"wrong sign"`; `_resolve_tiles` catches that and renders "SolisCloud rejected the call: …" on the dashboard — a visible nudge to fill the keys in instead of a crash.
Also
- `Settings.settings_customise_sources` re-resolves `user_config_path()` on every `Settings()` instantiation, so tests can redirect via `XDG_CONFIG_HOME` after import. (Old code baked the path at class-def time, which is why `v0.6.0` worked locally for me but the dev machine's user config kept leaking into tests.)
Tested
- 202 tests green (+2 regression tests: unit-level `get_solis_client` doesn't raise on empty creds, full signin → GET / flow returns 200 with the friendly alert).