mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2026-11-25 15:06:20 +01:00
fix(weather): map instantaneous Open-Meteo GHI, DNI and DHI
WeatherOpenMeteo stored Open-Meteo's direct_radiation, the beam on the horizontal plane, as weather_dni. PVForecastPVLib transposes weather_dni as direct normal irradiance, so for a 40 deg south plane in Berlin the clear-sky plane-of-array irradiance came out at 25 % of the true value on 21 December, 58 % on 21 March and 80 % on 21 June. The plain Open-Meteo radiation variables are also means over the preceding hour, stored at the hour's end, while EOS weather irradiance is the value at the record time, as BrightSky and ClearOutside derive it from the cloud cover and as PVForecastPVLib reads it with the sun position at the record time. The provider now requests and maps shortwave_radiation_instant, direct_normal_irradiance_instant and diffuse_radiation_instant. The instantaneous variables (temperature, humidity, clouds, wind) keep their stamps; no record is shifted. test_update_data and test_openmeteo_radiation_mapping pinned the old mapping of direct_radiation to weather_dni and now expect the instant variables. The recorded sample response predates them, so the tests add clear-sky irradiance to it instead of a new recording. Additional changes Describe the irradiance of the OpenMeteo provider in the prediction docs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Assisted-by: Claude Code (claude-opus-5-5)
This commit is contained in:
committed by
Bobby Noelte
co-authored by
Claude Opus 5.5
parent
966fc7ba7f
commit
926818fbd4
@@ -1242,6 +1242,13 @@ The provider provides forecast data for the following prediction keys:
|
||||
- `weather_wind_direction`: Wind Direction (°)
|
||||
- `weather_wind_speed`: Wind Speed (kmph)
|
||||
|
||||
The irradiance keys hold Open-Meteo's instantaneous values at each hour
|
||||
(`shortwave_radiation_instant`, `direct_normal_irradiance_instant`,
|
||||
`diffuse_radiation_instant`), like the irradiance the BrightSky and ClearOutside providers
|
||||
derive from the cloud cover at each record time. Open-Meteo's plain radiation
|
||||
variables are means over the preceding hour, and its `direct_radiation` is the beam on the
|
||||
horizontal plane, not the direct normal irradiance.
|
||||
|
||||
### WeatherImport Provider
|
||||
|
||||
The `WeatherImport` provider is designed to import weather forecast data from a file or a JSON
|
||||
|
||||
Reference in New Issue
Block a user