Mive82 / Persona-5-Calendar

Persona 5 Calendar rainmeter skin
Do What The F*ck You Want To Public License
18 stars 3 forks source link

Weather icon when real world weather is "few clouds" #1

Open ARandomGuy231 opened 1 month ago

ARandomGuy231 commented 1 month ago

Small issue I have which probably isn't a fault of the calendar, but whenever the weather in my area is the following: "weather":[{"id":801,"main":"Clouds","description":"few clouds","icon":"02d"}]

The calendar uses the cloud icon, looking outside right now it is very sunny (with few clouds). Is there a way to add functionality to change how the calendar treats "few clouds" so that it uses the sunny icon?

Mive82 commented 3 weeks ago

The calendar uses whatever value is in the "icon" field as the filename of the icon to display. So, in theory, you could change all weather icons with the name 02d.png in all Assets/Weather folders with the sunny icon eg. 01d.png, but I don't know if openweathermap uses the 02d icon for any other weather.

EDIT: After reading the description for the icons, it would seem that 02d and 02n are only used for the "few clouds" weather, one for day, the other for night. See here: https://openweathermap.org/weather-conditions