Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[weather] openmeteo precipitationProbability not shown in forecast #3446

Open
khassel opened this issue May 10, 2024 · 0 comments
Open

[weather] openmeteo precipitationProbability not shown in forecast #3446

khassel opened this issue May 10, 2024 · 0 comments

Comments

@khassel
Copy link
Collaborator

khassel commented May 10, 2024

This number is always "NaN", the njk formatting hides such numbers so you see nothing.

AFAIS the used property precipitation_probability does not exist (anymore?) at least in the forecast (I did not check current and hourly).

Instead of precipitation_probability I found precipitation_hours so in openmeteo.js we could replace

			currentWeather.precipitationProbability = parseFloat(weather.precipitation_probability);

with

			currentWeather.precipitationProbability = parseFloat(weather.precipitation_hours * 100 / 24);

(I found numbers between 0 and 24 in precipitation_hours).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants