x
This website is using cookies. We use cookies to ensure that we give you the best experience on our website. More info. That's Fine
HPC:Factor Logo 
 
Latest Forum Activity

Weather Codes

Rich Hawley Page Icon Posted 2012-02-24 10:41 PM
#
Avatar image of Rich Hawley
Global Moderator
H/PC Guru

Posts:
7,188
Location:
USA
Status:
Don't know how many of you use that desktop tool thingie on the CE6 netbooks, but the one I have only has a few cities listed.

Well the list of cities is kept in a text file named weather_list.ini and it is found in the \Program Files\wm_plg\SKINS\Weather folder on your CE device.

You can add your own local or custom cities to that list easy enough.

Go to weather.com and do a search for your city. For instance, I searched for Gulfport, Mississippi where my other house is located (and my surviving in-laws) and this is the url that comes up after the search: http://www.weather.com/weather/today/Gulfport+MS+USMS0145

The code you enter then in the weather_list.ini file is USMS0145. In the picture below, you can see my current search results for Big Rapids...USMI0084



(desktop.jpg)



Attachments
----------------
Attachments desktop.jpg (64KB - 0 downloads)
 Top of the page
Thecatmilton Page Icon Posted 2012-02-26 10:29 PM
#
Avatar image of Thecatmilton
Factorite (Elite)

Posts:
208
Location:
Dallas Texas
Status:
I did that before you posted this!
 Top of the page
Rich Hawley Page Icon Posted 2012-02-27 12:18 PM
#
Avatar image of Rich Hawley
Global Moderator
H/PC Guru

Posts:
7,188
Location:
USA
Status:
That's because you are one of superior ability!
 Top of the page
C:Amie Page Icon Posted 2012-02-27 12:32 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
18,043
Location:
United Kingdom
Status:
It is strange that they didn't implement a search function directly into the widget, it isn't much more work to do it. Perhaps we could create an international .ini file with major cities and keep it in H/PC:Update inside a little installer cab?

If people from different states/countries contribted their major cities it wouldn't take too long. I don't know how you'd organise the ini perhaps:
<city>, <country>
or
<country> - <city>

UK
==

UKXX0085, London
UKXX0052, Edinburgh
UKXX0030, Cardiff
UKXX0015, Belfast
UKXX0092, Manchester
UKXX0018, Birmingham
UKXX0025, Bristol
UKXX0098, Newcastle
UKXX0078, Leeds
UKXX0133, Sheffield
UKXX0083, Liverpool
UKXX0103, Norwich
UKXX0527, Hemel Hempstead
 Top of the page
Rich Hawley Page Icon Posted 2012-02-27 2:46 PM
#
Avatar image of Rich Hawley
Global Moderator
H/PC Guru

Posts:
7,188
Location:
USA
Status:
Actually, the codes are already made out in a complete listing for every country in the world here: http://edg3.co.uk/snippets/weather-location-codes/

Attached is the listing for the UK if you want to look at it...



Attachments
----------------
Attachments UK.txt (41KB - 2 downloads)
 Top of the page
C:Amie Page Icon Posted 2012-02-27 3:46 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
18,043
Location:
United Kingdom
Status:
Useful! Good find.
 Top of the page
Jump to forum:
Seconds to generate: 0.312 - Cached queries : 64 - Executed queries : 13