You are not logged in.

#1 2004-11-04 18:41:43

vificunero
Member
Registered: 2004-07-12
Posts: 23

Weather Report locations.

Hi. I have a problem with the "Wheather Report 2.8.1 applet": European locations don't exist anymore.  Only North America and Middle East. :?

Do you experience the same problem? Thank's.

Offline

#2 2004-11-04 22:19:38

freakyc
Member
Registered: 2004-03-28
Posts: 91

Re: Weather Report locations.

You're right.  North America only has USA/Alaska as well tongue

I think I added my own location before.  I'll let you know if I figure it out again.

Offline

#3 2004-11-04 22:50:19

freakyc
Member
Registered: 2004-03-28
Posts: 91

Re: Weather Report locations.

The file with the locations in it is, "/opt/gnome/share/gweather/Locations.xml".  There weren't any problems in the XML that jumped out at me.  Although I swear a lot of Localization stuff has been added since last time I edited that file (2.6). 

I wonder if it isn't going over some limit that was set in 2.6 before all this extra language stuff was added. 

I don't see a bug report at bugs.gnome.org either.

Anyways, to get it working, you'll likely need the <?xml>,<gweather> tags, and then just the Region and Country sections you want.  A bit of a pain, but I got mine working properly.

Offline

#4 2004-11-05 08:35:09

vificunero
Member
Registered: 2004-07-12
Posts: 23

Re: Weather Report locations.

freakyc wrote:

The file with the locations in it is, "/opt/gnome/share/gweather/Locations.xml". 

[...]

Anyways, to get it working, you'll likely need the <?xml>,<gweather> tags, and then just the Region and Country sections you want.  A bit of a pain, but I got mine working properly.

Well thank's. I've added an entry for my town:

<region>
<name>Europe</name>
<name xml:lang="it">Europa</name>
<country>
  <name>Italy</name>
  <name xml:lang="it">Italia</name>
   <location>
    <name>Milano</name>
    <name xml:lang="it">Milano Linate</name>
    <code>LIML</code>
   </location>
</country>
</region>

I guess it's right. Well thank's again.
I don't see a bug report too.

Offline

#5 2004-11-05 19:56:40

vificunero
Member
Registered: 2004-07-12
Posts: 23

Re: Weather Report locations.

A friend of mine, Vortex87, suggested me to locate some errors in Locations.xml file. I've downloaded gnome-applet-2.8.1 source and used this code with python as Vortex87 shows me:

from xml.dom.minidom import parse

dom = parse('/path/al/file.xml')

The code found a problem in 7708 line.
This is line 7708:

<name xml:lang="it">astrakhan<</name>

I've removed < and now all the locations can be choosen in weather report preferences.

Offline

#6 2004-11-07 16:48:34

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Weather Report locations.

I did a

nano /opt/gnome/share/gweather/Locations.xml

and searched for "<name xml:lang="it">astrakhan<</name>"
Removed the ekstra < and now it works.

So, a big thank you to vificunero and his friend.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#7 2004-11-08 18:11:54

freakyc
Member
Registered: 2004-03-28
Posts: 91

Re: Weather Report locations.

Very cool, vificunero.  I never thought of using something to find the error.  I just looked at where the list was being cut off.

Offline

#8 2004-11-08 18:33:02

vificunero
Member
Registered: 2004-07-12
Posts: 23

Re: Weather Report locations.

freakyc wrote:

Very cool, vificunero.  I never thought of using something to find the error.  I just looked at where the list was being cut off.

Me too. big_smile
Vortex87 had the idea: I was the arm. 8)

I've found out that with gnome-applets-2.8.1.1 everything should be fine.

Offline

#9 2004-11-29 19:47:24

smarcher
Member
From: Calcutta
Registered: 2003-12-12
Posts: 42
Website

Re: Weather Report locations.

Genius!

Thanks!

8)

Offline

Board footer

Powered by FluxBB