Skip to content

Commit

Permalink
weather module: Fixed precipitationProbability in forecast … (#3448)
Browse files Browse the repository at this point in the history
…for provider openmeteo, fixed #3446
  • Loading branch information
khassel committed May 13, 2024
1 parent 3b00357 commit d1c17e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ _This release is scheduled to be released on 2024-07-01._

### Fixed

- [weather] Fixed precipitationProbability in forecast for provider openmeteo (#3446)

## [2.27.0] - 2024-04-01

Thanks to: @bugsounet, @crazyscot, @illimarkangur, @jkriegshauser, @khassel, @KristjanESPERANTO, @Paranoid93, @rejas, @sdetweil and @vppencilsharpener.
Expand Down
2 changes: 1 addition & 1 deletion modules/default/weather/providers/openmeteo.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ WeatherProvider.register("openmeteo", {
currentWeather.rain = parseFloat(weather.rain_sum);
currentWeather.snow = parseFloat(weather.snowfall_sum * 10);
currentWeather.precipitationAmount = parseFloat(weather.precipitation_sum);
currentWeather.precipitationProbability = parseFloat(weather.precipitation_probability);
currentWeather.precipitationProbability = parseFloat(weather.precipitation_hours * 100 / 24);
currentWeather.uv_index = parseFloat(weather.uv_index_max);

days.push(currentWeather);
Expand Down

0 comments on commit d1c17e7

Please sign in to comment.