NWS used by Weather Report has bad international coverage
I live in one of the top 5 biggest cities in Sweden but even so I cannot choose it in the Weather Report applet. If this application were to use weather.com instead (as for example Xbox Media Center, XBMC, does), more cities would be available.
Is there an alternative to Weather Report or is it possible to change source?
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Cesare Tirabassi
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
The location source for the applet is:
http://
In this I find quite a number of locations in Sweden.
<_name>
<location>
<!-- Translators: This is in Sweden. -->
<
<
<
</location>
<location>
<!-- Translators: This is in Sweden. -->
<
<
<
</location>
<city>
<!-- Translators: This is in Sweden.
The native name is "Göteborg". Please use that unless
you are sure that it has a different name in your language.
-->
<
<location>
<!-- Translators: This is in Gothenburg in Sweden. -->
</location>
<location>
<!-- Translators: This is in Gothenburg in Sweden. -->
</location>
</city>
<location>
<!-- Translators: This is in Sweden. -->
<
<
<
</location>
<location>
<!-- Translators: This is in Sweden. -->
<
<
<
</location>
<location>
<!-- Translators: This is in Sweden. -->
<
<
<
</location>
<location>
<!-- Translators: This is in Sweden. -->
<
<
<
</location>
<location>
<!-- Translators: This is in Sweden. -->
<
<
<
</location>
<location>
<!-- Translators: This is in Sweden. -->
<
<
<
</location>
<location>
<!-- Translators: This is in Sweden. -->
<
<
<
</location>
<city>
<!-- Translators: This is in Sweden. -->
<
<location>
<!-- Translators: This is in Kristianstad in Sweden. -->
</location>
</city>
<city>
<!-- Translators: This is in Sweden. -->
<_
<location>
<!-- Translators: This is in Linköping in Sweden. -->
</location>
</city>
<city>
<!-- Translators: This is in Sweden. -->
<_
<location>
<!-- Translators: This is in Ljungbyhed in Sweden. -->
</location>
</city>
<city>
<!-- Translators: This is in Sweden. -->
<
<location>
<!-- Translators: This is in Umeå in Sweden. -->
</location>
</city>
<location>
<!-- Translators: This is in Sweden. -->
<
<
<
</location>
<city>
<!-- Translators: This is in Sweden. -->
<
<location>
<!-- Translators: This is in Malmö in Sweden. -->
</location>
</city>
<location>
<!-- Translators: This is in Sweden. -->
<
<
<
</location>
<location>
<!-- Translators: This is in Sweden. -->
<
<
<
</location>
<location>
<!-- Translators: This is in Sweden. -->
<
<
<
</location>
<city>
<!-- Translators: This is in Sweden. -->
<
<location>
<!-- Translators: This is in Östersund in Sweden. -->
</location>
</city>
<location>
<!-- Translators: This is in Sweden. -->
<
<
<
</location>
<location>
<!-- Translators: This is in Sweden. -->
<
<
<
</location>
<location>
<!-- Translators: This is in Sweden. -->
<
<
<
</location>
<location>
<!-- Translators: This is in Sweden. -->
<
<
<
</location>
<location>
<!-- Translators: This is in Sweden. -->
<
<
<
</location>
<city>
<!-- Translators: This is in Sweden. -->
<
<location>
<!-- Translators: This is in Stockholm in Sweden. -->
</location>
<location>
<!-- Translators: This is in Stockholm in Sweden. -->
</location>
<location>
<!-- Translators: This is in Stockholm in Sweden. -->
</location>
</city>
<location>
<!-- Translators: This is in Sweden. -->
<
<
<
</location>
<location>
<!-- Translators: This is in Sweden. -->
<
<
<
</location>
<location>
<!-- Translators: This is in Sweden. -->
<
<
<
</location>
<city>
<!-- Translators: This is in Sweden. -->
<
<location>
<!-- Translators: This is in Västerås in Sweden. -->
</location>
</city>
<location>
<!-- Translators: This is in Sweden. -->
<
<
<
</location>
<location>
<!-- Translators: This is in Sweden. -->
<
<
<
</location>
</country>
<country>
So, in principle you should be able to find a source relatively close to where you are!?
Revision history for this message
|
#2 |
No, I'm afraid not. Closest to my town, Helsingborg, is more than 60 km away.
Ps. This data is also possible to get from http://
Revision history for this message
|
#3 |
Hmmm, Helsingborg is only 8th on the list :)
http://
In any case, you can add it to your locations list.
For instance, give this command in a terminal:
sudo gedit /usr/share/
find sweden and add your nearest airport (Ängelholm) like this:
<location>
<
<name xml:lang=
<
<
</location>
Do it at the beginning of the list, just before Borlänge.
After this, you can select it from the applet with Preferences/
Just now is cloudy 17 C .....
Revision history for this message
|
#4 |
By the way, you can ask Gnome for this to be included permanently in the list:
Revision history for this message
|
#5 |
Thanks Cesare Tirabassi, that solved my question.
Revision history for this message
|
#6 |
I'm just curious on where you found Ängelholm?
Revision history for this message
|
#7 |
Just googled Helsingborg Airport :) Google is OUR friend....
Revision history for this message
|
#8 |
Hmm, but how do you just by knowing that know how to create this entry? The link I provided lists all the current locations just as you can see them in Weather Report. Does NWS keep track of all airports, even those not listed on their page?
Revision history for this message
|
#9 |
Well, that was a bit more difficult. First of all I had a look at the source code, just grepping http to see what it was looking for. Having spotted the link I gave you in the first email I looked at the packaging and I noted the file /usr/share/
Once I opened it it was easy to see how it was coded, so, once I got from google the airport data (mainly location and code) I added the info, checked it was working and provided it to you.
If you are interested, here is a list of sites the applet is searching for data or have been used as sources:
http://
http://
http://
http://
http://
http://
http://
http://
http://
http://
http://
http://
http://
BTW, I failed the mentioned that I found two other airports which are nearer to your home town, but one is in Denmark (so I thought you may not want it :)). The other you may want to try as it seems very close to Helsingborg. It is Landskrona, coordinates 55° 56' 40N 12° 52' 10E, code ESML.