Bug 400395 - With NOAA backend, doesn't re-connect/update after waking from sleep
Summary: With NOAA backend, doesn't re-connect/update after waking from sleep
Status: RESOLVED FIXED
Alias: None
Product: kdeplasma-addons
Classification: Plasma
Component: Weather (show other bugs)
Version: 5.14.2
Platform: Neon Linux
: HI normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 423460 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-10-28 05:34 UTC by Andrew Crouthamel
Modified: 2022-06-18 05:08 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.26
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Crouthamel 2018-10-28 05:34:27 UTC
SUMMARY
The weather widget constantly has problems connecting to NOAA. Maybe it is an API key rate limit issue?

STEPS TO REPRODUCE
1. Configure widget to use NOAA for a city
2. Wait a day or two
3. Purple question mark icon appears
4. Try changing to another city, the search fails

OBSERVED RESULT
Weather information is not retrieved.

EXPECTED RESULT
Weather information is retrieved.

SOFTWARE VERSIONS
(available in About System)
KDE Plasma Version: 5.14.2
KDE Frameworks Version: 5.51.0
Qt Version: 5.11.2

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2020-07-02 00:50:27 UTC
*** Bug 423460 has been marked as a duplicate of this bug. ***
Comment 2 rhubeny76 2020-07-13 17:57:41 UTC
I may have discovered the problem with this widget.  It works properly until the computer goes to sleep (KDE Energy Saving setting to sleep after x minutes idle or when laptop lid closed).  After the computer is awakened from sleep, the Weather Report remains frozen at the same temperature/forecast it was at before sleep.  Logging out/logging in does not budge the weather report.  It only comes back to life after a shutdown/restart of the system.

Prior to a fix to this widget, is there a command or script I can use the awaken Weather Report after sleep?

I use NOAA as source.
Comment 3 Nate Graham 2020-07-13 19:03:01 UTC
you can kill and restart plasmashell to see if that helps

`plasmashell --replace`
Comment 4 rhubeny76 2020-07-13 20:25:34 UTC
Yes, that helps.  It gets Weather Report to report latest values.  Now, is there a way for kede to execute "plasmashell --replace" with every wake from sleep?  Thank you for the test.
Comment 5 Nate Graham 2020-07-13 21:00:00 UTC
lol that doesn't quite seem like the right solution for this bug. :)
Comment 6 rhubeny76 2020-07-14 10:05:43 UTC
I agree that is a poor solution and just a work-around if I intend to put the computer to sleep.  But I don't know how to nudge just the Weather Report into wakefulness.
Comment 7 K Freed 2022-01-25 09:08:53 UTC
While on the topic of the very buggy weather widget, can we have a manual refresh button in the widget “configure” settings? 

Also sometimes the days show wrongly.

Ex: sometimes you will have Day 25, 26, 27, 28, 29, 27, 27

And sometimes you will only have 5 or 6 days in the widget as opposed to the normal 7!