No description
Find a file
Michiel Berger e39f78fcc5 Fix two timeline bugs
1. /api/timeline silently defaulted missing export_rate to None → 0,
   which broke the LP for dad's terugleveringskosten scenario. With
   export=0, charging during surplus has no benefit, so the battery
   stayed half-empty while solar exported. Fix: when the param is
   absent, fall back to DEFAULTS['export_rate'] (matches the form's
   initial value). Explicit blank still means 'use saldering toggle'.

2. uPlot charts had legend disabled. Re-enabled with per-series value
   formatters so hovering shows '14:00 NL · −1.70 kWh/h' style values.
2026-05-01 09:54:08 +02:00
data/raw Battery timeline modal + switch to real 2025 data 2026-05-01 09:21:16 +02:00
docs Initial import: home-battery ROI simulator + cracked thuisbatterijgids calc 2026-04-30 13:46:27 +02:00
scripts timeline: label columns 'no-bat meter' / 'with-bat meter' to avoid confusion 2026-04-30 22:47:59 +02:00
src/pluginbattery Fix two timeline bugs 2026-05-01 09:54:08 +02:00
tests Initial import: home-battery ROI simulator + cracked thuisbatterijgids calc 2026-04-30 13:46:27 +02:00
.env.example Initial import: home-battery ROI simulator + cracked thuisbatterijgids calc 2026-04-30 13:46:27 +02:00
.gitignore Move custom batteries from web.py into data/raw/extra_batteries.json 2026-04-30 15:52:16 +02:00
CLAUDE.md Initial import: home-battery ROI simulator + cracked thuisbatterijgids calc 2026-04-30 13:46:27 +02:00
Dockerfile Dockerfile: gunicorn 2 workers x 4 threads (gthread) 2026-04-30 17:39:13 +02:00
Procfile Initial import: home-battery ROI simulator + cracked thuisbatterijgids calc 2026-04-30 13:46:27 +02:00
pyproject.toml Initial import: home-battery ROI simulator + cracked thuisbatterijgids calc 2026-04-30 13:46:27 +02:00
README.md Initial import: home-battery ROI simulator + cracked thuisbatterijgids calc 2026-04-30 13:46:27 +02:00
uv.lock Initial import: home-battery ROI simulator + cracked thuisbatterijgids calc 2026-04-30 13:46:27 +02:00

pluginbattery

Backtest the actual ROI of a home battery against real historical electricity prices and solar irradiance.

Answers: "If I had owned this battery (plug-in or installed) over the last N years, what would it have actually saved me?"

See CLAUDE.md for project intent, open decisions, and assumptions.