added rain, updated graph styles
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user