You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.