no weather information in gnome panel

Bug #216197 reported by mon
32
This bug affects 3 people
Affects Status Importance Assigned to Milestone
gnome-panel (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs
Declined for Karmic by Sebastien Bacher

Bug Description

Binary package hint: gnome-panel

Hi

since the update to libgweather1 the gnome panel clock applet doesn't show any weather information (no icon)

Bug Description: When one manually configures tzdata to a different timezone value than one the current home is set to, the wheather and temperature preview will fail to be shown in the taskbar towards the left of the date.

Bug Reproduction:
0. Make sure that you have the clock applet running and that a home location is configured and set. Furthermore have the clock show the weather and temperature in the taskbar to the left of the date.
1. compare with BeforePic, see the sunny weather? ^_^ :)
2. open a terminal and do "sudo dpkg-reconfigure tzdata"
3. set the timezone to a different one than the one your home location is set to.
4. restart the X Session
5. after log-in compare with the 'After' pic. Notice the missing weather?
6. repeat step 2 and 3 in order to restore your original timezone
7. be amazed that the weather miraculously reappears :D (maybe another restart required, but with me it pops up instantly)

What happened:
Although the world clock applet is configured correctly and I did not interact with the world-clock applet, it will fail to display the weather in the taskbar when tzdata is altered.

What should have happened:
The Clock-Applet should have just continued to show the current weather of my set home location.

Revision history for this message
Timo Schlappinger (tim2611) wrote :

I can recreate the issue on my hardy installation. I am not able to see the temperature- or the weather-Icon in my panel.

Revision history for this message
mon (javiermon-deactivatedaccount) wrote :

I've fixed the issue by removing the applet, reinstalling the gnome-applets & gnome-applets-data packages, and adding the clock applet again (setting my home location again).

hope this helps

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report. Do you use network-manager? Is you internet access working before the gnome-panel start? Do you get the weather informations after a while? Does it work after restarting the session once the network connection is working? Copying Vincent on the bug who is upstream and did the recent changes, I already talked to him about a similar issue yesterday

Changed in gnome-panel:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
mon (javiermon-deactivatedaccount) wrote :

Hi

Yes, I use network manager. My internet access is working berfore gnome-panel starts. I get weather reports on my locations, but it seems that I the Home location is not remembered anymore after the updates. If I set the home location and re-login the bug reapperars and in the clock applet I can only see the date/time. Once I set my home location the weather info appears at the left of the date/time.

thanks

Revision history for this message
Timo Schlappinger (tim2611) wrote :

I do not use the network-manager. I am using wicd. I will startup the network manually and so I do not have a connection on startup. I have not tried to restart gnome with a working network connection. I will try it and then I will tell you if it will work.

Revision history for this message
Timo Schlappinger (tim2611) wrote :

after a restart of gnome, I do not have the icons back. But I have seen, that my location was not correct. I am living in Germany so I used Europe/Berlin as zone, but it was not set correctly. It was set to USA. After Changing the setting back to Europe/Berlin, I can see my Icons.

Revision history for this message
Pizuz (florian-fahr) wrote :

Kmons approach worked perfectly for me. Thanks.

Revision history for this message
Martin Soto (soto255) wrote :

Unfortunately, kmon's approach didn't work for me (Hardy beta, last updated yesterday). As shown in the attachment, the applet is actually able to download and display weather information, but not directly on the panel. "Show weather" and "Show temperature" are both checked in my preferences.

Revision history for this message
Timo Schlappinger (tim2611) wrote :

Martin,

just check if the timezone information is correct. Actually it is not saved after reboot.
I have to set the timezone every time I log in. If I change it, I can seealso the weather and temperature icons in the panel.

Revision history for this message
Martin Soto (soto255) wrote :

Indeed, my time zone wasn't set. and this seems to have fixed it, thanks Timo! I haven't rebooted as yet, so I don't now if the fix will stay. I'll report it if I observe further problems. By the way, the resetting of the time zone that Timo reports may be related to bug #210561.

Revision history for this message
Bastian Becker (bastianbecker-deactivatedaccount) wrote :

Before the updates, the timezone for my city was set wrong (for Guetersloh -> Europe / Amsterdam). After the update, no weather information were shown. So I've simply choose Guetersloh again from the list of cities and everything works well (also after restart). So I think it is a big because of the updates and does not appear again.

Revision history for this message
Timo Schlappinger (tim2611) wrote :

If I do a reboot of my machine, the timezone settings changed to America / Dawson and does not show Europe / Berlin. I have to change the settings every time I do a reboot.

Revision history for this message
Sebastien Bacher (seb128) wrote :

the bug seems to be a collection of different issues there, could people not comment on random bugs that seems similar and open a new bug when they have a different issue?

Revision history for this message
Timo Schlappinger (tim2611) wrote :

I am not sure, but for me it seems to be one problem.
The gnome-clock-applet does not show the icons for weather and temperature until I change the setting for the clock-applet (timezone), but after a reboot the settings are set to something different.

Revision history for this message
Kyubutsu (jf) wrote :

8.04 64bit 2.6.24-16-generic
bug present

Revision history for this message
Kyubutsu (jf) wrote :

only detected issue for me is the non-display of weather applet icon

Revision history for this message
Sebastien Bacher (seb128) wrote :

Could you run ls -l /etc/localtime and copy the /etc/timezone content to a comment?

Revision history for this message
Timo Schlappinger (tim2611) wrote :

Hi Sebastien,

ls -l /etc/localtime
-rw-r--r-- 1 root root 2295 2008-03-26 21:43 /etc/localtime

and a cat /etc/timezone
Europe/Berlin

Revision history for this message
mon (javiermon-deactivatedaccount) wrote :

:~$ ls -l /etc/localtime
-rw-r--r-- 1 root root 2593 2008-04-15 19:31 /etc/localtime

:~$ cat /etc/timezone
cat: /etc/timezone: No existe el fichero ó directorio

(no such file o directory)

Revision history for this message
Timo Schlappinger (tim2611) wrote :

Is there any other info I can provide to you to help finding out what happened?

Revision history for this message
Vincent Untz (vuntz) wrote :

Timo: can you change your timezone to something completely different (let's say Australia/Sydney) with the clock applet, reboot and see if the timezone is correctly detected after the reboot? (also, if the weather for Sydney still appears after the reboot)

Then, do it again for your town.

Revision history for this message
Timo Schlappinger (tim2611) wrote :

Thanks Vincent, I will check it in the evening when I am at home on this computer.

Revision history for this message
Kyubutsu (jf) wrote : /etc/timezone

ls -l /etc/localtime returns
-rw-r--r-- 1 root 3519 2008-03-25 10:48 /etc/localtime

only entry in /etc/timezone is:
america/newyork

Revision history for this message
Timo Schlappinger (tim2611) wrote :

Vincent: I have done as you told me. I have set Australia/Sydney and I was able to see the icons. After the rebbot the timezone changed again to America/Edmonton and I am no longer able to see the weather icons. Except I will change the timezone again.

Revision history for this message
Kyubutsu (jf) wrote :

timezone change (...) seemed to have worked the trick to weather icon display. without even logging off or rebooting.
system up-to-date on 8.04 2.6.24-15-generic

Revision history for this message
Vincent Untz (vuntz) wrote :

Timo: sounds really weird. Can you do it again, but before logging in again in GNOME, log in a terminal and get the timezone. Maybe something set the timezone every time you log in GNOME?

Revision history for this message
Timo Schlappinger (tim2611) wrote :

yes, it is very wired... I rebootet my notebook and I checked the timezone before the login into gnome.
The timezone was correct, but in the setting of the clock (Tab - Location) the timezone is set to Amerika / Dawson.
I change my network settings to start eth0 before gnome and I can see the weather icons, also the timezoneinformation for my location is set to Amerika instead to Europe.
I closed the settings and reopened it, and its magic... It changed to Europe / Berlin...
But only for the running session....

Strange, very strange.

Revision history for this message
exactt (giesbert) wrote :

hi everyone,
i also face the problem of the weather information not showing up in gnome-panel. I tried all the options mentioned here. the system is latest hardy x86 updated from gutsy.

~$ ls -l /etc/localtime
-rw-r--r-- 1 root root 837 2007-11-04 12:27 /etc/localtime
~$ cat /etc/timezone
cat: /etc/timezone: No such file or directory

what else can i do?

Revision history for this message
Timo Schlappinger (tim2611) wrote :

it seems, that the issue was fixed with gnome.clock 2.22.1.3. In my case now it is working as it should.

Thanks guys.

Timo

Revision history for this message
Timo Schlappinger (tim2611) wrote :

hmmm, sorry my fault. After reboot today I have the same problem.
Timezone Europe/Germany But Amerika / Dawson is shown one click on cancel and again a click on Edit will correct it.

Revision history for this message
Tristan Schmelcher (tschmelcher) wrote :

For anyone still having problems with the timezone, the root of the issue is that the timezone of your location and the timezone of your computer must match in order for the weather to show up in the system tray. See bug 232375.

Revision history for this message
exactt (giesbert) wrote :

Thanks Tristan! This fixed the problem for me. Somehow the timezone was not set at all here...

Revision history for this message
Sebastien Bacher (seb128) wrote :

the bug is confusing now, does anybody still get the issue and describe clearly what to do to trigger it?

Revision history for this message
harold (m-liebregs) wrote :

I have exactly the same problem here. After rebooting I have to manually change the timezone to the correct location every time, otherwise there is no weather information in the system tray. Exactt wrote he fixed the problem, but it is not clear to me how he did this.

Revision history for this message
harold (m-liebregs) wrote :

After reboot, without making any changes, this is what screen looks like. Note the difference in timezone for amsterdam in the two windows (again, I did not make changes myself)!

Does any one have an idea how to prevent this?

Revision history for this message
Tristan Schmelcher (tschmelcher) wrote :

harold:

I also get that after every reboot. I'm in Seattle, US, but it says I'm somewhere in either Africa or Asia--don't remember which. However, that never causes me any problems. The weather information still shows up and the timezone of my system is still correct. Have you made sure to set the _computer_'s timezone to Europe/Amsterdam too? (See the screenshots in the bug that I attached above.)

Revision history for this message
harold (m-liebregs) wrote :

Tristan: yes, I set the computer's timezone also to Europe/Amsterdam.

I got things working though. I use wicd on this computer in stead of networkmanager (problems with an atheros adapter in NM). I was using the wired connection, which was not the default connection. Because of this, after log in, there was no internet connection until I selected the wired interface. After changing the wired connection to default, the weather information shows up automatically after reboot.

Revision history for this message
Adolfo González Blázquez (infinito) wrote :

> ~$ cat /etc/timezone
> cat: /etc/timezone: No such file or directory

That was the problem in my system. But after I've created that file and added "Europe/Madrid" in it, the weather displays correctly on the clock applet. I'm not using Network Manager.

Revision history for this message
sumedh (dsumedh) wrote :

Greetings,

I do not know if this is related, but somehow the weather information is *never* getting updated! I am using Hardy that is up-to-date as of 03-aug-08.
My question is: how does the clock retrieve the weather information? Is it from a particular site like weather.com?

Revision history for this message
Sebastien Bacher (seb128) wrote :

does anybody still get this issue? do you have a timezone correctly set?

Revision history for this message
Hendrik Lönngren (hendrik0) wrote :

I still get this issue in fully updated Hardy. I had the problem with one location in America, my timezone being Europe/Berlin. The German sites had working weather information. However, America/Los Angeles never had any weather information. When I clicked to edit the location, the timezone said Asia/Yekaterinburg. From experimenting I know that the timezones are paired, that is, when I entered Asia/Yekaterinburg, I got America/Los Angeles on next boot. No weather though, also the deviant timezone is only shown in the edit location dialog and only when opened the first time. I tried reinstalling the panel, now I have no weather at all, Europe/Berlin always changing to something else (don’t remember exactly what, remember that it only shows up the first time).

Revision history for this message
Hendrik Lönngren (hendrik0) wrote :

I now understand that the issue I had was not a bug. The showing up of wrong time zones in the dialog is a bug, but not related to the weather issue, at least not on my system.
I was assuming that libgweather does some sort of interpolation between known weather stations, using the given coordinates. That is not the case. In fact, changing the coordinates has no effect on the weather, not even the day/night symbols. So the error was, I had not chosen a weather station from the list, just typed in the coordinates, which resulted in not having any weather. So just choose a suitable site from the list and adjust name and coordinates afterwards, then it works.
But I still think the applet should at least find the nearest weather station on its own, or even better, interpolate between the nearest ones. Also, the day/night switching of the symbols should absolutely depend on the coordinates.

Revision history for this message
Hendrik Lönngren (hendrik0) wrote :

sorry, another self-correction. I was testing the day-night dependence with a rain symbol, which in fact is the same at day and night. Sun and moon are correctly switched by coordinate.

So, my suggestion boils down to automatically finding the nearest available weather station by coordinate. This should be easy, the coordinates for weather stations are available in Locations.xml. I easily implemented this in a spreadsheet.

Revision history for this message
Kimiko Koopman (kimiko) wrote :

The clock doesn't show weather info for me either, even though the checkbox is marked.

My city (Leiden, Netherlands) isn't listed, so I have to enter the timezone and coordinates manually. The closest weather info is from Valkenburg, Netherlands, but that info is not shown when I enter my city.

Conversely, I do get weather info when I choose Valkenburg, Netherlands, but then I can't change the location name and coordinates anymore. The dialog allows me to edit them, but it simply disregards my edits when I click Okay.

The applet should either allow me to specifiy both my own location and the weather info to use, or select the closest weither info automatically.

I think this is a regression from some earlier version, because my old installation (upgraded in place over the years from warty or something like that all the way to jaunty) does show both the correct location and weather info.

Revision history for this message
Kimiko Koopman (kimiko) wrote :

Oh, I found the solution (which is probably also what I used on the old installation). Using gconf-editor, you can edit the key "/apps/panel/applets/clock_screen0/prefs/cities". The 'code=' field of it was set to '(null)'. After changing that part to 'EHVB', the clock applet now shows both the correct location (Leiden) and weather info (from Valkenburg).

Still, there should be an easier way to accomplish this than using gconf-editor.

Revision history for this message
Abhishek (bhadotia) wrote :

I have the same problem as Kimiko Koopman. I am using ubuntu 8.10 (gnome 2.24) and my location is Chandigarh , India. My location is not available in the list of cities so I enter it manually but I don't get the weather info. But, however, if I set the location to New Delhi, India , which is the closest location available in the list, I can see the weather info.

I tried using the above solution by Kimiko Koopman but that shows the weather info of New Delhi.

In hardy I could see the weather info of any city (that I entered manually), but that is not the case in 8.10- I am able to see info for only those cities which are listed by default.

If this is of some help I once found in my ~/.xsession-errors file something regarding "Libgweather: Metadata not found: 403 Forbidden" (Sorry I can't reproduce the exact content as that error disappeared after using the hack by Kimiko Koopman) .

Revision history for this message
Hendrik Lönngren (hendrik0) wrote :

An even simpler solution is to choose the closest place from the list and afterwards change the location name and, if you want, coordinates.

Revision history for this message
chris_debian (cjhandrew) wrote :

This seems to be related:

I have the weather applet installed, and it doesn't always update, sometimes going for days without doing so. If I remove the applet and re-add it, then the update is performed. I can confirm that my networking is fine.

Thanks,

Chris.

Revision history for this message
sumedh (dsumedh) wrote : Re: [Bug 216197] Re: no weather information in gnome panel

Well, my city (Bangalore/India) is in the list. I somehow always get 27*C /
Realfeel 29.5*C, Wind speed 5.1 m/s.... etc
Basically, this information *never* changes.

The interesting point, however, is that the icon that shows the weather icon
does change intermittently, and possibly, accurately too. It now shows
"broken clouds" (which is also what forecastfox plugin in firefox is
showing).

Thanks,
Sumedh

On Mon, Nov 24, 2008 at 11:31 PM, chris_andrew <email address hidden> wrote:

> This seems to be related:
>
> I have the weather applet installed, and it doesn't always update,
> sometimes going for days without doing so. If I remove the applet and
> re-add it, then the update is performed. I can confirm that my
> networking is fine.
>
> Thanks,
>
> Chris.
>
> --
> no weather information in gnome panel
> https://bugs.launchpad.net/bugs/216197
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Abhishek (bhadotia)
Changed in gnome-panel:
status: Incomplete → Confirmed
Revision history for this message
Pedro Villavicencio (pedro) wrote :

could somebody tell us a few easy steps in order to trigger the bug? does it works fine with jaunty?

Changed in gnome-panel:
status: Confirmed → Incomplete
Revision history for this message
Tristan Schmelcher (tschmelcher) wrote :

Pedro:

AFAICT this is a dupe of bug 232375. My original comment on bug 232375 clearly explains the condition in which the bug occurs.

Changed in gnome-panel:
status: Incomplete → Confirmed
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Ok thanks, could someone try the same with jaunty i cannot reproduce this with the steps given on the other bug or perhaps forward this upstream to bugzilla.gnome.org ?, btw i'm adding the steps to reproduce the bug to this report as well, thanks.

Changed in gnome-panel:
status: Confirmed → Incomplete
description: updated
Revision history for this message
Sebastien Bacher (seb128) wrote :

could you try on jaunty?

Revision history for this message
chris_debian (cjhandrew) wrote :

Unfortunately I now use xfce4 on Arch. Sorry.

2009/3/11 Sebastien Bacher <email address hidden>:
> could you try on jaunty?
>
> --
> no weather information in gnome panel
> https://bugs.launchpad.net/bugs/216197
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
Reasons why you may want to try GNU/Linux:

http://www.getgnulinux.org/

Revision history for this message
Sebastien Bacher (seb128) wrote :

closing the bug since that works correctly for jaunty users, you can reopen if you give it a try and still get the bug though

Changed in gnome-panel:
status: Incomplete → Fix Released
Revision history for this message
Abhishek (bhadotia) wrote :

The bug still persists for me. In fact it has worsened after upgrading to jaunty. I usually access the internet from behind a proxy server (in my university). Before 8.04 I could see the weather conditions of both manually added locations and locations which were already in the list. After hardy only locations in the list worked. Now in jaunty none works when I'm working behind a proxy. But it works fine when I'm directly connected to the internet and that too I have only checked for locations in the list (forgot to check for manually added locations ;)).

So I'm changing the status beck again to Incomplete.

Changed in gnome-panel (Ubuntu):
status: Fix Released → Incomplete
Revision history for this message
Sebastien Bacher (seb128) wrote :

you should open a new bug rather than reopen a closed one

Changed in gnome-panel (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.