From fba37de5f0ffb97d615ce9a1a60e9938b9719901 Mon Sep 17 00:00:00 2001 From: Geoffrey Walker Date: Thu, 22 Oct 2026 08:26:34 -0600 Subject: [PATCH] updated openmeteo.js to pull precipitation_probability_max in line with a typical weather service --- defaultmodules/weather/providers/openmeteo.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/defaultmodules/weather/providers/openmeteo.js b/defaultmodules/weather/providers/openmeteo.js index 94725d80ac..b940ff936f 100644 --- a/defaultmodules/weather/providers/openmeteo.js +++ b/defaultmodules/weather/providers/openmeteo.js @@ -78,6 +78,7 @@ class OpenMeteoProvider extends WeatherProvider { "showers_sum", "snowfall_sum", "precipitation_hours", + "precipitation_probability_max", "weathercode", "sunrise", "sunset", @@ -421,7 +422,7 @@ class OpenMeteoProvider extends WeatherProvider { rain: weather.rain_sum != null ? parseFloat(weather.rain_sum) : null, snow: weather.snowfall_sum != null ? parseFloat(weather.snowfall_sum * 10) : null, precipitationAmount: weather.precipitation_sum != null ? parseFloat(weather.precipitation_sum) : null, - precipitationProbability: weather.precipitation_hours != null ? parseFloat(weather.precipitation_hours * 100 / 24) : null, + precipitationProbability: weather.precipitation_probability_max != null ? parseFloat(weather.precipitation_probability_max) : null, uvIndex: weather.uv_index_max != null ? parseFloat(weather.uv_index_max) : null })); }