[GUIDE] Add cities in Sense Weather app and World Clock - Desire HD Themes and Apps

Hello everybody,
I searched for a while for a sollution to add missing cities in the Sense weather app but finally I collected all needed information.
I have also found out that you can add Cities in to the World Clock App of your Sense Phone - see below.
I have LeeDroid 3.0.3 GB ROM with Seos Weather for Sense 2.1. This sollution is working for shure.
Let's go to work:
Add cities to the Sense Weather App:
First you need to watch SuperSorts howto.
You don't need to use SuperSorts datafile - it is the whole city list.
The following file named "weather.db" is the current Sense weather database file only. It means you will just edit the list of cities directly shown in Sense weather.
Once prepared this file you can everytime overwrite the original one... after a wipe, for example.
(I'll try to make a update ZIP which you can flash with CWM once you added your own database file to it)
With Root Explorer you have to copy this file from the phone to your HDD:
/data/data/com.htc.provider.weather/databases/weather.db.
Edit it with SQLite Database Browser by inserting the right location code
Set also the correct app you want to use the data for : here com.htc.elroy.Weather under the row App.
... and save it.
Copy weather.db back to /data/data/com.htc.provider.weather/databases/
and reboot your phone.
You can find your Accuweather location code using the database found here
or just generate it by netWeather v3.0.
To find a code proceed as follows:
Go there
and
"Choose location" for example Belfast then Search and select which Belfast for example in United Kingdom
"Next"
"I agree to these terms and conditions"
in the window web page code scroll down until you find EUR|UK|UK002|BELFAST|
(Thanks to Pidipadi)
Add cities in the World Clock:
Do the same steps as for the weather. Following add a line in the database that looks like the weather one but set the right application in the App column:
com.htc.android.worldclock
That's it

thanks for the guide man

thanks korzyn
i have tested and works, but you must change this file:
/data/data/com.htc.provider.weather/files/WP_0409WWE.db
works 100%

robertus23 said:
thanks korzyn
i have tested and works, but you must change this file:
/data/data/com.htc.provider.weather/files/WP_0409WWE.db
works 100%
Click to expand...
Click to collapse
Ok, you're right. I couldn't get it to work that way. Maybe I did something wrong.
Anyway, as I see is the difference between those database files is that WP_0408WWE.DB is the whole on the phone aviable city database.
The database file what I wrote about in my first post, is the current database of your weather app.

I'm very interested in updating this db as I have family/friends all over the world.
Can you confirm that I only need to add 'EUR|UK|UK002|BELFAST|' for example?
OR do I need to include all other data (Country, timezone, Long, Lat etc) in the columns for the newly inserted row?
Thank you for your information about the locations.

I use other data too(time-zones,country,latitude,long.- because my country it so small)

JD7 said:
I'm very interested in updating this db as I have family/friends all over the world.
Can you confirm that I only need to add 'EUR|UK|UK002|BELFAST|' for example?
OR do I need to include all other data (Country, timezone, Long, Lat etc) in the columns for the newly inserted row?
Thank you for your information about the locations.
Click to expand...
Click to collapse
I'm not shure but I would just try it out. What you should insert is the city name - it will be shown in the weather app. The other stuff is not needed I think.

robertus23 said:
I use other data too(time-zones,country,latitude,long.- because my country it so small)
Click to expand...
Click to collapse
korzyn said:
I'm not shure but I would just try it out. What you should insert is the city name - it will be shown in the weather app. The other stuff is not needed I think.
Click to expand...
Click to collapse
Thank you both for the update - I will create two copies of the db and try both.
See if there is any difference

JD7 said:
Thank you both for the update - I will create two copies of the db and try both.
See if there is any difference
Click to expand...
Click to collapse
Please tell us what you found out.
What's your conclusion. (...and... please vorgive me my English if thee are any mistakes in the text ).
Sent from my Desire HD using XDA App

Works like a charm on Kingdom ROM.
I now have personalised home weather info.
Thanks

korzyn said:
Please tell us what you found out.
What's your conclusion. (...and... please vorgive me my English if thee are any mistakes in the text ).
Click to expand...
Click to collapse
Kein Problem. Ihr Englisch ist viel besser als mein Deutsch
Ok so far:-
1. Found accuweather netcode for places 'X/Y/Z' where family or friends live (Town rather than City), added that to a copy of the WP_0409WWE.db (List db).
2. Copied db to SDCard, then Root Explorer - delete original WP_XXX.db, replace with new version, set permissions. Did reboot to be safe lol.
3. Was able to select the 'Town' from 'add new place list' within the weather app, but instead of 'Country' listed below, place name when viewing weather, it listed null (as in null value).
4. Once selected in accuweather, I was unable to display data of the Town I had the code for.
______________________________________________________________
I'm going to try and edit both db's mentioned in the thread - the 'Master List' (WP_XXX.db) AND the 'User' db. Replace the ones on the fone (I have backups ) and see what happens.
One thing that I did notice within the code from accuweather is:-
EUR|UK|UK002|BELFAST|
The section in RED for the places I wish to use, there are several codes - for each place on the accuweather website. There were 3 options to choose (Town X; UK or Town X; England; UK or Town X; County/State Y;England).
I will post more if anyone interested - might be later today or tomorrow, I've just finished a 13hr workshift
Oh - I did some digging online to find out how accuweather decided on the 'UK002' code but most URL's linked back to XDA for other phones - just mentioned go to site and select place etc.
I even thought of weather stations and Airports - came up with a bunch of data, but nothing linked into accuweather's codes.
Del aka JD7

Sorry for the delay - to many work hours...
However, I have managed to get Non-City Weather to work for me.
1. Edit the WP_0409WWE.db with the Accuweather code for your town (having obtained from website).
2. Edit the weather.db with your new town entry information
3. Check weather from clock/weather widget
Del
24-05 10:14 GMT+1 ** Update ** works for me - Accuweather code in both db's - doesn't appear to need additional long/lat/timezone

Related

Weather PlugIn on HTC Home Page not updating.

The weather plugin is not updating on my tilt. I keep getting "Unable to retrieve data for selected city." Has anyone figured out how to fix this problem?
I've seen that too -- it's failed when connected to two different WiFi networks, so I think the problem is on the server end (accuweather.com, IIRC).
Good to know!
Same here, this morning I couldn't connect. Yesterday it was working fine, but last night I loaded in a new 'power status' application... Good to know it's not something I did!
Same here on my AT&T Tilt since Sunday night.
Mine just started this morning. Accuweather's site is working fine but since I'm not the only one it must not be my phone or connection.
I'm in the process of reading through and trying this fix:
http://forum.xda-developers.com/showthread.php?t=319187
The HTC home apps floating around have been modified so that they use a custom city database that spawns your requested city's forecast. This is done via a weather server that's owned not by HTC or accuweather, but by a private person (he's a member on thee forums, N2A).
N2A recently made changes to the way the data is pulled from his server. No longer can it use the modified IP-based hosts entries (which is what it was doing before).
The best way to get weather working again is to install N2A's patched home plugin then add the city to the XML per his instructions.
I used the patched Schen 2.1 HTC Home plugin and it works awesome again.
http://forum.xda-developers.com/showthread.php?t=319187
Why are we using his server instead of downloading from accuweather?
decimusmaximus7 said:
Why are we using his server instead of downloading from accuweather?
Click to expand...
Click to collapse
This plugin was made by HTC but never really intended to go to US market. The setup between accuweather and HTC only allowed for certain cities, and only a limited number of US cities are in the orignal database. The accuweather data just isn't there for all cities, I've tried following the syntex in the weather XML file and tried adding my home town. It just wouldn't work. So N2A modified the code int he plugin to point to his server. HTC Home Customizer does the same thing, when using the custom db, it redirects the request to N2A's server first.
N2A has made some changes and the old method is no longer working. You have to download one of his recently patched home plugins and enter the city zip code into XML file as instructed.
Ok I deselected my HTC Home in the Today settings and then downloaded "For other devices: UPX compressed" from http://forum.xda-developers.com/showthread.php?t=319187.
This is Schen's 2.1 with N2A weatherpatch. After this install I am able to add my custom city with HTC Home Customizer 1.0b without having to edit the XML files.
Just thought I'd share my success.
I had this same problem but that was from installing HTC Home Customizer. After I uninstalled HHC it still did the same thing. I had to hard reset and start from fresf again to get my weather working again. Does anyone using HHC have that same problem or did I do something wrong?
Could the program point to another server???
Could the software point to another server? ie:www.weather.com
www.nws.noaa.gov
www.accuweather.com
weather.yahoo.com
Hello, with the same problem since installing HHC.
ok people, this is an easy fix.
Uninstall prior versions, install the 2.1 version, find the weather XML file in \htchome directory, save the file to your PC, modify the file with the proper cities you want, goto the weather tab, click on the city and pull the new city you just added to the XML file. DONE!
It can be done in 5 minutes or less. This si not the fault of N2A nor the author of HHC. There's just been a change of the way the data is acquired, this was done to help users of certain networks to be able to use HTC Home.
Thank you smittyofdhs,
but "install the 2.1 version", of HHC ? or htc home plugin?
yeantbron said:
Thank you smittyofdhs,
but "install the 2.1 version", of HHC ? or htc home plugin?
Click to expand...
Click to collapse
No problem....
2.1 of plugin
HHC is only at ver 1.0b5
-Smitty
Newb trying to help!
Ok, here's the weather fix that worked for me. I am Currently using Dutty's TouchFlo Hybrid No.2 Final and HHCv.10b5 on my Tilt.
The following info was derived from N2A's post HERE. I just wanted to provide the instance specific fix for as it seems this might be a popular configuration. Hope its a good first post! Again this is what worked for me!
Pre-fix measures: In the HHC program be sure the weather database is set at Default.
Fix:
1) Install sdkcerts.cab to your device. Soft reset. (not sure if you have to reset but thats how i did it)
2)Install KaiserHTCHomeDLL.CAB. (Thanks N2A) This users post can be viewed HERE, This is the user that runs the weather server and has created the fixes. I belive! Much Credit to them.
3)Browse to My Device\WINDOWS\HH_0409_WeatherCities.xml. Activesync and Copy this file to Your Desktop Pc. If your having trouble seeing your Windows Directory from your PC start file explorer from your device and browse to the HH_0409_WeatherCities.xml file. Copy the file to My documents on the device then copy the file file to the PC.
4)On the PC, right click the HH_0409_WeatherCities.xml file. Select "Open With" then "Notepad".
5) In Notepad each location will appear as so. <city name="Atlanta, US" loca="NAM|US|GA|ATLANTA " land="United States "/>
6)Copy one of these lines and paste it directly under the original.
7)Edit the new line to reflect Your City like so. <city name="Your City, US" loca="xxxxx" land="United States "/> (xxxxx represents the Zip Code of the city your adding)
You can add more than one city if you choose.
8) Save your changes.
9) Replace the current .xml file in my documents with the one you just edited.
10) From your device, Open Total Commander then open the My Documents folder, browse to the HH_0409_WeatherCities.xml and select the "Copy/Move" option. Press the "Tree" button, highlight the Windows folder, press OK then press the "Move" button followed by the "Overwrite" button. Close Total Commander.
11)Select your city by going to the weather tab, and clicking on the area below "Weather". Choose your local town/city from the list.
12) Soft Reset.
Notes: The "US" inside the city name section of the .xml file can be changed to represent your state two letter postal code.
If your not using this configuration or just want more info you can visit N2A's post HERE.
Much thanks to all the pros that make this possible!
decimusmaximus7 said:
Ok I deselected my HTC Home in the Today settings and then downloaded "For other devices: UPX compressed" from http://forum.xda-developers.com/showthread.php?t=319187.
This is Schen's 2.1 with N2A weatherpatch. After this install I am able to add my custom city with HTC Home Customizer 1.0b without having to edit the XML files.
Just thought I'd share my success.
Click to expand...
Click to collapse
thanks for your post. i followed your instructions and it works just like it used to before the problem.
Anyone having problems with SPB Weather not updating either? It never gets to the forecast. Worked fine before I installed the cut-down no-bloat Tilt ROM from 11/30.
This works http://forum.xda-developers.com/showthread.php?t=319187

Please help with gathering weather on homew screen!!

Ok, go ahead and bash me, I have been trying for two weeks and still do not get it. I have read post over and over and simply do not understand the "computer lingo". I have a ATT Tilt 8925. I have installed the HTC Home screen with the customize application. I live in Thibodaux Louisiana and the only city I can get is New Orleans which is 60 miles away. My Tilt has a factory ROM and the only things i installed were:
HTC Home plugin
HTC home customize
fff Finger friendly finder
large start-up menu
opera mobile 8.65
I do understand that with a new patch I should be able to receive any city. The problem is I DO NOT understand or can not figure out what patch I need. I have read a lot of post, I do not know which one I need because of the "lingo" used. I am a police officers not a tech. Can somebody please assist me in getting my local weather by laying it down in layman's term!!! This would make my tilt complete. I know a lot of guys would be happy.
ok, go ahead and make fun of me, then after please help. If you are willing I would even be glad to give a call to someone.
Thanks again !!!
Ok, here is how I got mine to work. First install HTC home customizer. Then soft reset. Then in HTC home customizer, edit the city and save it to cutom.
Then copy the .dll file to your windows folder on your phone. Soft reset and everything should work.
BTW, unzip the dll file first before you paste it to the windows directory.
Ok, I installed the HTC Custom and it workng fine. I know how to enter the city of choice but I do not understand whats a .dll file, were its located and were to install it.
Are you talking about the windows folder under My Device? And once you show me were this .dll file is, any special place in the windows folder it needs to got. I guess I can cut and paste it there correct.
Thanks for the help, just need a little more info.
What a .dll file and were its located?
What I just did was download the attached file you had and unzipped it on my PC then transported it to my tilt. I cut and paste it under My Device>windows and and paste it at the bottom. Soft reset and still unable to gather data. When selecting a new city. I selected custom and enter my city (Thibodaux)> then my zip code "70301" then country USA. After each selection I tapped "X" to save and at the end I tapped exit.
Any thoughts
Nope thats it. Just soft reset & then go to the weather tap & it should sync.
When I enter my zip code do I enter anything else other than the numbers?
I noticed at the bottom of the tab it had some format/letter etc, all I enter was my zip code numbers?
Also should I be seeing other cities when I am on the home page when I tap the city icon. It only shows my city (Thibodaux).
I do notice when it is searching, the internet is running. Also from the factory it searches using MediaNet I beleive. Also, I am not using a proxy. All my internet setting are from the factory.
Is it possible I have the wrong HTC Cutomizer downloaed. I downloaded the
"v0.8" version the other one was the v1.0????
Tried again and after searching, unable to gather data ETC.
Again, thanks and help!!
I am going to try and install the HTC Customizer on the phone instead of the storage/memory card and see if that will amke a difference. The HTC home and cusotmizer work good being on the storage card. Anyway stand by and will try.
No different, same message; "unable to gather data from selected city"
Okay, Do this. DL the attached file. Unzip & Put both files in \windows directory.
Go to HHC customizer. select the weather tab, selesct custom database, select add city enter you city exactly like this (use your city info of course):
Palo Verdes, CA USA 90732
No periods in USA or after the state abbreviation.
You will only see the citys taht are entered into the custom database, that's why only the one shows up.
Ok, stand by
ok, I downloaded the attached file you have on your last post. I unzipped it on my device and put everything under windows then soft reset and still no luck. I did notice that your file had an Opera icon (weather cities) in it. The other that I downloaded from above did not have this.
Thank for you time, any other suggestions??
I have put so many different files in here to try and get it to work, I will just load my saved "back-up" and start again.
Any help from you guys!! I really would like this application to work. Everything else I have installed has worked w/o problems except this one.
Simple' I just want to be able to located my city!!!!
I can find it on any other weather program.
To make this clear, this are the programs I have installed, is there any more I need?
HTC Home plug In
HTC Home Customize (I believe that the weather patch is installed in this program already?/? correct??)
The attached .dll file that's attached above.
Is this all I need to retrieve other cities??
I am determinded to get this right, as you can see!
Unfortunately I'm not able to help you with the HTC Weather piece, but I am running PocketWeather from http://www.sbsh.net and checked and your city is available in there. So if you are unable to get this fix and still want weather, this is an option. Unfortunately it isn't free, but you could always download a trial and see if it works for you before buying.
Another free option would be WeatherToGo from http://www.tonaya.com/products/wtg/index.php but I don't know if they have your town in there or if it can be customized.
Good luck in your quest.
Thanks, I think I will just go ahead and purchase the sbsh weather.net program if I can not resolve this issue.
1. Install HTC Home Customizer 1.05 whic I think u said u did.
2. Start HTC1.05, in the weather tab, change your city and add to the custom database.
3. Soft reset.
4. Sync phone with pc. (its just easier this way, trust me)
5. Once synced copy the .dll file I uploaded earlier (using ur pc not the phone) and paste it to the windows folder of your phone.
6. Soft reset.
7. Now you must be able to access the internet with your phone for all of this to work. Click the weather tab and click in the area where it asks you to and it will download your weather data.
Hope this helps.
I downloaded the v0.8 version of the cutomizer, does this amake a difference?
Did you go back into customizer & re-enter the custom city data & make sure there are no periods?
I've followed your directions, when I tried to paste the dll file into my windows directory through my PC, the windows directory did not show up. So I tried to copy it from the my documents directory to the windows directory using the file explorer on the phone and it said it could not copy over the file due to access restrictions. Any help would be greatly appreciated. I live in Idaho and the closest city I can get is 4 hours away.
swatcop1 said:
I downloaded the v0.8 version of the cutomizer, does this amake a difference?
Click to expand...
Click to collapse
Ok you are just trying to find an HTC Home that will let you get your local weather? If i am correct, then download and install these files in order:
http://weather.not2advanced.com/files/SdkCerts.cab
http://weather.not2advanced.com/files/htchome-2.1-n2a.cab
http://www.pocketemu.com/request11.html
Once all 3 are installed, run the customizer and set up your weather!
I've got mine to work with all the aforementioned assistance. However, it only updates the weather either via WIFI or ActiveSync. Is there no way to get this to work through the proxy?
Thanx.
Ericc191, thanks for that post. I'm wondering if that will make a city work that doesn't work when you edit the xml? I tried before doing the regedit change to add my code in, but it still couldn't find it through accuweather.

Diamond Weather Custom City

How do you set a city that isnt in the default list?
afaik you can only use the cities covered by accuweather.com, and i think they are all included as default.
Can anyone please tell me if you can also see a wether forecast on the weather tab or does it only show you the current weather?
I don't have the device yet, but all the screenshots I've seen of the weather page show a soft button (bottom left of screen) option called 5 Day. I'm assuming that's the forecast view.
Darrenives said:
I don't have the device yet, but all the screenshots I've seen of the weather page show a soft button (bottom left of screen) option called 5 Day. I'm assuming that's the forecast view.
Click to expand...
Click to collapse
It is the forecast view indeed. Gives you the Hi and Low temps forecasted over the next five days with the right weather icon.
Thanks... now only waiting for the pro to be released... I am so tempted to get a Diamond. But then again, I want a higher battery capacity, the flash with the camera, more RAM, microSDHC slot... ehm and keyboard
Accuweather covers every city in the world, the database for the HTC only has major cities, in this case the ones in all the states. I live in Hickory, NC. Is there any way to get this by editing the database or some sort of update?
That depends entirely on where the weather data is coming from. If it's straight from Accuweather, it may be possible to do a registry edit or something similar to get the weather for other cities. However, if the data is retrieved from HTC, it probably won't be possible as they'd only bother processing the data for the cities available on their devices.
I'm guessing/hoping that it'll work alot like the Touch so you'll be able to show your local area through amendments in the registry as noted above and in the following link:
http://blog.commsconsulting.co.uk/2007/07/26/local-weather-on-the-htc-touch/
Ah, well, I'd say that the Touch Diamond would be very similar to the Touch, so a similar registry edit should work.
Jersey is listed on AccuWeather but I can't find it on the diamond
http://www.accuweather.com/world-in...er&locCode=EUR|JE|JE---|SAINT HELIER&metric=1
Having a look for the reg key now, if anyone has found it already let me know!
- HKCU\software\htc\manilla
I Tried changing the registry to my city, but for some reason it goes to 6 cities all in asia?
Same thing happens when I change mine.
I thought it was because I was having to guess some of the Jersey code as it displays as EUR|JE|JE---|Jersey on the accuweather side but it looks like there is more to it.
My city is spelled wrong at the device.
Acuweather has it ok.
How do I fix that?
K
EUR|JE|Jersey would likely be Jersey in the Channel islands in Europe.
Wouldn't it be a bit more like USA|NJ|Trenton or something similar for a city in New Jersey????
Yes it would be for Jersey in the Channel Islands - that's where I am though
Be nice to get it working at some point, look's like there is something else that will be changing as well as just the string value as regardless of the value used it resets to 6 cities afterwards
Bad news
Hello guys,
I've managed to add a custom city to manila, but the bad news is, that manial will crash when it tries to download the weatherinformations.
here what I've done so far:
1. xxx_manila-file are SQLite-Database-Files... so get the SQLite Databaseprovider for Visual Studio from Sourceforge
2. Copy the file 2330fc3c_manila from windows-fir to your local system
3. Remove wrtieprotection
4. Open Visual Studio and add a new SQLite-Connection to that file
5. Open the Table "cities"
6. Add the City you whant to add (add one to the maximum id)
7. Close the connection
8. Copy the file to your device's windows-fir and override the existing file (user resco file-explorer)
9. Add the new location to the weather-tab
I will write a little program to edit the db-file soon... so you don't need a visual studio
I'd like very much to have mi city weather. I found the registry key too but if I modify the value with the code of my city it doesn't work, any news? I could try your solution importing the database file etc. but...will manila download the weather informations or still crash. I don't want to only add my city in the list, I want the weather of my city working.
Thank you for now
Hello,
I've tested now some other citycodes... no one worked... manily allways crash. I've no idea whats the problem... the "new city" is entered to the database as any "original". and the accuwaether-site for a city which work and a city which will crash manila are identicaly... sorry guys, but I think we have to live with the original cities.
I'm trying using your solution...I inserted the new row in the database and it's ok, but I can't overwrite the existing file in windows folder. I'm using resco explorer 2008 as you suggested. Any idea?
Thank you very much

M2D Weather - Adding Custom Cities Tutorial

I just copied my other post to make it easier to find over here. Hopefully you will all find it useful and enjoy the information.
For those who might not understand how to do it, just wanted to post this guide here too.
What you need:
1) HH_0409_WeatherCities.xml file. I have attached one below which you can use, or alternatively you can copy the one from the your /windows folder.
2) If you don't have the version which is already patched then you will need the N2A patched file attached below as well.
Here are the steps:
1) Open HH_0409_WeatherCities.xml using Notepad.
2) You will see many cities listed like this:
<city name="Anchorage, US" loca="NAM|US|AK|ANCHORAGE " land="United States " /> (original)
<city name="Ketchikan, AK" loca="NAM|US|AK|KETCHIKAN" land="United States" /> (copied and edited)
Simply copy one of the cities from your country, or state and then edit the city information. You will notice in the example above i have changed "Anchorage, US" to "Ketchikan, AK" as this is just what will display on the screen. The section marked loca=con"CONTINENT|COUNTRY|STATE|CITY" must be typed in correctly or else you will not get any data.
3) Repeate step 2 for as many cities as you would like to add.
4) Disable touchflo on the today screen
5) Copy Manila2D.exe (if you are not using the version already patched), and your newly edited HH_0409_WeatherCities.xml file to the /windows folder.
6) Enable touchflo on the today screen again.
7) Go to weather and add new city, the new cities should be available to you. I would remove any old cities you had before as well.
Weather won't download via edge or 3g:
For those of you still having problems with the weather plug-in here is another thing I did to fix it:
1. Go to Settings - Connections - Connections - Advanced - Select Networks - Edit (MEdia Net) - Proxy Settings -> UNCHECK BOTH OPTIONS
2. Soft Reset
It should work fine
UPDATES
banzaiwolfe said:
As a side note, I was able to just use the Zip code instead of NAM|US|AK|KETCHIKAN.
Click to expand...
Click to collapse
polyrhythmic said:
Scotchua, nice tutorial. I've been using several of your fixes since I discovered them. However, the one note missing from your Manila2D Weather Custom Cities tutoria is how to determine the loca="NAM|US|AK|KETCHIKAN".
I have the solution! For most US locations, you can use the 5-digit ZIP code, but to determine ANY location, including outside the US, use this link to AccuWeather's RSS.
Simply put in your location as instructed in the 'Choose a location' field and click 'Set'. (For this example, I used Whistler, Canada.) The page then generates a URL for you, which looks like accuweather.com/rss/liveweather_rss.asp?metric=0&locCode=NAM|CA|BC|WHISTLER. The piece after locCode= (which I've hilited in Red) is what goes in the loca="" field in the XML file.
Then complete your tutorial, and choose the custom cities! Hope this helps someone else looking to make a quick fix.
Click to expand...
Click to collapse
Here's An Entirely New Method. I tried and it works on PDA V9 (Only one i tried it on).
macrossmerrell said:
Hi all,
Here is what I did to fix my the darn weather problem using my AT&T Tilt through MediaNet.
1. Make a copy of the HH_0409_WeatherCities.xml in the Windows folder.
2. Modify the file to include your info. (for me the zip code worked). See the examples below:
Code:
<city name="Idaho Falls, ID" loca="83406" land="United States"/>
<city name="Idaho Falls, ID, US" loca="NAM|US|ID|IDAHO-FALLS" land="United States"/>
3. Copy the HH_0409_WeatherCities.xml back to your device (your storage card or My Documents)
4. Disable TouchFlo in your Today Screen settings
5. Using TotalCommander overwrite the HH_0409_WeatherCities.xml file in the Windows folder
6. Go to Settings, Connections tab, Connections program and select the "Manage existing connections" option.
7. Click the Proxy Settings tab and uncheck the "This network uses a proxy server to connect to the Internet" option.
8. Click the OK at the top left.
9. Once again, select the "Manage existing connections" option.
10. Click the "Edit..." button for your MediaNet or ISP connection
11. Click Next, Next
12. Click the "Advanced..." button
13. Click the Servers tab at the bottom
14. Click "Use specific server address" and enter the two following addresses for DNS and Alt DNS:
208.067.222.222
208.067.220.220
15. Click OK at the top, then Finish at the bottom, click OK again at the top, then OK again.
16. Reenable TouchFlo in your Today options
17. Go to the Weather Tab and Add your city
18. Enjoy
I have tested the solution on are Garmin's ROMs, but it should solve proxy server issues and DNS issues relating to AT&T's seriously out of date default DNS servers (the proxy server uses an up to date DNS server).
The above DNS servers are from OpenDNS www.opendns.com
Please post and/or PM me if this solution works for you. I've been frustrated at the lack of working weather for my area, so this is the crazy solution I came up with!
Merrell
Click to expand...
Click to collapse
Any Suggestions
Hi, I've done everything. However when I try to copy the new file I created with the HH_0409 exe there's problems.
1) when i go into windows on my device and go the the HH_file it will not let me copy it or deleate it, so i could then put in the new file.
2) when I try to copy and paste my new file titled the same HH_0409_WeatherCities to the Windows in device I get a error message that reads (error copy file, cannot copy HH_4090_WeatherCities access is denied. Be certain that there is enough free storage memory that the destination is not write-protected and that the file is not currently in use.)
I have unchecked TouchFlo as stated and done everything as listed. I'd somehow had this working when using MD2 but now that I'm using the Solace 1.5 rom, I'll be darn that I can get this to work. I'm trying to put Millsboro, DE USA into the darn thing. If you have any suggestions I'd be greatly appreciative.
Thank you in advance.
Beachboyde/Jon
beachboyde said:
Hi, I've done everything. However when I try to copy the new file I created with the HH_0409 exe there's problems.
1) when i go into windows on my device and go the the HH_file it will not let me copy it or deleate it, so i could then put in the new file.
2) when I try to copy and paste my new file titled the same HH_0409_WeatherCities to the Windows in device I get a error message that reads (error copy file, cannot copy HH_4090_WeatherCities access is denied. Be certain that there is enough free storage memory that the destination is not write-protected and that the file is not currently in use.)
I have unchecked TouchFlo as stated and done everything as listed. I'd somehow had this working when using MD2 but now that I'm using the Solace 1.5 rom, I'll be darn that I can get this to work. I'm trying to put Millsboro, DE USA into the darn thing. If you have any suggestions I'd be greatly appreciative.
Thank you in advance.
Beachboyde/Jon
Click to expand...
Click to collapse
I use total commander (which i have added as an attachement to the first post) to copy the files. If you have tf2d, and done a soft reset, but still cannot copy the files using total commander then i really don't know why your files cannot be overwritten. I've honestly never had that problem before, so i just don't have anyway to help you.
I also got that same error when I was using file explorer but I did get it to work when I used Total Commander.
I downloaded the file to my desktop.
Then opened it with notepad.
Added my city
I then choose to save as and selected the file on my desktop to be overwritten.
I copied it to my storage card.
I then copied it using total commander to the windows directory with TF2d disabled.
soft reset
enabled TF2d and it was there.
Can you give example of with zip code. I tried it using the info off the rss feed hyperlink and still nothing. Thanks.
turcomora said:
Can you give example of with zip code. I tried it using the info off the rss feed hyperlink and still nothing. Thanks.
Click to expand...
Click to collapse
First Post Updated
NOt working for me
Scotchua, thanks for taking the time to put this together. I have edited my HH_0409... file and put the cities in. Now I am able to select the custom cities as new locations but I get the "unable to download..." message for those cities whil the original cities will download weather just fine.
Any ideas?
thanks.
good stuff
iamdamon said:
Scotchua, thanks for taking the time to put this together. I have edited my HH_0409... file and put the cities in. Now I am able to select the custom cities as new locations but I get the "unable to download..." message for those cities whil the original cities will download weather just fine.
Any ideas?
thanks.
Click to expand...
Click to collapse
you need to either copy the patched manila2d.exe file over to /windows or change the DNS server addresses. I tried both methods and they work. They're both in the instructions.
Thanks!
scotchua said:
you need to either copy the patched manila2d.exe file over to /windows or change the DNS server addresses. I tried both methods and they work. They're both in the instructions.
Click to expand...
Click to collapse
Hey I appreciate the help...I am up and running now. I had saved the Manila2D.exe file to my storage card--I thought I just had to run it like a .cab but obviously (I overlooked it before) you have to save it to /windows. (I didn't have to mess with the DNS settings and I was able to simply enter using the zip code method.)
Guys like you are an asset to the forum...
scotchua said:
I use total commander (which i have added as an attachement to the first post) to copy the files. If you have tf2d, and done a soft reset, but still cannot copy the files using total commander then i really don't know why your files cannot be overwritten. I've honestly never had that problem before, so i just don't have anyway to help you.
Click to expand...
Click to collapse
can you do a step by step using total comander, I stil get a message that the files can not be replaced
I have the same problem. I am using a touch cruise with chavon bravo's rom. Cant move the manila file to windows.
NOTE: OPEN THE XML WITH NOTEPAD, NOT WORDPAD.
Word pad will translate foreign characters and will corrupt the XML file.
I did the step by step instructions, copied both files to the windows folder, and then restarted touchflo. Wheni go to Select location, its completely blank. Any ideas on this one?
still nothing
i'm using hyperdragon IV IOLITE, with touchflo but same trouble, when i've update the XML the new location appears, but when i sync nothing comes, but if i overwrite the patched Manila2d.exe now doesn't come up the manilla.
i don't need the Connection setting, cuz i'm a Mexican user, i've my own settings.
any idea, anybody know if the Hyperdragon IV IOLITE has already the manilla patched version?
this is the change in the XML NAM|MX|MX019|MONTERREY, the original MONTERREY has MX005 and comes with other weather forecast not from my city
i've tried two ways, overtwritin' the original Monterrey item, and adding another as MonterreyNL, and as i told you, in both ways the new setting pops now but can't get weather and in the other locations JUST FINE!!
Custom M2D Weather
hi guys, maybe I have the definitive solution to setting new cities on M2D weather. (or at least on my Kaiser go on)
1) in M2D weather set one city whatever you want is indifferent.
2) disable touchflo in today setup
3) open REGISTRY EDITOR and go on HKEY_LOCAL_MACHINE
then open software, then open HTC, then open Manila2D, then open Weather here you have two choice "0" and "setting" in both of them there are two item: "Location" and "Location Code". (you have to modify the item in "0" and in "setting")
So, when you tap in Location, you have to insert a string like this:
Caprese Michelangelo, It (first city name and after the nation)
When you tap in location code, you have to insert a string like this:
eur|it|it016|Caprese Michelangelo
If you want repeat for other city. At the end enable touchflo on the today screen again and upgrade the weather.
Work fine for me on my Tytn II.
original manila
where can i get the original manila2d? cuz i dont like the patched one
pincopinco,
You the man!! Just tried it on my TyTNII and worked first time! Outstanding!
pincopinco said:
hi guys, maybe I have the definitive solution to setting new cities on M2D weather. (or at least on my Kaiser go on)
1) in M2D weather set one city whatever you want is indifferent.
2) disable touchflo in today setup
3) open REGISTRY EDITOR and go on HKEY_LOCAL_MACHINE
then open software, then open HTC, then open Manila2D, then open Weather here you have two choice "0" and "setting" in both of them there are two item: "Location" and "Location Code". (you have to modify the item in "0" and in "setting")
So, when you tap in Location, you have to insert a string like this:
Caprese Michelangelo, It (first city name and after the nation)
When you tap in location code, you have to insert a string like this:
eur|it|it016|Caprese Michelangelo
If you want repeat for other city. At the end enable touchflo on the today screen again and upgrade the weather.
Work fine for me on my Tytn II.
Click to expand...
Click to collapse
I seem to have deleted a DWORD in HKLM/SOFTWARE/HTC/MANILA 2D/WEATHER/SETTINGS because the keyboard was in the way and I rewrote a DWORD by mistake. Could anyone please list all DWORDS under HKLM/SOFTWARE/HTC/MANILA 2D/WEATHER/SETTINGS?
FINALLY a simple fix-Thanks!
pincopinco said:
hi guys, maybe I have the definitive solution to setting new cities on M2D weather. (or at least on my Kaiser go on)
1) in M2D weather set one city whatever you want is indifferent.
2) disable touchflo in today setup
3) open REGISTRY EDITOR and go on HKEY_LOCAL_MACHINE
then open software, then open HTC, then open Manila2D, then open Weather here you have two choice "0" and "setting" in both of them there are two item: "Location" and "Location Code". (you have to modify the item in "0" and in "setting")
So, when you tap in Location, you have to insert a string like this:
Caprese Michelangelo, It (first city name and after the nation)
When you tap in location code, you have to insert a string like this:
eur|it|it016|Caprese Michelangelo
Click to expand...
Click to collapse
Man, thank you, thank you, thank you! This is the first fix that worked easily without messing up something else. City data now updating like a charm on my Vogue. Thanks again for sharing.

HTC Weather, problem & fix

I thought I would add this here unless anyone else runs into the same problem. I broke my HTC Weather yesterday while trying to upload local cities into it. I am running the Dec 03 release of HyperDragon, but HTC Weather seems to be the same (at least in terms of files to edit) across different platforms.
After adding my local city, and uploading it back to the phone when I went into the weather tab to add a new city, I was unable to search for any cities. In fact the search screen contained no entries at all. Essentially, I corrupted the xml file, and the phone was unable to read it.
How I broke it:
Be careful what you edit with. I just opened the file with word pad in Vista to copy my new city information, but the xml file and word pad don't like each other. I found that the tilde ( ` ) <--- that character appearing over letters was unsupported in word pad. The xml file was unable to then read it. It saw it as corrupted data.
To fix it:
I just deleted the offending cities with tilde's in them. I didn't need them anyways. However, one could also just edit the file with a better program and re-upload it to the phone. Once I fixed the file, HTC Weather saw my new cities and was more than happy to read them.
Maybe someone else already went over this. I don't know. But I know I searched on the forum for quite some time without finding out what I did wrong.
AT&T tilt running Hyperdragon
The first mistake was editing an XML file with wordpad. Try using Komodo next time. Always use the proper software for certain editing functions.
Heres a link to the Freeware Komodo XML Editor.
http://community.activestate.com/products/Komodo
didnt I say that
SpiritOne said:
I thought I would add this here unless anyone else runs into the same problem. I broke my HTC Weather yesterday while trying to upload local cities into it. I am running the Dec 03 release of HyperDragon, but HTC Weather seems to be the same (at least in terms of files to edit) across different platforms.
After adding my local city, and uploading it back to the phone when I went into the weather tab to add a new city, I was unable to search for any cities. In fact the search screen contained no entries at all. Essentially, I corrupted the xml file, and the phone was unable to read it.
How I broke it:
Be careful what you edit with. I just opened the file with word pad in Vista to copy my new city information, but the xml file and word pad don't like each other. I found that the tilde ( ` ) <--- that character appearing over letters was unsupported in word pad. The xml file was unable to then read it. It saw it as corrupted data.
To fix it:
I just deleted the offending cities with tilde's in them. I didn't need them anyways. However, one could also just edit the file with a better program and re-upload it to the phone. Once I fixed the file, HTC Weather saw my new cities and was more than happy to read them.
Maybe someone else already went over this. I don't know. But I know I searched on the forum for quite some time without finding out what I did wrong.
AT&T tilt running Hyperdragon
Click to expand...
Click to collapse
Next time use notepad that is what i use...also the XML file is in my download section go there and download it open it in notepad and edit then move it into the windows folder...u should be good to go..
How did you manage to get adding cities to WORK?
I followed the instructions that have been posted around, but the URL fragment is NOT as displayed in those posts anymore on www.accuweather.com.
Going to htc.accuweather.com from my Kaiser gets me something that looks SOMEWHAT similar, but its not the same - if I try to use the same format that other US cities are in for mine, I can locate it in the list but it won't update.
Any help?
Genesis3 said:
How did you manage to get adding cities to WORK?
I followed the instructions that have been posted around, but the URL fragment is NOT as displayed in those posts anymore on www.accuweather.com.
Going to htc.accuweather.com from my Kaiser gets me something that looks SOMEWHAT similar, but its not the same - if I try to use the same format that other US cities are in for mine, I can locate it in the list but it won't update.
Any help?
Click to expand...
Click to collapse
I am not sure what you are asking...I just added my city like MOD Scotchua said to do and it worked...
http://forum.xda-developers.com/showpost.php?p=2644237&postcount=2366
Aha - I screwed up. Its working now
Spoke too soon..... it KINDA works.
The currnet Manila 2D executable will go back to the top screen (the home page) if you hit the END button twice. It also will mark an incoming SMS "read" if you sit on it on the top page for a few seconds.
The patched one does neither. It will not go back to home unless you navigate there, and SMS do not get marked read.
Is the patch involved (e.g. could I go in with a hex editor and make a change to the CURRENT Manila executable?)
Update to THAT....
I took a quick look at the executables and found the change, with the different URLs. However, it appears the new one is longer than the old, which means that a quick "patch in place" is unlikely to work (I have no idea what's AFTER that block of data - and it ain't zeros, and IS apparent UTF-8 text - so I'm likely to scramble something doing a quick overwrite.)
This in turn implies that you need a way to disassemble the exe file and replace the data, then reassemble it (e.g. to assembler, at least) assuming you don't have source.
So..... anyone have a tool for this or is this a case of "have lots of fun playing with something that can disassemble it, find a clean place in the data segment to put the new reference, and fix it that way" sort of game?
SpiritOne said:
didnt I say that
Click to expand...
Click to collapse
yep... just rubbing it in some more
I wouldn't use notepad either. I'd rather not get into a long discussion about editing xml files with notepad either
An XML editor is definitely the way to go.
Yet another update....
What's with the app here? I patched it with a string that fits using a hex editor.
What I wind up with refuses to run. Are these apps cryptographically signed?
Answer: Yep, and once modified, the signature is no good. I don't see anything in Advanced Config that can turn that protection off either; you can disable the requirement that CABs be signed, but I don't see where you can disable the requirement that APPLICATIONS be signed. My security policy settings are such that all security is off, but attempting to run the patched executable by hand elicits a complaint about the signature being invalid. I presume that a MISSING signature would be ok, but a CORRUPT one is going to get complained about - and I have no means to fix that.
Yet more....
I have found the code-signing tools after rooting around and re-signed the application.
It still fails to work; it appears there is a SECOND call to an HTC web site in the current Manila2D code which is NOT in the other patched file.
That one goes to: http://weather.manila1.htc.com/widget/htc/forecast-data_v3.asp?locCode=
DNS shows the address is a CNAME to htc.accuweather.com, and the worse news is that the replacement string that goes in the other place doesn't fit in there - its one byte too long.
It also looks like THIS is the one being called for updates, because changing the other, direct call to the htc.accuweather.com link doesn't change anything - the codes in the file that refer to places accuweather handles still work, but those that refer to other places do not.
Any ideas?
Final Fix - Read
Ok, here's what I've accomplished.
I patched the Manila2D.exe (the CURRENT copy from HyperDragon and others) and have re-signed the code (with a self-signed cert)
I also grabbed the php script and set it up on a VERY short domain name I registered this afternoon, htcwx.org - it exists ONLY for this purpose and is NOT a generic HTC web site.
I have modified the script as necessary, and the firmware as necessary. The replacement Manila2D.exe file is attached. To implement this simply replace the Manila2D.exe in your \Windows directory on the device with the one in this ZIP file. That's it; you can then add city codes at will in the weather file list and they will work.
The previously-posted version of Manila2D.exe has a couple of bugs that I consider show-stoppers, and patching the current version necessitated having a shorter URL as one of the places required to be patched would not allow the "not2advanced" url to fit.
Note that this weather reflector is being run by me, is OPEN and will remain indefinitely; I have a very high-bandwidth connection and expect no interruption in that service. Feel free to use it.
I now have WORKING HTC weather in Manila for virtually anywhere.... and you can too without the restrictions that existed in the previous patched copy (no return to home screen with the END key, and no SMS message marking)
This script "portal" should also work with any other patched HTC Home or HTC Manila applications; the complete url is http://htcwx.org/wx.php?
Note that there is NO general content on that web site.
Enjoy!
PS: As of this instant the .ORG TLD nameservers haven't picked the domain up yet from my registrar. That's abnormal; I see it on my infrastructure but not globally. It should be globally visible by morning.
There's just one thing left to say:
Thank you!
I've been fiddling with this for quite some time, and once I've found this thread everything worked as advertised!!
Happy new year!!
Glad it works for you! Happy New Year to you as well.
Hi Genesis3,
I have installed yesterday Josh's v15 M2D Plain 3G ROM and would like to customize the Weather and add my location.
Your Manila2D.exe is 1.1 Mo where the Manila2D.exe included in this ROM is only 410 KB .... Do you think I can change the original by your's ?
Thanks
That copy is PROBABLY compressed. If it is, the strings can no longer be patched.
You need to talk to the chef and get the uncompressed EXE file - if he has it.
Packed manila2d.exe
I haven't seen anyone post about this but the compressed manila2d.exe that I have uses UPX it worked for me to both unpack and repack the file.
Look into the file for "$Info" if it say's packed with UPX the link above may work for you too. (about 350h char's in)
ENJOY!
Genesis3 said:
That copy is PROBABLY compressed. If it is, the strings can no longer be patched.
You need to talk to the chef and get the uncompressed EXE file - if he has it.
Click to expand...
Click to collapse
As with everything here YMMV, make backups and if you blow it up don't blame anyone but the operator.

Categories

Resources