with out-temp
This commit is contained in:
@@ -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")),
|
||||
|
||||
Reference in New Issue
Block a user