Last night, I was tweaking around the HTC Hero Cydget that is installed on my iPhone 3GS. Since I live in Singapore, I wish to have Singapore instead of the Grayslake (default) weather and now, HTC Hero cydget is showing my city’s weather on my iPhone 3GS lockscreen.
If you’ve HTC Hero cydget installed and you want it to display your city’s weather instead, follow the step-by-step guide below, which is the guide I used to set the weather on my iPhone 3GS.
1. Launch cydia installer, search and install “OpenSSH” on your iPhone. After that, I recommend you to change the root password immediately. Follow this step-by-step guide to change it using putty.
2. Install and launch WinSCP on your PC and SSH into your iPhone. Please use the new password to login if you’ve changed at step 1.
3. Navigate to this path: /System/Library/LockCydgets/HTCHero.cydget/Private, right click configureMe.js and select “Edit”.

4. Change the value of “var locale” to your city’s code.

5. “snxx0006″ is the code for Singapore, you can go to theweathernetwork.com and search your city.

6. Save and Exit after you’ve made changes. Then, restart your iPhone and you’ll find HTC Hero cydget is not showing Grayslake weather anymore.

Can you do me a favor? Please copy the code you’ve entered for your city and paste it in the comment below. So that, anyone who lives in the same city can use it on the HTC Hero cydget. Eg. Singapore – snxx0006.







{ 18 comments… read them below or add one }
Any idea how to possibly drop in another clock to this so it matches the htc theme?
Thank you so much this was extremely helpful.
Salt Lake City, UT code is usut0225
Macon, GA code is usga0346
Perfect directions, worked great.
not every place work on hero cydget… not for melbourne australia
Stuttgart, GERMANY gmxx0128
it says 30° Degrees for Stuttgart,Germany although we have winter ?!
I spent a while searching for Portsmouth UK which I manage to find in the end.
Here is a link for all the places in UK
http://www.edg3.co.uk/snippets/weather-location-codes/united-kingdom/
Hi Dom,
Thanks for posting the useful link for our UK’s friends…
Cheers~~~
Most of the towns near me all go back to the weather reading at the local airport. None of the location codes work. My zip is 28651 which corresponds to the Wilkes County airport weather reading. I have tried Millers Creek, Pulear, North Wilkesboro and Wilkesboro but none work. What else can I do?
For people having issue for Melbourne, Victoria this is the code ‘SXX0075′ Try http://www.weather.com/ for alternative weather location code.
dallas texas ustx0327
thanks for the help
nice,
Downey, CA – usca0693
anyone can tell me how to get my citys code?
can anyone help with getting the cydget to show fahrenheit? i am a dumb american :O)
Newcastle upon Tyne , England- ukxx0098
Pune, India locale code inxx0002
Code for London – UK is ukxx0085
To find your cities code easily, go to http://weather.yahoo.com/ and search your city, once you’ve done this, simply select the RSS feed button and take your code from the URL (i.e. http://weather.yahooapis.com/forecastrss?p=UKXX0079&u=f means the code for Leicester is UKXX079) Hope this helps