How to configure HTC Hero Cydget to show your city’s temperature | iPhone & iPod touch News / Help

How to configure HTC Hero Cydget to show your city’s temperature

by Abhishek on November 17, 2009

in Cydget Themes, Cydia, Tips/Tricks, Troubleshooting

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.

IMG_0098 IMG_0097

IMG_0100 IMG_0103

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)

IMG_0099

librarybroser

lockcydgets

  • 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.

configure

  • 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.

configurmejs

  • 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.

nagpur

  • 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.

changed configure

  • 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.

IMG_0101

  • Unplug your phone from computer, Respring your phone, you will see your city name and temperature on lock screen.

{ 1 trackback }

cydget question - The iPhone Blog Forums
12.03.09 at 4:07 am

{ 24 comments… read them below or add one }

eyePH0NE 11.17.09 at 1:43 pm

Thanky ou, but it does not work for german cities :(

Abhishek 11.17.09 at 6:14 pm

It should work, Can you give your city’s name
?

leigh 11.17.09 at 11:47 pm

im in the uk, the link to weather site does not support uk weather? how else can i find the var local thing?… thanks

Cre@tsher 11.18.09 at 5:39 pm

Just use Yahoo weather and it will work ;)

eyePH0NE 11.18.09 at 6:00 pm

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? :-|

Abhishek 11.18.09 at 6:41 pm

@eyePhone: code for Essen is dexx0003

Abhishek 11.18.09 at 6:46 pm

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

eyePH0NE 11.18.09 at 7:04 pm

dexx0003 does not work.
I already posted that yesterday, my comment has been deleted.

eyePH0NE 11.19.09 at 12:58 am

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!

lenny 11.19.09 at 8:01 am

the weather doesn’t work for me. mine is Penang, malaysia… and the link shows this..

http://www.theweathernetwork.com/airportfx/wmkp

lenny 11.19.09 at 8:13 am

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..

EyePH0NE 11.19.09 at 5:22 pm
EyePH0NE 11.19.09 at 5:24 pm

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

Nilesh 11.19.09 at 7:27 pm

Looks like there is a India stocks cydget now on Cydia(Modmyi).. Moneycontrol on lockscreen or so

Abhishek 11.19.09 at 7:53 pm

Nilesh, did it worked for you, for me it dint worked, it showed me cydget’s info instead of sttock info..

wptan 11.19.09 at 8:24 pm

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.

HTC Hero 11.25.09 at 4:58 pm

such an interesting new above is given to us, |I like it as well to method of it. 8-O

myiphonerocks 11.30.09 at 12:15 am

great posting, worked perfectly

myphone 12.02.09 at 9:35 am

works like a charm for the states!! thanks  :lol:

Albert 12.13.09 at 5:11 pm

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

Sixten 12.17.09 at 5:27 pm

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…

Adam 12.23.09 at 12:33 am

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.

Robin 01.14.10 at 4:48 pm

Hey guys,
just check out this site for weather codes ;-)
Especially Germany…
http://www.edg3.co.uk/snippets/weather-location-codes/germany/

Kristofer 02.10.10 at 12:07 am

How about to change time to 24 hours? We don´t use PM and AM in Sweden.

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous post:

Next post: