From adffedf80a87456b8db5b46087fd7976bc3bf67b Mon Sep 17 00:00:00 2001 From: fl0x53 <70536684+fl0x53@users.noreply.github.com> Date: Mon, 16 Oct 2023 18:59:08 +0200 Subject: [PATCH] Mismatch of SUN_IRRADIANCE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MOXMIX element "Rad1h" (unit: kJ/m^2, Description: "Global Irradiance") best matches CSV element "global_radiation_last_hour" instead of "diffuse_solar_radiation_last_hour". Nevertheless, there is a unit glitch kJ/m^2 vs. W/m2. 🤔 Where 1 J = 1 W × s --- simple_dwd_weatherforecast/dwdforecast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simple_dwd_weatherforecast/dwdforecast.py b/simple_dwd_weatherforecast/dwdforecast.py index 7c17729..1a5ea6b 100644 --- a/simple_dwd_weatherforecast/dwdforecast.py +++ b/simple_dwd_weatherforecast/dwdforecast.py @@ -86,7 +86,7 @@ class WeatherDataType(Enum): CLOUD_COVERAGE = ["N", "cloud_cover_total"] # Unit: % (0..100) VISIBILITY = ["VV", "horizontal_visibility"] # Unit: m SUN_DURATION = ["SunD1", ""] # Unit: s - SUN_IRRADIANCE = ["Rad1h", "diffuse_solar_radiation_last_hour"] # Unit: kJ/m^2 + SUN_IRRADIANCE = ["Rad1h", "global_radiation_last_hour"] # Unit: kJ/m^2 FOG_PROBABILITY = ["wwM", ""] # Unit: % (0..100) HUMIDITY = ["humidity", "relative_humidity"] # Unit: %