After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 154535 - Update weather data when network comes up
Update weather data when network comes up
Status: RESOLVED DUPLICATE of bug 488824
Product: gnome-applets
Classification: Other
Component: gweather
git master
Other All
: Normal enhancement
: ---
Assigned To: gnome-applets Maintainers
gnome-applets Maintainers
: 156417 313062 334317 338534 339242 347598 349146 358350 403544 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-10-05 08:23 UTC by Marius Gedminas
Modified: 2008-06-18 15:36 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14



Description Marius Gedminas 2004-10-05 08:23:01 UTC
When I bring my laptop from home to work (or back again), unsuspend it, and
connect a network cable, the weather applet shows a question mark for about 5
minutes.  Ideally the applet should notice that the network came up and
automatically update weather data.  However until a universal D-BUS "we have
network" notification appears in the GNOME desktop in general (and my laptop in
particular) it would be nice if gweather-applet interpreted SIGHUP as a request
to update weather data -- then I could just add killall -HUP gweather-applet-2
to an ifup script.
Comment 1 Danielle Madeley 2004-10-31 02:25:05 UTC
A D-Bus listener would probably be better (D-Bus is a dependancy of the desktop)
it will also allow us to easily listen on the right bus for network events from
NetworkManager and such. Your script can use dbus-send to send the network
status information.
Comment 2 Allison Karlitskaya (desrt) 2005-06-18 03:17:09 UTC
I think this one should go a step further.  Gweather should be a "hardware"
applet.  The hardware that it should correspond to should be the "internet
connection" pseudodevice.

When the network cable is unplugged, the applet disappears.  It comes back when
replugged (after DHCP or whatever has configured the interface).

This also avoids logistic problems involved with having out of date weather
information displayed if we can't get an update.

Only problem: I'm not sure HAL does anything like this yet.  It will let us look
at individual interfaces, but as far as I know it has no concept of "I am on the
net" (and perhaps HAL isn't the right place for this, anyway).
Comment 3 Danielle Madeley 2005-06-18 04:24:59 UTC
No, HAL should not know this. It's the domain of your network management layer
(ie. NetworkManager or equivilent) not the hardware management layer. HAL knows
if you have a physical link, but not if that physical link means anything.

The idea of making "web service applets" like GTik and GWeather a type of
hardware applet is an interesting idea. However, I think that having them
disappear because your network goes AWOL for 5 minutes might be misinterpretted
as a bug. Perhaps our web services applets should instead display a nice little
'offline' icon composited over their other icon when the network is reported to
go away.

Applets vanishing with respect to hardware should only really happen when
hardware is physically removed from the machine. That is, you have instigated
some tactile operation that has resulted in a state change.
Comment 4 Teppo Turtiainen 2005-07-09 10:37:04 UTC
*** Bug 309492 has been marked as a duplicate of this bug. ***
Comment 5 Allison Karlitskaya (desrt) 2005-08-10 13:17:14 UTC
*** Bug 313062 has been marked as a duplicate of this bug. ***
Comment 6 Sergej Kotliar 2006-03-12 22:58:12 UTC
*** Bug 334317 has been marked as a duplicate of this bug. ***
Comment 7 Andrew Cowie 2006-04-17 01:40:28 UTC
To the original bug reported, when I come back from suspend  it still has either the ? or stale data, and sits there saying "Updating"... and sits there... and sits there... until I manually right click on it and select Update.

Surely, if the dbus signal isn't practical, a shorter timeout/retry would be possible?

AfC
Comment 8 Sebastien Bacher 2006-06-17 16:56:10 UTC
Ubuntu bug about that: https://launchpad.net/products/gnome-applets/+bug/50115
Comment 9 Sergej Kotliar 2006-07-15 14:00:18 UTC
*** Bug 339242 has been marked as a duplicate of this bug. ***
Comment 10 Sergej Kotliar 2006-07-15 14:00:37 UTC
*** Bug 347598 has been marked as a duplicate of this bug. ***
Comment 11 Sergej Kotliar 2006-07-29 12:25:34 UTC
*** Bug 349146 has been marked as a duplicate of this bug. ***
Comment 12 Danielle Madeley 2006-08-07 01:31:33 UTC
*** Bug 156417 has been marked as a duplicate of this bug. ***
Comment 13 Danielle Madeley 2006-08-07 05:23:15 UTC
*** Bug 338534 has been marked as a duplicate of this bug. ***
Comment 14 Mark 2006-09-12 07:22:50 UTC
I agree that a "killall -HUP" or a "kill -HUP `pidof gweather-applet-2`" would be very useful. I use dial-up networking (actually, a custom script to use my cell phone). On connection, I can do an NTP time sync from /etc/ppp/ip-up. The ability to signal the weather applet to get the current forecast would be a *very* nice addition to my GNOME desktop.
Comment 15 Emilio Pozuelo Monfort 2007-02-04 21:25:29 UTC
Any news about this bug?

Maybe the weather applet can use network-manager, and if it detects that there is a connection, then it updates it. I know this is possible, because there are some apps doing this (liferea, for example). And as network-manager is going to be default in gnome, it's a great option.

Regards
Pochu
Comment 16 Filip Miletic 2007-02-04 21:39:15 UTC
You meant dbus?
Comment 17 Emilio Pozuelo Monfort 2007-02-19 17:31:01 UTC
Works fine now in Ubuntu Feisty Fawn up-to-date.
Comment 18 Andrew Burton 2007-09-14 09:58:14 UTC
*** Bug 403544 has been marked as a duplicate of this bug. ***
Comment 19 Matthias Clasen 2007-09-23 06:00:02 UTC
*** Bug 358350 has been marked as a duplicate of this bug. ***
Comment 20 Dan Winship 2008-06-18 15:36:22 UTC
488824 has a patch


*** This bug has been marked as a duplicate of 488824 ***