creewick / uWidgets

Standalone .NET application with a variety of customizable widgets
Other
180 stars 8 forks source link

Weather forecast not working #3

Closed EugeLynx closed 3 months ago

EugeLynx commented 3 months ago

изображение_2024-07-29_114622773 Set for "Ekaterinburg Koltsovo Airport"

creewick commented 3 months ago

Hi! Does it work for other locations? Can you please check the following URL, does it returns any errors for you?

https://api.open-meteo.com/v1/forecast?latitude=56.7431&longitude=60.8027&temperature_unit=celsius&current=temperature_2m,weathercode&hourly=temperature_2m,weathercode&daily=temperature_2m_min,temperature_2m_max,weathercode&timezone=auto

EugeLynx commented 3 months ago

Same for ohter locations image image

And there's no error on the API from that URL image

creewick commented 3 months ago

There was a problem with building a request URL — CultureInfo on local machine is using , as decimal point, but API was expecting .

Fixed in 8df407b