woheller69 / omweather

GNU General Public License v3.0
391 stars 17 forks source link

Rain prediction showing (-) value #41

Closed twikedk closed 1 year ago

twikedk commented 1 year ago

Describe the bug What I see is the rain prediction shows (-) value mm. I could imagine it is somehow the weather API causing the issue.

Screenshots 1 Screenshot_20230615-120046

2 Screenshot_20230617-160722

Environment (please complete the following information):

woheller69 commented 1 year ago

Interesting, I never had this. If you see it again you could check the API directly here

https://open-meteo.com/en/docs

Select location and Precipitation (rain + showers + snow)

woheller69 commented 1 year ago

If the bug is in the API, file it here

https://github.com/open-meteo/open-meteo

woheller69 commented 1 year ago

Filed bug at open-meteo

https://github.com/open-meteo/open-meteo/issues/375

twikedk commented 1 year ago

I just tried to check the API on 26/6-23 for my area (55.95/8.51) the data for the API is not the same as shown on omWeather. Nothing on the API is shown as (-) but 4 out of 6 is on omWeather.

Screenshot_2023-06-25_18-07-47

Screenshot_20230625_180719_org woheller69 omweather

woheller69 commented 1 year ago

https://api.open-meteo.com/v1/forecast?latitude=55.95&longitude=8.50&hourly=precipitation

The API does show the negative values for your location

I am using precipitation, which is the sum of all

twikedk commented 1 year ago

Sorry I had only chosen rain and showers, now I also see the API return negative values.

woheller69 commented 1 year ago

Should be ok now. open-meteo fixed it.