New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Tip us?
 
Weltherrscher
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 16
Join Date: Aug 2008
Default Add Cities to Weather-Tab?

Hi, Weather Database Editor doesnt work with my Girlfriends Touch 3G (german).
Is there any Solution to manually add Cities?

Thanks. =)
 
vibez
Old
#2  
Senior Member
Thanks Meter 9
Posts: 236
Join Date: Apr 2008
Same problem here
 
Galvatron
Old
#3  
Galvatron's Avatar
Senior Member
Thanks Meter 0
Posts: 114
Join Date: Aug 2008
Location: Redmond
Try this one..

http://forum.xda-developers.com/show...4&postcount=73
[TestDrive:Rhodium100] [Primary:TouchPro:6.5b21921 NRG-Gen-0905 Rdo1.14.25.05]
[Secondary:Hermes:6.5b23007:Rdo:1.56.70.11] [Sports "Zune"-fied :Elfin:6.5b23409:Rdo3.34.90]
[StarTrek:6.1b21040.1.6.6]
[Docked:Himaraya:6.5b21500-Needs WiFi-G-SD]
[Typhoon:6.1b21040:Aluet:V1.6]


http://wl.windowsmobile.com Official WL4WM: http://www.getcomo.com
http://m.bing.com/download New "LiveSearch": http://myphone.microsoft.com backup via Windows Live
 
vibez
Old
#4  
Senior Member
Thanks Meter 9
Posts: 236
Join Date: Apr 2008
Thanks but it does no show any cities...
 
Weltherrscher
Old
#5  
Junior Member - OP
Thanks Meter 0
Posts: 16
Join Date: Aug 2008
yepp, seems that the database has another filename...
i try investigating this...
 
Weltherrscher
Old
#6  
Junior Member - OP
Thanks Meter 0
Posts: 16
Join Date: Aug 2008
Ok, found the Database. =)
Its HH_0407_WeatherCities.xml (for German Users i think).

Bad news:
Its hidden/system/in rom
Any ideas how to rename it?
I copied it to the PC and edited the Cities in but i cant copy it back to the phone...
 
vibez
Old
(Last edited by vibez; 25th November 2008 at 12:54 AM.)
#7  
Senior Member
Thanks Meter 9
Posts: 236
Join Date: Apr 2008
You can easily overwrite the file with resco explorer after disabling touchflo from the today screen but I have yet to find a way to copy the file to the pc. Could you share your xml please?
 
vibez
Old
(Last edited by vibez; 25th November 2008 at 08:23 PM.)
#8  
Senior Member
Thanks Meter 9
Posts: 236
Join Date: Apr 2008
Ok I am getting nearer.
  1. Disable touchflo
  2. Copy HH_0407_WeatherCities.xml from the /windows folder to your pc.
  3. Edit the xml to include your new city.
  4. Copy it back to the phone into somewhere like "My Documents" then use resco explorer to move it to /windows and overwrite the original file.
  5. Copy manil2d.exe from windows to your pc,
  6. download XVI32 from http://www.chmaas.handshake.de/delph...vi32/xvi32.htm
  7. download sign code from N2A's site http://weather.not2advanced.com/files/SignCode.zip
  8. Open manila2d.exe in XVI32 and do a search for "weather.manila1.htc.com" ( make sure Unicode check box is checked )
  9. You will see the update URL in unicode , which means that if you want to replace it , there has to be a hex 00 between every letter !
  10. It needs to be changed to something like weather.not2advanced.com/htcweather/forecastdata.php?locCode=%s%s%s
  11. save manila2d.exe and sign it using N2A's batch file
  12. Copy it back to the phone into somewhere like "My Documents" then use resco explorer to move it to /windows and overwrite the original file.


Now I have the new city listed but when I update, all the temperatures = 0

I'm not sure what I have done wrong but I think the URL is wrong.

Any ideas?
 
Weltherrscher
Old
#9  
Junior Member - OP
Thanks Meter 0
Posts: 16
Join Date: Aug 2008
Ok, the URL was different for me.
Done that but without the %s%s%s.
Still not working.
I can select the cities but i cant see them in the tab.
Update says that it cannot get updates for the selected city.
 
Garfield1970
Old
(Last edited by Garfield1970; 26th November 2008 at 07:58 AM.)
#10  
Garfield1970's Avatar
Member
Thanks Meter 4
Posts: 69
Join Date: May 2005
Location: Bascharage
Default Hi Vibez

I reply here instead of the PM , so the others can read it aswell :)

I don't have a touch 3G so I cannot experiment for you , but 1 thing is sure ,
people had the same issue on the Diamond ( cities not updating after hex-edit ) when the hex-edit was not done 100% correctly ...

So 2 questions :

1) Did any of you try the reigistry hack from the diamond ?

Quote:
In stock ROM, the URL used to update the weather is a specific Accuweather URL. WDE change it to point to N2A'website ( http://weather.not2advanced.com/ ).
Registry key=HKEY_CURRENT_USER\Software\HTC\Manila
String value Name=Weather.ServerURLOverride
2) when u tried patching , did the replacement weather string have EXACTLY the same length as the original ? On the diamond , it was an absolute no-go when the length was different

Quote:
Open manila exe in XVI32 and do a search for "weather.manila1.htc.com" ( make sure Unicode check box is checked )

You will see the update URL in unicode , which means that if you want to replace it , there has to be a hex 00 between every letter !

I then replaced : http://weather.manila1.htc.com/widge...s&?ac=TR2cra9U
with : http://weather.not2advanced.com/htcw...ac=XDADevs1234

Those two lines have exactely the same length upto there ( That's why i added 1234 to the XDAdevs , thankfully that's ok with N2A's site ) so the rest of the URL ( &device=innovation etc.. ) can remain unchanged !
If that fails to work , send me a copy of the manila app ( modded and original maybe so I can see what u did ) , I'll look at it , patch it & send it back for you to try ...

I can't promise anything of course , but I'm on holidays this week , so I've got a little time to spare ;)

cheers,
Claude


XDA PORTAL POSTS

Forum Added for the Samsung Galaxy Mega

What do you do when the Galaxy Note line is simply not big enough? You get theSamsung Galaxy Mega. … more

Voice Control Your Phone with Tasker and AutoVoice – XDA Developer TV

XDA Developer TV Producer Kevin set up his phone to respond to … more

Guide to Take Better Control of Your Volume Levels

Would you like to know one of the things that really annoys me on a daily basis? Tough, … more

Get the Android 4.2.2 Status Bar on Your Gingerbread-Based Samsung

There are still quite a few of folks who run Gingerbread on their … more