Home > Tips & How To > How to Display your City’s Weather on HTC Hero Cydget

How to Display your City’s Weather on HTC Hero Cydget

by Alvin on November 26, 2009

Post image for How to Display your City’s Weather on HTC Hero Cydget

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 }

Noel December 2, 2009 at 5:03 am

Any idea how to possibly drop in another clock to this so it matches the htc theme?

Britt January 1, 2010 at 12:47 am

Thank you so much this was extremely helpful.
Salt Lake City, UT code is usut0225

mike January 9, 2010 at 10:06 am

Macon, GA code is usga0346
Perfect directions, worked great.

jeremiah January 10, 2010 at 1:14 am

not every place work on hero cydget… not for melbourne australia

marcel February 8, 2010 at 8:03 pm

Stuttgart, GERMANY gmxx0128

marcel February 8, 2010 at 8:21 pm

it says 30° Degrees for Stuttgart,Germany although we have winter ?!

Dom February 13, 2010 at 4:14 am

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


Alvin February 13, 2010 at 2:28 pm

Hi Dom,

Thanks for posting the useful link for our UK’s friends…


Jane March 15, 2010 at 12:33 am

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?

Gonzo April 15, 2010 at 1:38 pm

For people having issue for Melbourne, Victoria this is the code ‘SXX0075′ Try http://www.weather.com/ for alternative weather location code.

alex May 4, 2010 at 8:04 pm

dallas texas ustx0327
thanks for the help

Brian Sandoval May 5, 2010 at 7:13 am


Downey, CA – usca0693

alex m May 6, 2010 at 2:25 pm

anyone can tell me how to get my citys code?

ryan May 8, 2010 at 3:49 pm

can anyone help with getting the cydget to show fahrenheit? i am a dumb american :O)

vince May 25, 2010 at 10:38 am

Newcastle upon Tyne , England- ukxx0098

Glax June 28, 2010 at 11:43 pm

Pune, India locale code inxx0002

Umoh February 18, 2011 at 1:16 am

Code for London – UK is ukxx0085

rob June 2, 2011 at 7:44 pm

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

Leave a Comment