with out-temp

This commit is contained in:
2026-09-06 12:25:34 +02:00
parent 77bf334fce
commit dd8f7536d3
4 changed files with 35 additions and 12 deletions
+2 -1
View File
@@ -41,7 +41,7 @@ def extract_samples(payload: dict, names: dict[str, str]) -> dict[str, Sample]:
sample("wind", {"gust": "GustStrength", "average": "WindStrength", "angle": "WindAngle"})
# Netatmo resets this cumulative millimetre total at local midnight. Store
# it unchanged so historical graphs show the total accumulated each day.
sample("rain", {"sum_rain_24": "sum_rain_24"})
sample("rain", {"sum_rain_24": "sum_rain_24", "sum_rain_1": "sum_rain_1"})
# Pressure belongs to the main indoor station rather than a separate
# module, so give it its own sample and use that station's timestamp.
@@ -61,6 +61,7 @@ def extract_samples(payload: dict, names: dict[str, str]) -> dict[str, Sample]:
result["outdoor"] = Sample(
int(data["time_utc"]),
{
"temperature": _number(data.get("Temperature")),
"min_temp": _number(data.get("min_temp", data.get("Temperature"))),
"max_temp": _number(data.get("max_temp", data.get("Temperature"))),
"humidity": _number(data.get("Humidity")),