View Full Version : how to add a new city to the weather plugin
darksider
16th December 2007, 09:13 PM
hi,
ive read plenty of articles how to add a new custom city to the htc home weather plugin, ive found the current city on the
my city isnt in this list:
http://www.accuweather.com/includes/ajax-functions/favoriteCities.asp?region=EUR&country=SK
but if im using the search form, i find it:
http://www.accuweather.com/world-index-forecast.asp?partner=accuweather&traveler=0&locCode=EUR|SK|LO000|ZILINA
1. problem if i want to add my city in the .xml file inside the windows dir in the rom, i cannot change it, cause, its rom, also no the file attributes, i thought, maybe i create a new file with a new language code and use this, somehow, but i dont want to change my current language: english
2. ive tried to set it in the registry:location and locationcode, but the plugin writes eveytime: unable to retrieve data for selected city...
any ideas?
moneytoo
16th December 2007, 09:31 PM
1. Have you searched the registry? There may be path of the .xml file so you yould just "redirect" to your modified file. (I dont know if there is such key or not, but you can try that...)
darksider
16th December 2007, 09:43 PM
1. Have you searched the registry? There may be path of the .xml file so you yould just "redirect" to your modified file. (I dont know if there is such key or not, but you can try that...)
negative:(
nadderf
18th December 2007, 06:09 PM
Have anyone succeed to add a new city? I have changed the xml file but the new city isn't visible? Tried reboot after the change.
Why are there several files with similar name but same content?
darksider
18th December 2007, 09:01 PM
Have anyone succeed to add a new city? I have changed the xml file but the new city isn't visible? Tried reboot after the change.
Why are there several files with similar name but same content?
how did you changed the file??? i even cannot change the attributes from total commander, explorer...anything:(
nadderf
18th December 2007, 09:47 PM
how did you changed the file??? i even cannot change the attributes from total commander, explorer...anything:(
I copyed the file and changed file type to .txt and edited it in Word Mobile. Then changed back to .xml and copyed back to \windows
darksider
19th December 2007, 05:11 AM
I copyed the file and changed file type to .txt and edited it in Word Mobile. Then changed back to .xml and copyed back to \windows
mine windows doesnt allows to overwrite or change this file...
nadderf
19th December 2007, 11:31 AM
Now I hade edited the file, i copyed the file thru active sync and then back to Storage Card and then used Total Commander and copyed it to \windows.
But when i select the city it can't get the information for selected city.
Is there something else i have to change?
darksider
19th December 2007, 12:05 PM
Now I hade edited the file, i copyed the file thru active sync and then back to Storage Card and then used Total Commander and copyed it to \windows.
But when i select the city it can't get the information for selected city.
Is there something else i have to change?
you can try to set the settings direct in the registry, its already a thread about it, here somewhere...
nadderf
19th December 2007, 02:57 PM
i now tried to change the url in the htchome.dll but i wont find the url to replace.
Someone must have solved this problem?
Jammo
20th December 2007, 04:02 AM
I am one of the folks here who wish to be able to add different cities. If somoeone figure out how to perform it, please just let us know :o
Jammo
21st December 2007, 05:26 AM
I have been able to copy to my desktop HH_0409_WeatherCities and HH_0809_WeatherCities (not sure witch one attributes to english language) I added the strings related to my city and now i try to replace them on the s730 but as other found, it is in ROM and i cannot chage its properties with total commander....need help, maybe i am not so familiar with TC. I am so close!
JJM_730
21st December 2007, 08:10 AM
I added my city to the HH_0809_WeatherCities.xml file by copying it to my desktop and then copying it back into the smartphone. I think the edited file shadows the file in the ROM. I can now select my own city from the list, but the weather program still cannot update.
I can see that when I select a city, the registry values
HKLM\Software\HTC\HTCHome\Weather\Settings\Locatio n
and
HKLM\Software\HTC\HTCHome\Weather\Settings\Locatio nCode
get the right values, however the registry key
HKLM\Software\HTC\HTCHome\Weather\Settings\CityInd ex
doesn't change, and I suspect that this is not good. I haven't been able to correlate this city index with a location code. I think it might be the index of the entry in the .xml file.
moneytoo
21st December 2007, 09:36 PM
CityIndex is the position of the city on the list. But it doesnt matter, you can have any number and it will work.
When I change LocationCode to another place which is in the list, it displays it. It seems it's problem of the server, they just do not provide data for other cities this way. If I change LocationCode to my city, I get this message: "Unable to retrieve data for selected city."
EDIT: Here is some more info... http://forum.xda-developers.com/showthread.php?t=319187
The library needs to be modified to connect to different server. I have just tried the DLL from Kaiser but the weather plugin just disappeared. I will try to modify Wings's HTCHome.dll.
nadderf
21st December 2007, 10:26 PM
When u fix de htchome.dll I wont that file =) I tried to modify my file but i dosen't work.
moneytoo
21st December 2007, 11:20 PM
WORKING!!!
1. Instal certificate
2. Instal Resco Explorer
3. Get loccode of your place on accuweather.com
4. Switch to non-HTC homescreen
5. Copy WeatherUpdateService.exe to temp dir on your smartphone and check it is set as system and read-only
6. Copy WeatherUpdateService.exe and replace the orignal in the Windows directory using Resco Explorer
7. Modify HH_xxxx_WeatherCities.xml (or registry - HKLM\Software\HTC\HTCHome\Weather\Settings\Locatio nCode and HKLM\Software\HTC\HTCHome\Weather\Settings\Locatio n)
Refresh data.
Uses N2A's server. Say him thanks. :)
Jammo
22nd December 2007, 04:20 AM
Thank you SOOOOOO MUCH! moneytoo, you're almost a god for me!
http://i87.photobucket.com/albums/k150/FMJammo/sc1.jpg
afx69
22nd December 2007, 01:00 PM
I did try to install the Kaiser HTCHome.dll. Can anyone pls upload the original for S730 so I dont need to reset my device; to much configuration for a saturday before x-mas :)
moneytoo
22nd December 2007, 01:03 PM
I did try to install the Kaiser HTCHome.dll. Can anyone pls upload the original for S730 so I dont need to reset my device; to much configuration for a saturday before x-mas :)
Here you have. ;)
darksider
23rd December 2007, 09:45 AM
WORKING!!!
Uses N2A's server. Say him thanks. :)
thanks much*
nadderf
24th December 2007, 08:57 AM
Thanks !! Its Working.. Merry Christmas =)
homerjs_77
17th January 2008, 07:44 PM
Thank you SOOOOOO MUCH! moneytoo, you're almost a god for me!
http://i87.photobucket.com/albums/k150/FMJammo/sc1.jpg
Hi Jammo...,
one stupid question... How did you make it, that you have the combination of the HTC Home Screen and the used programs both at one time on the screen? I didn't find that option. I have a german HTC S730.
Or anyone else can help me?
Thanks
HomerJS_77
sat_ana
17th January 2008, 07:56 PM
Try this ;)
Dezip in Application Data\Home
Regards
homerjs_77
17th January 2008, 08:02 PM
Try this ;)
Dezip in Application Data\Home
Regards
Thx 4 the fast reply. I'll try it, but can you tell me, what that xml-file does? What's with the original settings? Or does it appear in the settings of the start-screen?
sat_ana
18th January 2008, 08:39 AM
You can modify your home editing the .home.xml and installing different plugin.
So you can add some features:
h*t*tp://www.nectun.com/galerie.php?langue=fr&id_type_skin=-1&id_type_tel=15
Regards
JJM_730
19th January 2008, 01:05 PM
Uses N2A's server. Say him thanks. :)
Thank you from me and my collegues ;)
luckyland
8th August 2008, 08:59 AM
Don't know it if happened after the customization, but every time I activate the weather plugin I loose 1 MB of ram, and none of my task manager apps is able to show running processes to let me free the memory.
I have to change my home layout and all work fine again.
No one experiencing this strange behaviour?
Mr. Kayne
15th September 2008, 05:02 AM
Don't know it if happened after the customization, but every time I activate the weather plugin I loose 1 MB of ram, and none of my task manager apps is able to show running processes to let me free the memory.
I have to change my home layout and all work fine again.
No one experiencing this strange behaviour?
you have windows 6.1?
vBulletin® v3.8.5, Copyright ©2000-2010, Jelsoft Enterprises Ltd.