2024-10-31, 10:20
One thing that should be changed: Your service should listen to "OnSleep" and "OnWake" notifications. Once you receive "OnSleep" you should not do any network activties (weather data download for example) until you receive "OnWake". Sleep does not (always) mean to suspend suspend to disk or to RAM. On Android it is more like macOS "pwer napping", where the machine is up, but with only limited functionality. On Android, there will no network access possible in that mode, for both local network and internet. I'm currently seeing lot's of errors in my Kodi log, where your addon is trying to download weather data while the Android machine is "sleeping".
BTW: Hourly forecast tiles seem not to update properly after those errors caused by sleep mode. Machine went to sleep today between 0:00 and 1:00, then the errors started, and after wakeup of the device today at 9:00, first hourly tile displayed temperature for 1:00, and did not update itself it seemed until next Kodi restart.
BTW: Hourly forecast tiles seem not to update properly after those errors caused by sleep mode. Machine went to sleep today between 0:00 and 1:00, then the errors started, and after wakeup of the device today at 9:00, first hourly tile displayed temperature for 1:00, and did not update itself it seemed until next Kodi restart.