Closed dsheeler closed 2 months ago
I have the same problem. I'm on Ubuntu 24.04 LTS and using Visual Crossing as a provider!
Same problem here (also on Ubuntu 24.04).
I've contacted Visual Crossing, who require more information on the API query before they can ascertain if the problem lies with them...
Hi there
We did a quick code review to see if we could help. The one item we did see is the following - 'isnight' appears to be reversed in //src/getweather.js line 1083 getIconName(WeatherProvider.VISUALCROSSING, h.icon, !h.icon.endsWith("-night"), true),
'getIconName' appears to expect the third parameter to be true if the icon is detected to be night. The above code suggests that isNight will be true when the icon name does not include night rather then when it does.
For more information on the Visual Crossing icons, please see https://www.visualcrossing.com/resources/documentation/weather-api/defining-icon-set-in-the-weather-api/ Note that there is an optional parameter to return an expanded list of icons. We are also currently intending to include an optional 'isNight' property in the response in a future release.
Regards Visual Crossing Support
There's another call that needs the same fix at 1106. I'm working on a patch rn.
I'm not sure why the sunrise / sunset thing is off, yet.
I submitted a pull request with the fix for the day/night flip. The fix is available here on my fork https://github.com/dsheeler/gnome-openweather on this branch https://github.com/dsheeler/gnome-openweather/tree/fix-day-night-weather-icons-visual-crossing.
Fixed in #73 by dsheeler
Description
When I use Visual Crossing weather provider, the night time icons are displayed in daytime and vice versa, and the sunrise time and icon is shown during the daytime (and possibly at night, too when it is correct). I don't have this issue with any other provider.
System
I use archlinux, btw
Settings