Skip to content

Commit

Permalink
Adds evaporation to the dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
FL550 committed Sep 20, 2024
1 parent c56039d commit 72b0915
Show file tree
Hide file tree
Showing 7 changed files with 9,515 additions and 59 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ class WeatherDataType(Enum):
SUN_IRRADIANCE = "Rad1h" # Unit: W/m2
FOG_PROBABILITY = "wwM" # Unit: % (0..100)
HUMIDITY = "humidity" # Unit: %
EVAPORATION = ("PEvap", "evaporation") # In the last 24h Unit: kg/m2

class Weather:

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="simple_dwd_weatherforecast",
version="2.1.4",
version="2.1.5",
author="Max Fermor",
description="A simple tool to retrieve a weather forecast from DWD OpenData",
long_description=long_description,
Expand Down
2 changes: 2 additions & 0 deletions simple_dwd_weatherforecast/dwdforecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ class WeatherDataType(Enum):
SUN_IRRADIANCE = ("Rad1h", "global_radiation_last_hour") # Unit: kJ/m^2
FOG_PROBABILITY = ("wwM", "") # Unit: % (0..100)
HUMIDITY = ("humidity", "relative_humidity") # Unit: %
EVAPORATION = ("PEvap", "evaporation") # Unit: kg/m2


class Weather:
Expand Down Expand Up @@ -725,6 +726,7 @@ def value(wdt):
WeatherDataType.SUN_DURATION,
WeatherDataType.SUN_IRRADIANCE,
WeatherDataType.FOG_PROBABILITY,
WeatherDataType.EVAPORATION,
)
]
values.extend(
Expand Down
4,696 changes: 4,695 additions & 1 deletion tests/dummy_data.py

Large diffs are not rendered by default.

4,696 changes: 4,695 additions & 1 deletion tests/dummy_data_full.py

Large diffs are not rendered by default.

Loading

0 comments on commit 72b0915

Please sign in to comment.