Skip to content

Commit

Permalink
Gebruik temperature ipv groundtemperature
Browse files Browse the repository at this point in the history
'groundtemperature' is de temperatuur aan de grond. 'temperature' is de temperatuur op 1,5m hoogte. Aangezien de temperatuur aan de grond weinig relatie heeft met gebruik past deze pull dit aan naar die op 1,5m. Voor meer context over temperatuur meting zie ook  https://www.knmi.nl/kennis-en-datacentrum/uitleg/temperatuur
  • Loading branch information
mind04 authored and dennissiemensma committed Sep 26, 2022
1 parent 8b76afe commit 2fcff20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dsmr_weather/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def get_temperature_from_api() -> TemperatureReading:
if not station_data:
raise RuntimeError("Selected station info not found: {}".format(station_id))

temperature = station_data[0]["groundtemperature"]
temperature = station_data[0]["temperature"]
logger.debug("Buienradar: Storing temperature read: %s", temperature)

hour_mark = timezone.now().replace(minute=0, second=0, microsecond=0)
Expand Down

0 comments on commit 2fcff20

Please sign in to comment.