Adding new cities in X-Weather only for TM 9100

satelliteman

Registered
Messages
97
For those of you who downloaded X-Weather and wondering why forecast for London is soooo out of reality - this is Canadian London!

If you want to change it to London UK or add your own destinations, here is how:

1. Download X-Weather plugin from this site.

2. Unpack it.

3. Go to var/tuxbox/config/weather/ and open file weather-location.xml in text editor of your choice. Warning: If you are planning to edit it in Windows, use editor, which can save file in Unix format, such as Crimson Editor.

4. Go to h**p://w*w.weather.com/ and type your city/town in search box. Check that this is the city you want, not city with the same name but in other country. For example, here is the link for Birmingham:

h**p://w*w.weather.com/outlook/travel/businesstrav eler/local/UKXX0018?from=search_city


5. Take a note of city code. In case of UK Birmingham it is UKXX0018. UK London code is UKXX0085.

6. Go to London line and change to UKXX0085, so that the line would look like this:

<url><![CDATA[h**p://xoap.weather.com/weather/local/UKXX0085?uni t=m&dayf=8]]></url>


7. If you want to add more cities, copy such block:

<location>
<name><![CDATA[London]]></name>
<url><![CDATA[h**p://xoap.weather.com/weather/local/UKXX0085?uni t=m&dayf=8]]></url>
</location>


Change name in CDATA to, say, Birmingham and city code to one you got from WeatherChannel. So for Birmingham new entry will be something like this:

<location>
<name><![CDATA[Birmingham]]></name>
<url><![CDATA[h**p://xoap.weather.com/weather/local/UKXX0018?uni t=m&dayf=8]]></url>
</location>



8. Once you've done with editing, save file in Unix format.

9. Copy this file to weather-location.xml.twc. I am not sure if this is required, but certainly won't hurt.

10. FTP these two files to /var/tuxbox/config/weather in your TM9100. I am using SmartFTP for this - YMMV.

11. Close FTP program and go to your TM9100.

12. Start X-Weather plugin and press 'Settings'

13. Now you should see all cities you added. No restart is required.

That's all folks!

P.S. I created file, which is including the following UK cities:
Birmingham - UKXX0018
Cardiff - UKXX0030
Edinburgh - UKXX0052
Glasgow - UKXX0061
Liverpool - UKXX0092
Northampton - UKXX0102
London - UKXX0085

If someone want this file, drop me a line and I'll send it to you by email. Alternatively, if someone could tell me how to attach files to messages here, I would post it on this forum.
Reply With Quote
 
Top