woheller69 / omweather

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

Widgets does not update #95

Closed muziofg closed 2 days ago

muziofg commented 5 days ago

Describe the bug

I'm using CIrrus Version 2.9 (from f-droid) on a Lenovo tablet and on a Fairphone (both with Android 14) and on both I've noticed the WeatherWidget5day widget wasn't change day, so I've investigate deeply. Also the WeatherWidget doesn't update accordingly with the specified period.

How to Reproduce I have tried to set the shortest period available (15 min) and wait multiple time to see the time changing on WeatherWidget (who shows a reference time to the latest update) but nothing happens. Also I would expect to see an immediate update after a cold boot (when the period selected has clearly expired) instead it doesn't happen.

Also I've checked the background network traffic of this app and I see too few bytes exchanged, so I think the related service doesn't work correctly

Expected behavior

WeatherWidget5day must change days and show updated forecast WeatherWidget must show updated forecast and the time of the last data fetched accordingly with the settings

Environment (please complete the following information):

Tell me if you need more information or evidence about this bug Edit: Could be relevant: I have two locations without GPS enabled

woheller69 commented 5 days ago

The 5 day widget updates every 6 hours, the other widgets every 30min

The other interval is only valid if you open the app

muziofg commented 5 days ago

these details must be cleared in the docs

however, days in the 5 days widget doesn't change... for days

woheller69 commented 5 days ago

it updates every 6h

muziofg commented 5 days ago

Ok, but I've a doubt. For example if the app on device is scheduling an update on 12am, 06am, 12pm and 06pm, but the device is powered up every day between 01pm and 05pm the failure to update is also triggered and retried after a new boot ?

woheller69 commented 5 days ago

After boot Android updates widgets immediately

muziofg commented 2 days ago

this behaviour isn't what I am experienced, let me investigate deeply on a third expendable device There are also suggestions about what I can do to debug this strange issue?

woheller69 commented 2 days ago

For sure there is no issue. This has been working for many years on tons of devices

muziofg commented 1 day ago

Sorry, I've checked the issue and it happens only on the tablet

woheller69 commented 1 day ago

maybe try switching off battery optimization for this app in Android settings

muziofg commented 12 hours ago

I always forget who the Adaptive Battery feature exists thanks