From faecd9cb80c500969f61b501370805f8c051eead Mon Sep 17 00:00:00 2001 From: Michiel Berger Date: Thu, 30 Apr 2026 21:52:56 +0200 Subject: [PATCH] Default scenario = dad's actual: pv_kwp=0, demand=2350, export_rate=-0.106 --- src/pluginbattery/templates/index.html | 8 +++++--- src/pluginbattery/web.py | 7 +++++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/pluginbattery/templates/index.html b/src/pluginbattery/templates/index.html index c477e96..63ce731 100644 --- a/src/pluginbattery/templates/index.html +++ b/src/pluginbattery/templates/index.html @@ -4,7 +4,7 @@ Honest battery payback — vs thuisbatterijgids.nl - + @@ -31,7 +31,9 @@
@@ -150,6 +152,6 @@

- + diff --git a/src/pluginbattery/web.py b/src/pluginbattery/web.py index 146418c..f6d1896 100644 --- a/src/pluginbattery/web.py +++ b/src/pluginbattery/web.py @@ -308,9 +308,12 @@ def compute_leaderboard( app = Flask(__name__) DEFAULTS = dict( - demand_kwh=4000.0, retail=0.25, pv_kwp=3.0, pv_yield=875.0, + # Dad's actual: 2350 kWh/yr net (P1 data already nets his 3 kWp PV + # exports), retail €0.25, terugleveringskosten −€0.106/kWh. + # Set pv_kwp = 0 because the 3 kWp solar is already inside the P1. + demand_kwh=2350.0, retail=0.25, pv_kwp=0.0, pv_yield=875.0, fixed_rate=False, saldering=False, eta=0.88, inflation=0.03, - export_rate=None, + export_rate=-0.106, )