yashsingh1/xdaforums huggingface dataset:
[8525, TyTN, MDA Vario II, JasJam ROM Development] caicai:
HTCHome.dll hack ?

Hi N2A,

You did a great job.

Could you explain how to hack the HTCHome.dll. I have a Faman 3.3 WM6 ROM including HTC Home and the dll attached in your first post doesn't work for me. Perhaps because all the files in Faman's HTC Home are in Windows dir and not in HTCHome dir ?

I tried to hexedit myself the HTCHome.dll replacing the string

"h t t p : / / h t c . a c c u w e a t h e r . c o m / w i d g e t / h t c / f o r e c a s t - d a t a _ v 3 . a s p ? a c = T R 2 c r a 9 U & l o c C o d e ="

by the string

"h t t p : / / w e a t h e r . n o t 2 a d v a n c e d . c o m / h t c w e a t h e r / f o r e c a s t d a t a . p h p ? a c = X D A d e v s & l o c C o d e ="

But it didn't work (HTCHome didn't appear anymore in today plugins list).

Is there something else to modify in the file ? A CRC or something like that ?

Thanks for your Help
[8525, TyTN, MDA Vario II, JasJam ROM Development] carlosp_uk:
Ah, this is something I was taught on this very forum a month or so ago. You need to bear two things in mind:

1. Make sure if you're going to alter strings like this inside an executable that you keep them exactly the same lengh as the original. OR try using resource hacker to see if the strings are stored as resources, but in my experience HTC don't tend to code like this so it's back to the 'keep it the same length' method.

2. For the home plugin to appear in the list, you need to re-sign the code once you've hex edited it. There is a signcode utility on sourceforge here:

http://www.codeproject.com/useritems/signcode.asp

Job done

C
[8525, TyTN, MDA Vario II, JasJam ROM Development] vippie:
Only need to sign the file like explained by carlosp_uk and it will work.
[8525, TyTN, MDA Vario II, JasJam ROM Development] caicai:
Thank you very much Carlos ! I now have the weather forecast for my city

1. OK (same string length)

2. I didn't know wich certificate to use with signcode. I found on this thread http://xdaforums.com/showthread.php?t=250216 someone who packaged it in a small batch file with a certificate already created. I just had to use the command "sign htchome.dll" to sign my dll. I replaced it on the trinity and everything went fine without installing any certificate on the device (but maybe it's because the sdkCerts are embeded in Faman's ROM ?).

Thanks to vippie too for his quick (but not as fast as Carlos) answer and of course to N2A who found the trick and let us use his server.
[8525, TyTN, MDA Vario II, JasJam ROM Development] billybobjimbobob:
Update with the new version of HTC Home?

Any chance you can update your CAB using the latest version of Home? Some of the functionality in home went away when I used your CAB. Specifically it no longer allows me to choose which number to use for Favorite People.

Thanks
[8525, TyTN, MDA Vario II, JasJam ROM Development] vippie:
http://xdaforums.com/showpost.php?p=1465677&postcount=309
[8525, TyTN, MDA Vario II, JasJam ROM Development] galaxys:
@vippie: thanks for this cab. Is it for BW or Color? I was looking for the htc home Color.
[8525, TyTN, MDA Vario II, JasJam ROM Development] vippie:
It's the dll. Can use it for both :) !
[8525, TyTN, MDA Vario II, JasJam ROM Development] jdac21:
thankx work on schaps 3.60a
[8525, TyTN, MDA Vario II, JasJam ROM Development] (V)eGa:
This worked perfectly for me on my 6800. Big Thanks :)
[8525, TyTN, MDA Vario II, JasJam ROM Development] osibin:
I can not locate the xml file on my phone. Can someone please help.
[8525, TyTN, MDA Vario II, JasJam ROM Development] netdale:
Unable to get working with Schap's WM6 Pro 3.60a Full ROM

I've tried everything; I have the working XML file but no updates work. I then tried using the latest dll found in post #309 (HTCHome_dll_v2.0.720719) but that only makes the plugin not display properly. Any ideas?
[8525, TyTN, MDA Vario II, JasJam ROM Development] _LunaTiC_:
This dll (post #309) disables the use of Brightness Shortcut. Any ideas?
[8525, TyTN, MDA Vario II, JasJam ROM Development] Dick69:
Hi, has anyone got the weather updating via GPRS on WM5 where the service provider uses a proxy?
[8525, TyTN, MDA Vario II, JasJam ROM Development] craiggers14:
I followed the instructions on the first post for editing the XML file and pasted it back into my /windows folder. Everything went well until I tried to download the data. I got the accuweather site when I went to htc.accuweather.com. I am trying to get it to work for Bellport NY 11713.

Any help?
[8525, TyTN, MDA Vario II, JasJam ROM Development] lyyup:
n2a:

today,I can't update my weather.I copy my city"http://weather.not2advanced.com/htcweather/forecastdata.php?ac=XDAdevs&locCode=ASI|CN|CH023|LINYI“ in IE,it show "Fatal error: Call to a member function attributes() on a non-object in /home/n2a/domains/not2advanced.com/public_html/weather/htcweather/forecastdata.php on line 53".:confused: :confused:

PLEASE HELP!

Thanks!!!
[8525, TyTN, MDA Vario II, JasJam ROM Development] pogi-man:
How to configure weather for Hawaii on an HTC touch phone

Hi,

I've tried the suggestions on your postings but have been unsuccessful to pull weather information for hawaii....I need this to be working....please help!:(
[8525, TyTN, MDA Vario II, JasJam ROM Development] dckiwi:
Mine won't update either, washington dc. Pasthru/Wifi/GRPS, nada.
[8525, TyTN, MDA Vario II, JasJam ROM Development] vp3G:
Updates failing here as well. I suspect N2A's service may have a problem. :(
[8525, TyTN, MDA Vario II, JasJam ROM Development] gemblaster:
N2A, I have update problems as of last night as well. I suspect that there may be an issue with your server since you said this in your first post...

What does this do?

It reroutes the request to the AccuWeather server to my server instead, which then requests the appropriate data from the AccuWeather server, and translates it into the HTC Weather XML format. end quote.

Up till now it has worked Awesome, First Rate, TWO THUMBS UP! I could not get my town before and now I could, so Thank you for that and your service;) .

Could you please let me know about when to expect your server to be up again, or if you do not plan on puting it back online:( . If not will you still give some help to me in trying to setup my own server than as you did, as I NEED to get my weather for my town?

Thank you.

GB
[8525, TyTN, MDA Vario II, JasJam ROM Development] dckiwi:
I wasn't using the server, well not that I know of, just the patched dll. If I remove the patched dll and go back to the original, it works fine (well, just via passthru or wifi). Using the patched dll it does not work...
[8525, TyTN, MDA Vario II, JasJam ROM Development] vp3G:
Both the patched dll and "hosts" method divert requests to N2A's server. Reverting to the original goes direct to AccuWeather (but you're once again limited to the default cities, of course).
[8525, TyTN, MDA Vario II, JasJam ROM Development] dckiwi:
Yeah, I figured that just after I posted. Just tried the regular DLL with pocket hosts and it's a no-go.

Cheers,

Edit: Service seems to be restored.

Robbie.
[8525, TyTN, MDA Vario II, JasJam ROM Development] Mr_GTI:
I followed the instructions but when i go to htc home weather panel. it does not say "select your city here" and even when i do click on the bar, the are no cities visible/ to find. help me plz
[8525, TyTN, MDA Vario II, JasJam ROM Development] gemblaster:
Thanks N2A for getting that server up. I have updated twice now:D ! I am VERY glad that you are continuing to keep it going, as I would be lost without your weather network work around!

PS- I don't care if it goes down every now and again as long as you plan on keeping it for the long haul. This is all part of computing, I totaly understand as all of our PC's have had prob's at some point, so thanks for the quick fix N2A:cool:

A fan of your work here.

GB
[8525, TyTN, MDA Vario II, JasJam ROM Development] Mr_GTI:
Just wanted to thank N2A for this contribution

can finally get weather within the htc home plug-in :D
[8525, TyTN, MDA Vario II, JasJam ROM Development] Despiadado1:
I mistakenly ignored this post in the past assuming it was the one where everyone was *****ing that their city didn't work. Thank God that I finally looked at it. THIS WORKS PERFECTLY NOW!!!

You are a genius my friend. Thank you also for hosting this service. You and your efforts are much appreciated.
[8525, TyTN, MDA Vario II, JasJam ROM Development] lyyup:
:D :D :D

Thanks N2A,Service to be restored.
[8525, TyTN, MDA Vario II, JasJam ROM Development] ericc191:
Lmao N2A, I thought I screwed my phone up so I sat there last night doing hard reset after hard reset trying to figure out why the weather wouldn't update! It's all up and running now, though. :)
[8525, TyTN, MDA Vario II, JasJam ROM Development] LordPhong:
Has anyone gotten this to work with t-zone? I'm in NY with t-zone but I think the proxy setting is throwing this thing off.
[8525, TyTN, MDA Vario II, JasJam ROM Development] cuboosh:
has neone hacked the dll from latest htc home yet? i tried using hexedit and cant find the string to edit :(
[8525, TyTN, MDA Vario II, JasJam ROM Development] vippie:
Here you go.... I've patched the dll from version 2.0.814.722. Don't forget sdkcerts.cab!
[8525, TyTN, MDA Vario II, JasJam ROM Development] kakidis:
Everything works perfectly! Thanks for everything!
[8525, TyTN, MDA Vario II, JasJam ROM Development] juzzie:
This fix DOES NOT work with proxied connection

Yep, that's exactly the same question I was asking in this thread few weeks ago.

What puzzles me is that the author of this fix N2A states on the 1-st page of this thread that this fix WILL work with proxied connection. I tried everything imaginable but this fix WILL NOT work with proxied connection such as t-mobile t-zones.

Any feedback from the author will be appreciated. Please prove us wrong.
[8525, TyTN, MDA Vario II, JasJam ROM Development] TheBee:
Adding Host doesn't work for me

hi,

i have tried adding host for htc.accuweather.com as your second option states but I cannot get it to work. Is there something else I must do? The only way the weather update works is if I connect MDA to my computer.
[8525, TyTN, MDA Vario II, JasJam ROM Development] Monnolo:
Please hepl me

Hello, I've downloaded the HTC Home's cab (5/6 button) of Schen and i've installed the sdkcerts.cab file too. Then i followed the steb-by-step guide to put my own location for the weather tab, but it don't work :(

1) I went to the urls of my 2 interesting city: "Porto San Giorgio" and "Camerino":

2) I take the part of url which have:

EUR|IT|IT010|CAMERINO

EUR|IT|IT010|PORTO%20SAN%20GIORGIO (I tried with and without "%20")

3) I've added the following lines in the xml file:

<city name="Camerino, IT" loca="EUR|IT|IT010|CAMERINO" land="Italy"/>

<city name="Porto San Giorgio, IT" loca="EUR|IT|IT010|PORTO%20SAN%20GIORGIO" land="Italy"/>

4) I've selected my 2 own city in the "Select city" box, but then the program write me "Attempting to download data" and then "

Unable to retrieve data for selected city.

Select here to retry"

What i was wrong ?:confused:

Please, someone could help me ?

Thanks to all, Luca:)
[8525, TyTN, MDA Vario II, JasJam ROM Development] CEParah:
I also have tried all methods and can not retrieve my local weather. I'm just using the weather for a city 40 miles away until another method is developed.

Any chance someone will create a way to go to accuweather online by clicking on the weather forcast?

Thanks for all the hard work that went into this...other then the local weather it works like a charm on my Mogul.

=CAt=
[8525, TyTN, MDA Vario II, JasJam ROM Development] smyrali:
the same problem here for EUR|GR|GR036|MITILINI via proxy (192.168.200.10)
[8525, TyTN, MDA Vario II, JasJam ROM Development] N2A:
Hi there.

Well, it certainly worked on my proxied connection, providing I was using the patched DLL. The pocket hosts method will NOT work over a proxy, as the proxy does the DNS lookups instead.

Are you on a proxied connection? I'm still not entirely certain how they are working. Also, did you use the schen one, or the patched schen one? Your post wasn't clear.

Try changing the %20's to spaces.

Testing the above cities (link1 / link2) definitely work server side, so it's purely a communications issue (i.e. not making it to my server).

Sorry to hear it - I take it you haven't had any luck with the cab installers / patched DLL...

I'm assuming, again, that you're using the patched DLL? Pocket hosts won't be much use to you here. I'm still not sure how well it's working over proxies, but unfortunately I'm not too experienced with coding on the pocketPC, this was a simple hexedit and sign.
[8525, TyTN, MDA Vario II, JasJam ROM Development] Murcielago:
Hi N2A,

Can you tell us how to create our own server like you did please ?

Thanks
[8525, TyTN, MDA Vario II, JasJam ROM Development] smyrali:
no I don't use them.

Can you tell me please how can I install tha pathed .dll's?

Thank's...
[8525, TyTN, MDA Vario II, JasJam ROM Development] N2A:
You'll need basic PHP knowledge, and to hexedit the DLLs and resign them yourself, and/or set up a host entry. The code is commented up, so it's fairly easy to understand, but you need to download and play with it really. The pocket hosts method will *not* work on shared hosting packages from web hosting companies. The rest is on the first post.

See the first post?
[8525, TyTN, MDA Vario II, JasJam ROM Development] CEParah:
WooHoo, I installed the wrong DLL the first time. I installed the 6 tab first. This time I installed the 5 tab and now I have my local weather! Thanks so much.

FYI: I can receive my local weather via both WiFi and the Sprint network connection.
[8525, TyTN, MDA Vario II, JasJam ROM Development] smyrali:
I have installed SdkCerts.cab,	"HTC.Kaiser.Home.Eng.0409.5Tab.schen.N2A_WeatherPatched.cab", "HTC_Touch_Home_Plugin_N2A_WeatherPatched.cab" and copied the correct .dll from the 1st post to \HTCHome folder and i can't still update my weather data via proxy
[8525, TyTN, MDA Vario II, JasJam ROM Development] N2A:
Well, you should only need to install the SdkCerts.cab and one of the cab files. You won't need to copy the DLL manually at all.

If it still doesn't work, I'm afraid I've no idea what the issue is.
[8525, TyTN, MDA Vario II, JasJam ROM Development] CEParah:
I can only get my own city, not any of the other area cities that I entered into the HH_0409_WeatherCities.xml file. (I did check the htc accuweather for the correct data to enter first.)

Also, I added the correct dll to the \windows folder, and then it worked. :)

=CAt=
[8525, TyTN, MDA Vario II, JasJam ROM Development] galaxys:
What "correct dll to the \windows folder" did you add? The dll on page 1 is for the \HTCHome folder...
[8525, TyTN, MDA Vario II, JasJam ROM Development] N2A:
That is correct - I have a feeling that there is a version of the home plugin cooked into their ROM already, and that's why copying to \WINDOWS works.

I need to get a new set of DLLs out really, I've just been way too busy to work on this recently.
[8525, TyTN, MDA Vario II, JasJam ROM Development] Monnolo:
I'm not on a proxied connection and i think that i've downloaded a not-patched version of schen's HTC Home (sincerely i don't remember :p )

I've tried to change the %20's with the spaces but doesn't work.

What you advice me ? :)
[8525, TyTN, MDA Vario II, JasJam ROM Development] CEParah:
I copied the dll for the 5 tab version to my windows folder. I copied the 6 tab version First and it didn't work.

=CAt=
[8525, TyTN, MDA Vario II, JasJam ROM Development] scooby:
hey guys keep up the great wrk jst one quick question i had my city already on the list using the 5 tab pathced htc home and pocket host i still cant use my gprs on O2 prepay to get the weather updating i ran http://64.62.158.108/widget/htc/weathertranslate.php?locCode=EUR|UK|UK150|Harrow and i get the xml weather update i was wondering how i can i get it to work on the gprs thanks for help in advance
[8525, TyTN, MDA Vario II, JasJam ROM Development] dferreira:
Something interesting I found:

http://windowsmobilepro.blogspot.com/2006/04/etchosts-file-equivalent-in-windows.html

Apparently, we don't need PocketHost (it didn't work for me...). Maybe we can get a cab to set that registry entry ?
[8525, TyTN, MDA Vario II, JasJam ROM Development] galaxys:
Could you explain how to use this "small batch file" and then enter the command "sign htchome.dll"? I unzipped it on my xp pc, but was unable to get it to run.
[8525, TyTN, MDA Vario II, JasJam ROM Development] impwiz:
Cab install worked perfectly! Thanks for the fix!
[8525, TyTN, MDA Vario II, JasJam ROM Development] claude512:
weird problem not mentioned before

Hi,

I have a diffrent problem, it wouldn't work so I checked "http://64.62.158.108/widget/htc/weathertranslate.php?locCode=EUR|LU|LU033|Luxembourg" (with the EU|LU|LU003|Luxembourg being the correct code for accuweather, and it gives me the following message:

Unable to locate country data! Reported city: "Luxembourg", reported state: "Luxembourg Luxembourg"

what could that be, and would it explain the problems I have getting the weather to work?
[8525, TyTN, MDA Vario II, JasJam ROM Development] caicai:
1 - I modified the htchome.dll with ultraEdit in hex mode. As described here

2 - I unzipped the file I found on this thread on my PC

3 - I put the file htchome.dll in the directory created in point 2

4 - I opened a command window in that directory and typed the command "sign htchome.dll" (without "") to sign the dll

5 - I put the dll back on my pda (de-activate the htchome plugin first)

6 - Soft-reset

7 - Done

The point 1 is dangerous. The first time I did it, I corrupted the dll (added unwillingly %20 chars in the file) and had to hard reset my pda !!! Sprite Backup rules ... The file must have the same size after the modification.
[8525, TyTN, MDA Vario II, JasJam ROM Development] warmkiwi99:
btw can you change how often it polls to get the weather?
[8525, TyTN, MDA Vario II, JasJam ROM Development] N2A:
Well, you will live in Wales ;)

No idea. I just wrote something to translate the XML feeds. Try using the Google search on the forum, I seem to remember something mentioned about it.

Glad to hear the general reports of success though!
[8525, TyTN, MDA Vario II, JasJam ROM Development] lax2tlv:
BEAUTIFUL!

Thank you!

MUCH APPRECIATED!!!
[8525, TyTN, MDA Vario II, JasJam ROM Development] ralex:
Thank you so much. Now I can se my town in Norway :-) It works like a dream. Oh, you are a genius :-)

P.s if I want to run the script om my own server, could you please PM me a little more detailed instruction?

Best regars, ralex :-)
[8525, TyTN, MDA Vario II, JasJam ROM Development] N2A:
To be honest, it's pretty much all as it says up there - you need to create a /widget/htc directory, unzip the PHP and .htaccess file in it, and assign the host IP to your server IP instead of mine. However, this approach will *not* work on virtual hosting packages (where you purchase a hosting package from a provider and many sites are on the same IP) as it has to be directly mapped, not via name.
[8525, TyTN, MDA Vario II, JasJam ROM Development] ralex:
Ok, I have my own server, runing Linux Kubuntu with Apache, but I use ISPconfig for virtual hosting.

So if I place the script i the default catalog for apache, make a catalog widget and htc in it, it will work (hopefully) :-)

Then I´ll try :-) Do I have to configure anything in the script?

Thank you for helping me :-)

(sorry for my english.)
[8525, TyTN, MDA Vario II, JasJam ROM Development] alkizmo:
Does this use port 80?

If not, what port does the plugin use for htc.accuweather.com ?

I need to know to bypass my carrier's proxy.
[8525, TyTN, MDA Vario II, JasJam ROM Development] ralex:
Oh, thank you. Its working perfectly on my server now :-)
[8525, TyTN, MDA Vario II, JasJam ROM Development] N2A:
Yup, port 80.

No problem. I'll keep uploading new versions to the first post, I'm about to update, so you might want to keep an eye on it.
[8525, TyTN, MDA Vario II, JasJam ROM Development] uniqueboy:
Will it work on other devices?
[8525, TyTN, MDA Vario II, JasJam ROM Development] N2A:
It'll work on anything using the home plugin.
[8525, TyTN, MDA Vario II, JasJam ROM Development] jeannot61:
This message does not seem very correct. The forecasts for EUR|CH|SZ023|SION do not function, even while following your explanations correctly. For the safety of the users, I think that it is more advisable to delete the modifications made with PocketHosts (htc.accuweather.com, IP address: 64.62.158.108)...
[8525, TyTN, MDA Vario II, JasJam ROM Development] N2A:
***************** THE CONTENT BELOW NO LONGER APPLIES WITH THE NEW PLUGINS *****************

Please explain what you mean by "do not function" - it all seems to work fine here, which means it's probably an issue with your service provider proxying the data, so it doesn't get to my server properly, and gets routed via the ISP's server and to the "proper" htc.accuweather.com site instead. You can test whether this is happening by following the instructions on the first post, to quote:

Troubleshooting

If you're still getting no weather through for your local area after doing the above, try firing up Pocket IE and go to http://htc.accuweather.com/ - if you get a message saying "If you are seeing this page, you have entered an inconfigured web site. If this is not the case, please contact support.", it's set up correctly. If you get the AccuWeather site, it hasn't rerouted correctly, or there's a proxy inbetween causing problems. I haven't figured out a way around this, although I welcome reports of it so we know where we stand.

What are your results from the above?

How do you mean "for the safety of the users"? Your particular forecast (which does seem to work perfectly well from here) creates the XML mapping http://64.62.158.108/widget/htc/forecast-data_v3.asp?ac=TR2cra9U&locCode=EUR|CH|SZ023|SION which seems to work perfectly, although it doesn't entirely seem to correspond with the AccuWeather site, it's exactly the same data as ForecastFox is supplied with, which we can fairly safely assume is the "standard" feed information. It's not like personal information (well, bar a weather area) is being divulged here, and that's kind of necessary for the widget to function. Of course, you're welcome to live without local weather instead if you're concerned about your "safety"... I mean, I could really be an axe murderer, coming to hunt down everyone in a town / American ZIP code / whatever... (although it's far more likely I'm going to sit in my chair and continue to try and improve this script for the XDA-Devs users!). But seriously, there's nothing dangerous about the script - if you're really worried, you can take a look at the source on the first post...

*mildly confused look*
[8525, TyTN, MDA Vario II, JasJam ROM Development] reitjam:
yay, the only way to make it work for me

since the home plug-in came out i wanted it to work, it never did, now with all the work done it is better then the old solution i had of tonaya.

Edit: i know this is a wheather plug-in page and i dont want to get flamed but i can take the heat, i wont cry; how do i change the music tab to use HCT audio manager

Thanks
[8525, TyTN, MDA Vario II, JasJam ROM Development] mexec:
wow..this is really amazing..

thanks a lot for sharing the server..

it`s working..n for the 1st time i can see

my city in the htc home..

now i don`t need spb weather anymore..

thanks again..:) :)
[8525, TyTN, MDA Vario II, JasJam ROM Development] N2A:
Keep the question to the relevant post :P This is *purely* for the translation thing. As a side note, try settings -> today -> items -> htc home -> options? Or possibly the HTC music plugin options, or something.

But please do try to keep on topic :P

Glad to hear it works for you though :)

I'm just glad it works :D
[8525, TyTN, MDA Vario II, JasJam ROM Development] lassa10:
?!?!??!?!?!??!??!?!??!?!?!?
[8525, TyTN, MDA Vario II, JasJam ROM Development] lassa10:
I have done all things and nothing!:confused: :(

What's rong???
[8525, TyTN, MDA Vario II, JasJam ROM Development] sburney:
It's working fine for me using the zip code method (98802).

Thanks!

Steve