added rain, updated graph styles

This commit is contained in:
2026-09-03 22:26:40 +02:00
parent 67d8b50333
commit 77bf334fce
9 changed files with 128 additions and 35 deletions
+7 -1
View File
@@ -103,7 +103,13 @@ def create_app(test_config: dict | None = None, config_path=None) -> Flask:
)
store.ensure_all()
client = app.config.get("NETATMO_CLIENT") or NetatmoClient(app.config)
names = {key: app.config[f"MODULE_{key.upper()}"] for key in SCHEMAS}
# Pressure is read directly from the main station and has no configurable
# module display name.
names = {
key: app.config[f"MODULE_{key.upper()}"]
for key in SCHEMAS
if key != "pressure"
}
collector = Collector(client, store, names, app.config["POLL_INTERVAL"])
app.extensions["rrd_store"] = store
app.extensions["netatmo_collector"] = collector