Skip to content

fix(openmeteo): use daily precipitation probability - #4312

Merged
KristjanESPERANTO merged 1 commit into
MagicMirrorOrg:developfrom
grwalkergw:openmeteoprecipfix
Oct 23, 2026
Merged

KristjanESPERANTO merged 1 commit into
MagicMirrorOrg:developfrom
grwalkergw:openmeteoprecipfix

Conversation

@grwalkergw

Copy link
Copy Markdown

Pull request to address Issue #4310

Updates openmeteo.js to pull "precipitation_probability_max" from openmeteo and report that as the probability of precipitation. This replaces the previous calculation that returned the % of the day that experiences precipitations.

This changes brings the probability of precipitation result into line with typical weather service behavior.

@KristjanESPERANTO

Copy link
Copy Markdown
Collaborator

Looks good, thanks for this! 🙂 Would you like to add a regression test for it? No worries if not.

@grwalkergw

Copy link
Copy Markdown
Author

Sure thing. I'll get it done tomorrow,

@grwalkergw

Copy link
Copy Markdown
Author

Here are the test results for the updated openmeteo.js. I think it checks out. Not sure if you need anything else though - if so let me know.

image

@KristjanESPERANTO KristjanESPERANTO changed the title updated openmeteo.js to pull precipitation_probability_max (Issue #4310) fix(openmeteo): use daily precipitation probability Oct 23, 2026
@KristjanESPERANTO
KristjanESPERANTO merged commit cd92263 into MagicMirrorOrg:develop Oct 23, 2026
13 checks passed
@KristjanESPERANTO

Copy link
Copy Markdown
Collaborator

Here are the test results for the updated openmeteo.js.

These are the existing tests. I was looking for a new test that tests the new behavior, but in that case we can continue without it. Thanks for this improvement! 🙂

khassel pushed a commit that referenced this pull request Oct 24, 2026
After PR #4312, I had a look at the other providers to see if they had
the same issue and found one in WeatherAPI. This PR fixes it there too.

I also snuck in a regression test for #4312 while I was at it
:slightly_smiling_face:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants