woheller69 / omweather

GNU General Public License v3.0
337 stars 15 forks source link

Weekday icon behavior is unreliable #3

Closed anevaiopvn closed 1 year ago

anevaiopvn commented 1 year ago

It seems to me that currently the week section inside the app shows the most cloudy weather of the day as the icon for the day. For example, if on Thursday there is one hour of clouds say at 2 am, and the rest of the day is sunshine, the icon for Thursday would show Clouds as the icon for the whole day. This makes that icon basically unreliable.

Would it be possible to change the behavior so that the icon for the whole day would be maybe some kind of average for the day (or possibly even the daytime hours)?

woheller69 commented 1 year ago

see discussion here

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

woheller69 commented 1 year ago

They always show the worst case and I don't like it either. I think about evaluating the hourly codes between surise and sunset and upgrade them if e.g > 20% contain sun

woheller69 commented 1 year ago

Please try this. This checks the codes between sunrise and sunset and changes IDs if more than 20% sun. There is a switch in settings to switch on/off. After changing the switch click on refresh.

anevaiopvn commented 1 year ago

Yeah, that's much better in my opinion, thank you!

anevaiopvn commented 1 year ago

However I do wonder if you should change the behavior from [sunrise till sunset] to a fixed time. People in the more polar parts of the globe have only so much sunlight which means that setting is basically broken for them. Maybe use something like 7 am to 7pm or 6am to 9pm or something more general that works for most people. Or maybe even 5 am to 12 pm which would cover almost the whole day but only leave out the couple of midnight hours. I know that's a bit arbitrary but it would make the most sense for most people I would think.

EDIT: and it's really not only the people who live in the polar parts of the Earth. I believe almost no one actually lives with the Sun as their clock really.

woheller69 commented 1 year ago

I will maybe add a setting in future