yashsingh1/xdaforums huggingface dataset:
[8525, TyTN, MDA Vario II, JasJam ROM Development] qxtg:
HTC Touch Diamond:Customize weather location with sqllite

Hello everyone,

wanted to customize weather locations in my new T-Mobile MDA IV.

Did it this way:

looked with total commander inside the windows dir for a file containing a known city, e.g. Augsburg.

-Found the text inside 2330fc3c_manila

-copied 2330fc3c_manila to a local dir

-removed the readonly flag

-analyzed with hex editor-> has a string SQLite format 3 -> must be a sqlite database file

-got sqlitebrowser-1.3-win.zip from sourceforge

-edited the 2330fc3c_manila and replaced the first entries with my data

-saved the file

-removed the ro/sys/hidden flags of the existing file in /windows with total comander

-copied back to / on the htc (overwrite the file at it's original location in /windows won't work!)

-copied the file with total commander to /windows

-the modified location is available

Hope this helps!
[8525, TyTN, MDA Vario II, JasJam ROM Development] GorillaPimp:
Great fix! Took me a few hours to figure out Total Commander would copy the xml file but resco wouldnt. Also still have to rename HTCHome.dll to unpatched.dll and move it to the tools folder or edit the script.
[8525, TyTN, MDA Vario II, JasJam ROM Development] N2A:
Still haven't figured out why this is happening. Edit the script how?
[8525, TyTN, MDA Vario II, JasJam ROM Development] eL777:
Hey, I am new to these forums but I have been reading them a lot lately since I bought a new phone a few weeks ago. I have a Samsung i760 and a new WM 6.1 upgrade just recently came out so I upgraded but I can't seem to get N2A to work for local cites or at all really. HTChome works but when I used the patch from you guys and reboot my screen freezes. I have to hard reset to go back to get anything to work again. I have tried the .cab from the universal patch, I have tried just replacing the HTChome.dll file, and tried the prepackaged .cab with n2a already in it. Everything freezes my screen. Do you have any kind of solution to this yet or am I one of the only ones with this problem??? Thanks a bunch.
[8525, TyTN, MDA Vario II, JasJam ROM Development] touchcentro:
upgraded sprint touch freezes with n2a

I had a similar problem. My solution was to download the cab file for the already patched version of the HTC Home plugin. I found it at pocketemu.com on the download page.HTC Home Plugin v2.1 (patched by N2A). I also downloaded the HHC program and installed it. Makes it much easier to put your hometown on the weather. Make sure that you have disabled your current HTC Home plugin on the today settings screen before you try to install the patched one. Hope this helps, took me a while to figure out. (I know, I'm a noob).
[8525, TyTN, MDA Vario II, JasJam ROM Development] eL777:
Well that kinda worked. It didnt freeze this time when I used that .cab but now HTC will not show up on my today screen. I can see it in the today settings but I can't get the little window to pop up asking me if I want to run HTChome.dll... ugh, thanks for the help, any other suggestions that might solve this? :p
[8525, TyTN, MDA Vario II, JasJam ROM Development] dstech:
After you install it and before you restart your device you must place a patched HTChome.dll in the Windows directory.

Try this patched HTChome.dll:

http://xdaforums.com/attachment.php?attachmentid=76307&d=1205792600

If you get an error when trying to copy it into your Windows Directory then it means HTC Home is already running. You must either disable them or uninstall all copies and then reinstall it again. If you reinstall just make sure NOT TO RESTART Windows Mobile until you've copied over the dll file into the Windows directory.
[8525, TyTN, MDA Vario II, JasJam ROM Development] eL777:
Right, I had a replacement HTChome.dll but it wasnt patched with n2a and everytime I tried to patch my own replacement by using the patcher it would freeze my screen but I think I have finally solved my problem by using "HTC Home 2.1 (xplode cab for BA, WM6)" on the website. That was my last option and it worked so I'm lucky I guess. Thank you guys for all your help. Now I can finally start customizing with 6.1! :D
[8525, TyTN, MDA Vario II, JasJam ROM Development] LeeCHeSSS:
Cool, that particular cab file works for me on 6.1 too!
[8525, TyTN, MDA Vario II, JasJam ROM Development] JamesTKirk74:
:orfggvfrtr5r655rtrr332212:o
[8525, TyTN, MDA Vario II, JasJam ROM Development] LeeCHeSSS:
It appears that while this cab does not crash my phone, it has a bug that prevents the phone from being turned off by holding the on/off button.

Damn, back to no custom weather for me :(
[8525, TyTN, MDA Vario II, JasJam ROM Development] GorillaPimp:
Im using a htc 6900 from Sprint and after the official upgrade I got nothing. No patched dll from any source will work. I've tried them all, tried the patch script and most of them permanently crash my touch on startup requiring a hard reset. The only one that doesn't crash it is the one referenced above with the file name HTC[1].Home.v2.1.1005.722.DLL.replacement.zip. But that one kills the entire home app - it wont appear at all, but the rest of the OS seems stable.

Is there any work around for a Sprint Touch running 6.1 from HTC's website? Any other weather applet program I can use instead? This sucks.
[8525, TyTN, MDA Vario II, JasJam ROM Development] booblik2009:
Well, I just bricked my phone with N2A Weather Patch file. I forgot to uninstall HTC Home Plugin prior to installing your cab, so now I'm not even able to get to the home screen on my Touch. ActiveSync is not seeing a device either (no way to roll back changes/uninstall). Gosh, I need some help, I'm dependent on my phone. Any help would be much appreciated.
[8525, TyTN, MDA Vario II, JasJam ROM Development] N2A:
Whoops! I'm guessing hard reset time I'm afraid... :(
[8525, TyTN, MDA Vario II, JasJam ROM Development] timmymarsh:
Patch HTChome.dll

Hi N2A,

I tried your N2A patcher as per your instructions. It came back with an error:

"Unable to patch correctly, wither the file has been patched or something has gone wrong." I havnt tried to patch this?

My HTCHome file is version 2.0.1025.721 HTC touch cruise WM 6.

I have modified the xml file no probs. When i check the regisitry in weather settings, the local code is correctly set, but there is a cityindex number above it which appears to be different with every city. Wot is the number for my location - EUR|JE|JE---|JERSEY - obtained from accu weather?

Thanks for you efforts, i have also put alot of time into this.
[8525, TyTN, MDA Vario II, JasJam ROM Development] emkorial:
I had patched my HTCHome.dll while running the WM 6 rom, and everything worked well. I kept a copy of the patched DLL around, and whenever 3 flashed, I dropped in that copy, and was up and runnning

I upgraded to WM 6.1, install HTC home, everything works fine. I pop in the patched DLL, freezes the phone!!!

If I repatch the current DLL on the system now, would I get anything different than the patched DLL I already have? I don't want to have to flash my phone again!
[8525, TyTN, MDA Vario II, JasJam ROM Development] emkorial:
I did this as well, you need to hold down the power button and camera button, then soft reset, and the phone will restart in bootloader mode, the screen will have colored bars and say "Serial" on it. Plug in your USB cable and it should change to say "USB". You can then reflash the phone from your computer, even though activesync isn't connected.
[8525, TyTN, MDA Vario II, JasJam ROM Development] emkorial:
No one? No help at all? Is there ANY way to patch the HTC home dll and have it work on WM6.1?
[8525, TyTN, MDA Vario II, JasJam ROM Development] emkorial:
SUCCESS!!

The patched DLL didn't work, however, pulling the DLL off my phone and hexediting it did the trick.
[8525, TyTN, MDA Vario II, JasJam ROM Development] gobraves00:
6.1 i760

i keep dropping the patch in but it doesnt replace the HTCHome.dll, it replaces the HTCHome instead. everything i have read it says it should replace the .dll one. what am i doing wrong? i get the preprogrammed cities to work but when i try the make a custom city it doesnt work. i live close to Atl, ga so i guess i can use it for weather just hoping for something a little closer. anyone that can help please do.
[8525, TyTN, MDA Vario II, JasJam ROM Development] cacahahacaca:
Is this supposed to work with the Shadow TE 2.1 cooked ROM? I copied HTCHome.dll to the patcher directory but got the message:

============================================================

N2A's Automatic Weather Patched DLL Package Creator

Created by N2A @ XDA-Developers.com

For all questions, please see the thread at XDA-Developers

and the site at http://weather.not2advanced.com/files/

============================================================

The system cannot find the file specified.

File not found - unpatched.dll

grep: unpatched.dll: No such file or directory

Performing patch...

Reading from unpatched.dll...

Error opening input file unpatched.dll

Could Not Find C:\Users\[UserName]\Downloads\N2A-Patcher\tools\unpatched.dll

Could Not Find C:\Users\[UserName]\Downloads\N2A-Patcher\tools\patched.dll

=======================================================================

Process failed! Unable to patch the HTCHome.dll file correctly.

Either this file has already been patched, or something has gone wrong.

If you are sure the file is not pre-patched, please report this error

on the XDA-Developers forums, using the link from

http://weather.not2advanced.com/files/

=======================================================================

Press a key to exit.
[8525, TyTN, MDA Vario II, JasJam ROM Development] GorillaPimp:
That worked for me too. Thanks for mentioning it.
[8525, TyTN, MDA Vario II, JasJam ROM Development] darrakk:
A word of caution. I used the updated DLL on my HTC Touch w/ Win Mobile 6.0 and it worked flawlessly. However I updated my ROM to Win Mobile 6.1, and now the phone hangs at the welcome screen. Activesync doesn't sync up, and the phone is completely unresponsive. I will have to hard reset.

Not sure if I did something incorrectly. I followed the same proceedure that worked previously for me. Ah well.
[8525, TyTN, MDA Vario II, JasJam ROM Development] maan1976:
question to any of the genius seniors

i have the 6 tabs htc home and it doesnt update the weather automatically according to a certain time frame although i marked in the city settings"download weather data automatically",any suggestion? any way you genius guys can fix this issue? i am sure that you can do alot more,what i am seeing here is unbelievable things,one day you will build your own operating system !
[8525, TyTN, MDA Vario II, JasJam ROM Development] W7GMC:
It Works!

Thanks for the great job fixing what HTC won't. I just received my Verizon xv6900 on the Aug 19th and been having fun playing and configuring the device. It wouldn't be as much fun without developers like yourself putting for the effort to enhance these encased electrons...:)
[8525, TyTN, MDA Vario II, JasJam ROM Development] projhex:
Hello N2A and Others,

I'm having some problems with this Patch / Plugin for the weather update and I think I have tried most different ways of doing it suggested in Post #1 and Post #402. I have had to hard reset my phone 4 times due to issues involved herein (not a huge deal to me, I just want the weather to work.)

About my Phone...

I have an HTC TyTN II KAIS130

ROM version 3.28.405.0 WWE

ROM date 05/02/08

Radio Version 1.65.17.56

Protocol Version 25.83.17.56

I use the phone in the United States with AT&T Wireless

I believe I have the '5 tab' HTC Home? My tabs are; Home | Favorite People | Weather | Launcher | Sound

Each time I have attempted to udpate I have made sure to install the SDK Certs first.

Run #1) I had HHC Installed, but had disabled it and HTC Home before patching. I used the KaiserHTCHomeDLL.cab TyTN specific replacement installer. After the file ran the phone restarted itself and then began restarting itself every time it booted up. Had to Hard reset.

Run #2) Also with HHC Installed and disabled. I used the N2A Universal Patcher this time around from my PC and received this message

I also tried this after another hard reset with a HTCHome.dll file that was fresh from a clean install and received the same message.

Run #3) Without HHC Installed. I tried another method using a port opener to open the port to htc.accuweather.com. The process is described here. I Tried to manipulate the HH_0409_WeatherCities.xml file to no avail even with the port opened. I then installed HHC and tried to manipulate the HH_0409_WeatherCities.xml file after creating a 'custom' location for my location. No avail.

Run #4) Without HHC Installed. I used the method described in Post #402 from a fresh install. During the Re-enable HTC Home step this caused my phone to restart and then continue to restart every time it booted up, causing the last hard reset.

Any suggestions would be helpful, while the weather is not the most important thing in the world, I feel it should work and the two closest locations to me are 30 miles in either direction.
[8525, TyTN, MDA Vario II, JasJam ROM Development] n8huntsman:
Im running Dvha79 which as I understand comes from a TOUCH. So I installed the sdkcerts and TouchHTCHomeDLL.CAB, then edited my .xml file. But when I select my city, a get the "unable to retrieve data..." error. Any advice on how to get it to work?
[8525, TyTN, MDA Vario II, JasJam ROM Development] MB300E:
I used HTC Home 2.1 (xplode cab for BA, WM6)

works just fine to me, it will replace the orginel htc home with a 6 tab one :)
[8525, TyTN, MDA Vario II, JasJam ROM Development] alasdairford:
i may have found a much easier way

Not so techy but it seems to work for UKcities at least- maybe it shouldn't so I could do with some corroboration please - it's a simple reg hack.

nottingham in Nottinghamshire is EUR|UK|UK189|NOTTINGHAM however when I altered the code to this ... it doesn't work, I get an unable to download data error as suggested by experience above.

However with a little reg rummaging I discovered that when changing city in the app both London and Manchester have nearly identical codes EUR|UK|UK001|cityname despite the fact that the accuweather codes are EUR|UK|UK124|LONDON and EUR|UK|UK189|NOTTINGHAM.

So I changed my Touch code to EUR|UK|UK001|NOTTINGHAM and it seems to work I certainly get different weather from London Village and God's own City and as suggested it's pissing down outside can anyone else replicate this?
[8525, TyTN, MDA Vario II, JasJam ROM Development] N2A:
I do know that it tends to cache DNS entries, and often won't take notice of the hosts entry until you reset.

However, I'll be publishing patched versions of the HTCHome.dll files shortly, which should directly access my server instead of using hostfile hacks. :)
[8525, TyTN, MDA Vario II, JasJam ROM Development] N2A:
That's bizzare - did you soft reset after putting the hostfile entry in?
[8525, TyTN, MDA Vario II, JasJam ROM Development] N2A:
I've noticed that myself - the accuweather site doesn't seem to care all that much about the number. I'd guess that it's probably a UK-specific thing, although I could well be wrong. Still, worth trying if people are struggling!
[8525, TyTN, MDA Vario II, JasJam ROM Development] charun:
I'd just like to report my success getting this to report the weather in my little city in Australia. Without this, the closest weather source was about 600km away.
[8525, TyTN, MDA Vario II, JasJam ROM Development] Fickle1:
Yup. I have reset several times since then.
[8525, TyTN, MDA Vario II, JasJam ROM Development] N2A:
Just checking. Weird!

All I can suggest is try the patched homeplug when I get chance to get it signed and packaged, hopefully tomorrow.

The plugin should be getting the data though, as the XML file definitely gets produced. All I can logically conclude is that the data isn't getting from the server to the phone, but I'm still wondering why.
[8525, TyTN, MDA Vario II, JasJam ROM Development] lassa10:
Barcelos, Portugal

Hi, i try everything what you say but i can't put it right!!!!!

Could you make a XML or a CAB file for this city:

Barcelos , Portugal( http://www.accuweather.com/world-index-forecast.asp?partner=forecastfox&traveler=0&locCode=EUR|PT|PO004|BARCELOS&metric=1 )

Please hellp me N2A:(
[8525, TyTN, MDA Vario II, JasJam ROM Development] bilybob:
I have the same problem:

http://64.62.158.108/widget/htc/forecast-data_v3.asp?ac=TR2cra9U&locCode=NAM|CA|NL|SAINT%20JOHN'S

this works for me on the device, but the prg doesn't work...
[8525, TyTN, MDA Vario II, JasJam ROM Development] Fickle1:
Here is the odd thing. The Waldo and Marion entries suddenly started working for about an hour and has since quit working. But the entry for Columbus still works. Nothing was changed in the phone they just started working for a short while.
[8525, TyTN, MDA Vario II, JasJam ROM Development] pkley:
Worked for me after a SR - using Cingular Medianet, proxy disabled, Black Satin!

Copied the HH file to desktop, right clicked, Edit, copied another US city over the first entry, edited to my city. Copied file back over async to phone, worked like a champ! No Read only issues or anything!

WOO HOO!
[8525, TyTN, MDA Vario II, JasJam ROM Development] RpR:
Ah yes. I didn't bother to fiddle with a rewriter, i just renamed the php file to the asp file and made IIS send it to php ^^

Works wonderful :-)
[8525, TyTN, MDA Vario II, JasJam ROM Development] LeeCHeSSS:
Will you be able to incorporate a way to change the request to any IP (for instance that of my own server) in your patched htchome.dll?

I reckon that otherwise your bandwidth will be taking quite a hit if all of this forum's members are going to use your server :)
[8525, TyTN, MDA Vario II, JasJam ROM Development] RpR:
It's a very small xml file, unless he's on a modem i doubt he'll even notice ;-)

89.184.130.103 is my server if anyone can't be bothered using their own.
[8525, TyTN, MDA Vario II, JasJam ROM Development] muskangul:
make xml file for me

City=GHOTKI

Country = PAKISTAN
[8525, TyTN, MDA Vario II, JasJam ROM Development] RpR:
If you can't figure out to edit the XML file, you won't figure out the rest either. Sorry for pointing out the obvious.
[8525, TyTN, MDA Vario II, JasJam ROM Development] N2A:
I'm guessing spaces or apostrophes. Hang tight, I'll see what I can do.
[8525, TyTN, MDA Vario II, JasJam ROM Development] N2A:
To be honest, it's a hardcoded job. But unless they manage to get through more than 100GB a day (doubtful with a 4K XML file!), I don't need to worry at all ;) That machine is sat in a datacentre.
[8525, TyTN, MDA Vario II, JasJam ROM Development] N2A:
Well, quite. I think I'm going to put in the first post "No, I will NOT make your XML files!"
[8525, TyTN, MDA Vario II, JasJam ROM Development] N2A:
Added patched DLLs. See first post. Cabs to follow!
[8525, TyTN, MDA Vario II, JasJam ROM Development] N2A:
Excuse the lack of my replies / checking this thread lately, I've been fairly busy with a house move. I'll see what I can do re answering everyone's issues soon!
[8525, TyTN, MDA Vario II, JasJam ROM Development] murducky:
us celluar htc touch

hi..

so i have been ready this tread and do not see anything relating to us cellular,, seeing how we just got the touch this month.

I just want to make sure the HTC Home (Touch version, 3-tab, WM6) is the right version of the cab file to install.

i currently put the htc home customize 1.0 .. but i can not get the weather to update for eagle point, oregon

i have tried to zip (97524) and the full (NAM|US|OR|EAGLE POINT) instead.

i did check my /windows/htc weather.xml and the correct setting are there put it wont grab the data ?

phone is wm 6 not wm 6.1

Any ideas and thank you for any help!
[8525, TyTN, MDA Vario II, JasJam ROM Development] spooner2k:
some..troubles

i'm experiencing the same troubles, now i've been stupid..and my tytn displays a white screen :P

I have to hard rest the device....
[8525, TyTN, MDA Vario II, JasJam ROM Development] Skyh123:
I have tried this with my Vogue, but my device is freezing after placing the HTCHome.dll in my windows folder. Also, after this it will not boot and a hard request is required.
[8525, TyTN, MDA Vario II, JasJam ROM Development] PablosOne:
i have a htc wing with the ot7.3 rom and i cant add my city to the weather list. but it sais"unable to retrieve data for selected city"

my city is Logansport Indiana 46947

i put this <city name="Logansport, US" loca="NAM|US|IN|LOGANSPORT " land="United States "/> on the HH_0409_WeatherCities.xml file

what should i do?

edit: i used N2A-Packager because the other two didnt work and my cell has this HTCHome.dll.0409.mui , i changed the name for HTCHome.dll

thank you
[8525, TyTN, MDA Vario II, JasJam ROM Development] iago_00:
@N2A

does this patch work for MANILLA2D?
[8525, TyTN, MDA Vario II, JasJam ROM Development] contxda:
Problem with HTC Touch Dual

Sorry to disturb you with my problem. But I realy could use some advice.

I have an HTC Touch Dual from Orange. And from the first day I got it, the weather feature didn't worked. To be more specific, the city that I want to search is in the list (original xml file of the phone), and when I try to connect (I have gprs-edge activated and internet browsing is working without any problem) the phone is starting the gprs connection, then, after 30 seconds I get the folowing message: "Unable to retrieve data for selected city. Select here to retry." And when I do retry, obviously I get the same error.

I have to mention this: I had tried changing the HTCHome.dll (using Total Commander) and patching the dll (N2A-PatchOnly - was the one that work patching) and I search for the string in the xml file (and I found the city - by the way is TIMISOARA - RO) and I also checked the registry and found no problem.

:mad: :(

So, if you got any ideea that I can try, please help me.

Thanks.
[8525, TyTN, MDA Vario II, JasJam ROM Development] omar207:
There Must Be A Simpler Way

Gotta tell ya, I'm kinda disappointed in this thread. I certainly appreciate and commend all of the hard work that went into it.

But isn't there a simpler way??? I have a very difficult time following paragraph after paragraph of instructions on what should be the simple task of changing a few lines of command codes.

I implore this developing community:

Please come up with a simpler way for me to get my HTC Homescreen Weather

OR...

write a more reader/user friendly post instructing me how to make the necessary changes to my Wizard so that I can get my local weather.

Thank You to this, and all XDA Developers.
[8525, TyTN, MDA Vario II, JasJam ROM Development] htc-marc:
Please help with my HTC Touch

I am having problems with getting the local weather for Ilfracombe, UK.

I had it all set up before, although it took a bit of time to sort out. Unfortunately some idiot (me) has managed to accidentally reset the whole phone and I now can't get the local weather back! I have carried ot the same processes as before, but nothing I do works! - Please could you advise me?

I have obtained the AccuWeather code for the town (EUR|UK|UK132|ILRFACOMBE), and have edited the XML document accordingly.

I have double checked the coding and everything appears to be how it should be.

I have amended the file back to being 'archive', 'read only' and a 'system file'.

I have installed pocket hosts and have added htc.accuweather.com and IP address as 64.62.158.108.

Ilfracombe now appears as a town on the list, but te weather details cannot be obtained. The pone can still get the weather details of all the other places in the list.

I am flat out of ideas.

Please help. Thank you,

Marc.
[8525, TyTN, MDA Vario II, JasJam ROM Development] chrysx:
works well on HTC Hermes

with PDAcorner v27.

Thanks for the nice toolset !

Even a strange locations weather like Whitehorse's,YT is accessible.

Cities change smoothly with HTC Home Customizer by help of the external weather database without editing xml files directly.

... and, btw, offtopic somehow, this ppc setup style in general has really nothing in common with linux style ...