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
+11 -5
View File
@@ -5,15 +5,19 @@ the readings in RRDtool databases, and serves a responsive graph dashboard.
## What it stores
The service creates `netatmo_outdoor.rrd`, `netatmo_wind.rrd`,
The service creates `netatmo_outdoor.rrd`, `netatmo_pressure.rrd`,
`netatmo_wind.rrd`, `netatmo_rain.rrd`,
`netatmo_bedroom.rrd`, `netatmo_study.rrd`, and `netatmo_living.rrd`. Each has
ten-minute archives for the last two weeks and six-hour archives covering a
year. Day, two-week, and year PNG graphs are rendered on demand. The wind graph
splits average wind into 12 colored direction bands and draws gusts as a line.
The rain graph stores Netatmo's cumulative `sum_rain_24` reading and shows the
rain accumulated since midnight in millimetres. Its daily reset is preserved;
MAX consolidation retains daily totals in the longer-term archive.
The Outdoor module does not contain a pressure sensor, so `outdoor.rrd` combines
its temperature/humidity with pressure from the main station. A module without
`dashboard_data` is skipped until it becomes reachable again.
The Outdoor module does not contain a pressure sensor, so the dedicated pressure
graph reads it from the main station. Its Y axis is fixed at 9001100 mbar. A
module without `dashboard_data` is skipped until it becomes reachable again.
## Prerequisites and setup
@@ -71,7 +75,7 @@ scheduler runs inside the service process. Alternatively set
```
`storage.rrd_folder` configures the database directory (default `./rrd`). The
`modules` section allows the five Netatmo display names to be changed.
`modules` section allows the Netatmo display names to be changed.
Set `server.url_prefix: /w` to mount the dashboard, static assets, and every API endpoint
below `/w`; leave it empty to serve from the site root. When a prefix is set,
open <http://localhost:5000/w/> instead.
@@ -140,7 +144,9 @@ curl --output wind.png http://localhost:5000/graph/wind/2weeks
Data points are:
- `outdoor`: `min_temp`, `max_temp`, `humidity`, `pressure`
- `pressure`: `pressure`
- `wind`: `gust`, `average`, `angle`
- `rain`: `sum_rain_24`
- `bedroom`, `study`, `living`: `temperature`, `co2`, `humidity`
The service creates missing RRDs at startup but deliberately does not alter an