You must be aware of saurik’s new Cydget platform for iPhone. After installing HTC Hero cydget you might’ve noticed that it only shows the temperature of Grayslake and even there is no option to change it to show your city’s temp. Well don’t worry, we will give you the steps to show your city name and its current temperature. To do this you have to make some changes on one file.
Note: It will not show your temperature, if you are not connected to WiFi or 3G/Egde.
Here are the steps:
Note: Before following these steps make sure you’ve iPhoneBrowser installed on your PC to access iPhone’s files, you can also use Diskaid to access iPhone’s files.
- Plug your iPhone and launch iPhoneBrowser(those who are upgraded to 3.1.2 and jailbreaked with backra1n, you need to install afc2add from cydia to make iPhonebrowser work)

- Now on leftside on iPhoneBrowser you will see list of folders; click on System>Library>LockCydgets>HTCHero Cydget folder.
- Once you clicked into HTCHero.cydget folder, you will see few folders and files too, just click on private folder.
- On right side you will see configureMe.js file, just right click on it and select save as option and save it on desktop or wherever you want, just remember where you saved it.
- Minimize iPhoneBrowser, and open that configureMe.js file on Notepad.
- You will see var locale = ‘USIL0490′, well USIL0490 is the code of Grayslake, all you need to put your cities code here.
- Ok to find your city code you need to launch http://www.theweathernetwork.com/ and enter your cities name on Search for Location text box.

- After selecting your city, it will show your cities temperature, Now on addressbar of your internet browser you will see something like inxx…. at the end. well that is the code of your city, for example if you chose Nagpur as your city then on address bar it will show: http://www.theweathernetwork.com/weather/inxx0093 and you need to copy inxx0093 and open configureME.js file and replace USIL0490 with inxx0093.
- Currently it is showing temperature on Faherenheit and if you want it to show in celsius, if you’ve change to ‘true’ where it says var isCelsius = false i.e it shoud be var isCelsius = true.
- Thats it you are done you can save it.
- Now goto iPhoneBrowser and replace the existing configureMe.js file with the one on which you’ve just made the changes.
- Unplug your phone from computer, Respring your phone, you will see your city name and temperature on lock screen.


iPhone / iPod touch downloads
{ 1 trackback }
{ 24 comments… read them below or add one }
Thanky ou, but it does not work for german cities
It should work, Can you give your city’s name
?
im in the uk, the link to weather site does not support uk weather? how else can i find the var local thing?… thanks
Just use Yahoo weather and it will work
That’s what I tried first and did not work for me either.
I entered 648820 for my town (germany/north-rhine-westphalia/essen-648820/)
Could you please give detailed info about what to enter? Some country code before the number?
PS: Where has my entry from yesterday gone?
@eyePhone: code for Essen is dexx0003
Guys in this site http://www.theweathernetwork.com/ , you’ve to search by entering your city name,
Suppose you type Essen as your City, It will search and give you similar matchs, choose the exact one which matches your city’s name, After that it will show your temp,Now in case of Essen on addressbar you will see the following link : http://www.theweathernetwork.com/weather/dexx0003
Here dexx0003 is the code of Essen which you’ve to replace in the Configureme.js file
dexx0003 does not work.
I already posted that yesterday, my comment has been deleted.
As already said, this does not work for me.
But now I found out that city codes beginning with DE do not work at all, but those with GM do.
So I went to http://www.weather.com and searched for Essen – the code is GMXX0035, and it works!
the weather doesn’t work for me. mine is Penang, malaysia… and the link shows this..
http://www.theweathernetwork.com/airportfx/wmkp
Oh found the issue, the one listed is airport weather which can’t be supported i think…. for cities, they don’t have it… .darn..
Penang (Malaysia) is MYXX0022 as can be found her:
http://www.weather.com/outlook/travel/businesstraveler/local/MYXX0022?lswe=penang,%20malaysia&from=searchbox_localwx
Penang (Malaysia) is MYXX0022 as it can be found on h t t p : / / w w w . w e a t h e r . c o m
Looks like there is a India stocks cydget now on Cydia(Modmyi).. Moneycontrol on lockscreen or so
Nilesh, did it worked for you, for me it dint worked, it showed me cydget’s info instead of sttock info..
Your article is very helpful.
I live in Hong Kong, the city code from http://www.theweathernetwork.com doesn’t work (hkxx0000), the code from http://www.weather.com does work.
such an interesting new above is given to us, |I like it as well to method of it.
great posting, worked perfectly
works like a charm for the states!! thanks
I live in Antwerp, the city code from http://www.theweathernetwork.com doesn’t work (bean0000), the code from http://www.weather.com does work. (BEXX0003).
And for us Europeans, don’t forget to set var isCelsius = true
Thanx
Nice article for a nice cydget, but all of the cydgets I’ve tried (including HTC Hero) slow down considerably the iPhone, so I uninstalled Cydget…
The codes from theweathernetwork do not work for UK address so I echo everyone else’s comments, use weather.com.
Nice cydget but don’t very much like the appearance of the clock.
Hey guys,
just check out this site for weather codes
Especially Germany…
http://www.edg3.co.uk/snippets/weather-location-codes/germany/
How about to change time to 24 hours? We don´t use PM and AM in Sweden.