HTC Weather city widget editor - Droid Incredible General

Hello,
I am trying to add a user defined city to the HTC weather widget app on the HTC Incredible. I know that it gives you weather for your current locations, but i would like to know what the weather is at my father's house (Mathews VA) which is 300 miles away. The closest city in the default list is newport news, or richmond, which just isn't right. Or for another example, the closest city on the default list to christiansburg is not even Roanoke VA, it's probably Richmond. Anyways, you can see how the ability to add cities to the database would be beneficial.
As a reference, my previous phone was the Touch pro 2 and i used JVH3 weather editor http://forum.xda-developers.com/showthread.php?t=546141 and/or methods like this http://forum.xda-developers.com/showthread.php?t=523698&highlight=weather+city+editor to add cities that are not in the default HTC database (this worked on the windows mobile TP2 - but obviously not on android). I cannot seem to find a way to do this on the HTC incredible (or on any other android phone for that matter). If anyone has come across this problem and found a solution, i would really appreciate it.
Thanks for your help

I second that request
I also had a TP2 and still do, but on my DINC would love to know the weather at the house 500 miles away. When I am there (Tuscumbia alabama) it shows up but I can not find a way to save the location, and it is not in the list either.

Adding cities to DB does not work
I was able to locate the database of cities and add new entries. However, when the new entries where selected in the widget, AccuWeather refused to return data for the new entries. It appears that HTC may be using an interface to AccuWeather that tells them it is coming from a phone and AccuWeather will only respond to approved cities. My new entries were identical to existing entries and I was able to select the new cities but they would not work. Thus my conclusion that there is an issue with the interface to AccuWeather. For anyone wanting to try some more, the db is located at: /data/data/com.htc.provider.weather/files/WP_0409WWE.db The file is in SQLLite format

plmwest said:
I was able to locate the database of cities and add new entries. However, when the new entries where selected in the widget, AccuWeather refused to return data for the new entries. It appears that HTC may be using an interface to AccuWeather that tells them it is coming from a phone and AccuWeather will only respond to approved cities. My new entries were identical to existing entries and I was able to select the new cities but they would not work. Thus my conclusion that there is an issue with the interface to AccuWeather. For anyone wanting to try some more, the db is located at: /data/data/com.htc.provider.weather/files/WP_0409WWE.db The file is in SQLLite format
Click to expand...
Click to collapse
Thank you for this tip.
It’s working just fine! I used the SQLite Administrator 0.8.3.2 (PC)
The biggest challenge I had was to copy the WP_0409WWE.db to my PC.
With the help of Root Explorer it finally worked.
After editing the WP_0409WWE.db with my locations, The location codes I get from the AccuWeather gadget for Vista/Windows 7, I’ve copied it back to my Android phone, Rebooted it and everything is working fine!

Now we need a on phone app to be able to edit these just like the WM devices have.

Iceberger said:
Thank you for this tip.
It’s working just fine! I used the SQLite Administrator 0.8.3.2 (PC)
The biggest challenge I had was to copy the WP_0409WWE.db to my PC.
With the help of Root Explorer it finally worked.
After editing the WP_0409WWE.db with my locations, The location codes I get from the AccuWeather gadget for Vista/Windows 7, I’ve copied it back to my Android phone, Rebooted it and everything is working fine!
Click to expand...
Click to collapse
Hmm, I wonder what you did differently? Could you post an example or two of the entries you made that worked?

plmwest said:
Hmm, I wonder what you did differently? Could you post an example or two of the entries you made that worked?
Click to expand...
Click to collapse
Here you are

I am very interested in doing this because my town cannot be searched for in the widget, it only pops up if I am in the exact right spot. I have downloaded root explorer and the sq editor and located the WP files. I assume I need to open the Accuweather program on my pc. What do I need to do next? How do I enter the code for my town on the phone so I can actually search for it?

Anybody? Just need to know what I'm looking for

So, just edit "WP_0409WWE.db" - and all will be ok? I have same problem - my city isn't in list.

One question - is it possible to create an app to edit "WP_0409WWE.db" on the phone that doesn't have root?
I don't want to root my phone. By now.

No, you need root access to edit the file.

two months now and we don't have any news about the editor for default weather widget. Does someone know if there is a project which deal with this issue. I am not rooted and I want to add new cities in the default weather and until now I cannot do it except if I root my device.
Any news?
thanks in advance

bakxos said:
two months now and we don't have any news about the editor for default weather widget. Does someone know if there is a project which deal with this issue. I am not rooted and I want to add new cities in the default weather and until now I cannot do it except if I root my device.
Any news?
thanks in advance
Click to expand...
Click to collapse
There's nothing we can do about this. You need to root in order to change the cities. It's a hard requirement.

I was able to add cities into the weather database. It's quite simple. I followed the instructions in this post. Thanks to all who contributed to this post.

Related

PointUI - New Version 1.01b - Now with customization

Here's the new version of PointUI.
New Features
- Weather update frequency now includes "Manual".
- Customisation (yes, we are Aussies so spell it with an 's'): Media Player - ok, a little techy at this stage, but you can now specify the path of your media player in the registry:
- In the key: HKLM\SOFTWARE\Pointui\Home\{your version} (i.e. version = 1.01b) create a new String value called App.Path.Media
- You can include in your path {Windows}, {Programs}, {ProgramFiles} which will get replaced with your device specific folders but if you do use them then don't start the path with a backslash
- The path can be to a shortcut or exe, and include spaces, but don't use any quotes
- An example value is: {Windows}\wmplayer.exe
- You don't need to restart Home for this change to kick in
- Customisation: Email account
- You can specify a store name in a String value called App.Email.StoreName
- This will then launch to the specified inbox instead of Outlook mail
- The store name is CASE SENSITIVE
- It doesn't appear to break if you enter a dodgy store name - just doesn't do anything Smile
- Unread message count indicator will be count of TOTAL emails across all accounts
- You NEED TO RESTART Home for this one to kick in
- Customisation: Tasks and Calendar
- You can specify an alternative app for Tasks and Calendar using the registry keys App.Path.Tasks and App.Path.Calendar
- If the alternative app requires command line args then you can supply them with the corresponding keys App.Path.Tasks.Args and App.Path.Calendar.Args
- You don't need to restart Home for this change to kick in
- Customisation: Phone
- To use an alternative dialer (or if your device has the problem of when you click the Phone icon it freezes for 8 seconds, then you can specify an alternative dialer (or any app really) using the registry key App.Path.Phone
- You don't need to restart Home for this change to kick in
- Customisation: Lock Screen
- To use an alternative lock screen application you can set the registry key App.Path.LockScreen. This should provide a workaround for Smartphone users who cannot get out of our lock screen.
- You don't need to restart Home for this change to kick in
Changes
- Clicking calendar icon from Home screen will go to the day view instead of week.
- When browsing applications, sometimes you would see a file called "icon" that didn't launch anything - it's actually on your device and is a real file but is hidden, so hidden files are now excluded from the list.
- Updated fonts to include extended characters.
Bug Fixes
- Support for special folder locations other than the default English ones.
- Phone numbers now include all characters in addition to standard digits.
- When the Phone icon is clicked and there are no phone calls in the history it now works correctly instead of showing a grey bar at the top.
- Japan added to weather locations.
Known Issues
- Not enough time in the day.
- Red Bull wearing off.
- VGA
- Devices without Phones
- Recurring Appointments
- Uninstall - we'll need to get the uninstall sorted out soon. All Pointui apps have a command line switch -uninstall that will prompt it to remove itself, registry settings etc, so you can use Update Manager to uninstall Home (through it's interface), and then get rid of Update Manager with command line. That will still leave the left soft key reverting to Phone, but pretty much everything else should be gone.
Head over to www.pointui.com for more info.
installing now.. thanks
Hi,
This version still doesn't show hebrew letters, Please give a chance to change the software fonts....
to Tahoma, since SEOGE (Or the fon't u'r using) doesn't have the hebrew letters.
Thanks.
Nadavi
Will finally get a chance to test now - was trying to wait for initial bugs to get fixed... Heard lots of great reviews on this app!
Thanks for the changes.
I will try this evening (german time)
This version introduces new problems. I'm enjoying SPB Backup like never before
Anyone had success removing this after install I have tried uninstalling via phone/ computer and it removes it from the list but does not remove the program. I would love not to have to hard reset.
you dont...
after normally uninstall on your phone/pda you can
delete the registry-keys under
HKLM\Software\PoitUI and the Home-directory
located under "Prgram Files" or "Programme" or
whatever language you have...
After reboot, all is like befor....normally
On my deinstall it worked so
CABs Please
Hi,
I don't use Windows and will be better if somebody post th eCABs files.
Regards,
Taguapire.
haiopei said:
you dont...
after normally uninstall on your phone/pda you can
delete the registry-keys under
HKLM\Software\PoitUI and the Home-directory
located under "Prgram Files" or "Programme" or
whatever language you have...
After reboot, all is like befor....normally
On my deinstall it worked so
Click to expand...
Click to collapse
Jesus it puts the lotion on its skin. Where being held captive by a piece of software gotta love that. Talk about nazi'ism feels like AOL for mobile devices go ahead install if you dare will require a format if u want to get rid of us though.
Easy to remove if you do it the right way. You would have found this if you would have looked on the forums for the program.
To Remove .Home
Drop back to the default Windows Mobile Today Screen
Start > Programs > .Update Manager
Pointui Products > Home > 1.0 Free > Uninstall
Perform a Soft Reboot after the uninstall and Home will be removed.
To finish the uninstall, use Remove Programs to uninstall the update manager, you can delete the installation folder if you so desire and the icon form the start menu.
To bad this procedure does not work on the 6800 there is no uninstall option in the update manager.
Custom Program?
Can someone make a program that you don't have to go in the registry and make it easier to change on the fly.
blazingwolf said:
Easy to remove if you do it the right way. You would have found this if you would have looked on the forums for the program.
Click to expand...
Click to collapse
Yeah, but going to the devs own forums and reading their instructions actually requires more than the single braincell a lot of people seem blessed with these days...
FloatingFatMan said:
Yeah, but going to the devs own forums and reading their instructions actually requires more than the single braincell a lot of people seem blessed with these days...
Click to expand...
Click to collapse
I love when jackasses speak about things they dont know.
NexVision said:
I love when jackasses speak about things they dont know.
Click to expand...
Click to collapse
And I love it when people with the IQ of a zit ask questions that are actually answered several times by several people on official forums.
NexVision said:
To bad this procedure does not work on the 6800 there is no uninstall option in the update manager.
Click to expand...
Click to collapse
It is there on my 6800.
Yup a IQ of a zit because the uninstall instructions do not work for me or hundreds of others and we want this off of our device so we ask for help. Real good insult there dont quit your dayjob (if u even have one) anyways I am done with you thanks for being a complete and utter waste of space.
Thank you blazingwolf for your attempt although it did not work.
This method did though.. Still had to alter the softkey though but no biggie.
haiopei said:
you dont...
after normally uninstall on your phone/pda you can
delete the registry-keys under
HKLM\Software\PoitUI and the Home-directory
located under "Prgram Files" or "Programme" or
whatever language you have...
After reboot, all is like befor....normally
On my deinstall it worked so
Click to expand...
Click to collapse
@Nexvision,
Did you go to the right location? It took me a minute to relize that I clicked on the wrong item one time.
blazingwolf said:
It is there on my 6800.
Click to expand...
Click to collapse
HMMMMMMM maybe it was the version I downloaded then I even tried downloading a new version today reinstalling and uninstalling no dice still for the uninstall method posted (other then manual delete). Oh well.

Weather broken on Today after update to WM6.1. CANNOT overwrite WeatherCities.xml!

Weather broken on Today after update to WM6.1. CANNOT overwrite WeatherCities.xml!
Yay, I have GPS, Rev A, and for me the machine is noticeably faster.
Problem is the flash trashed my HH_0409_WeatherCities.xml. I know my AccuWeather International API code is correct as it previously worked and I can currently use the link via my browser.
I see tons of posts, here mostly, where the solution given is "add a line to the XML file."
I try that and it barks about access violation (Read Only). If I try to modify its attributes it reverts by the time the folder refreshes.
So, anyone, seriously, is there a definitive answer to whether or not it can be edited *easily* or is N2A's still the wisest choice?
Thanks!
FreeMobility said:
Weather broken on Today after update to WM6.1. CANNOT overwrite WeatherCities.xml!
Yay, I have GPS, Rev A, and for me the machine is noticeably faster.
Problem is the flash trashed my HH_0409_WeatherCities.xml. I know my AccuWeather International API code is correct as it previously worked and I can currently use the link via my browser.
I see tons of posts, here mostly, where the solution given is "add a line to the XML file."
I try that and it barks about access violation (Read Only). If I try to modify its attributes it reverts by the time the folder refreshes.
So, anyone, seriously, is there a definitive answer to whether or not it can be edited *easily* or is N2A's still the wisest choice?
Thanks!
Click to expand...
Click to collapse
I had the same problem. Using Total commander I was able to overwrite the file, and also found another file identical to it under mydevice/htchome. I wrote over both and all is back working with me.
thacounty said:
I had the same problem. Using Total commander I was able to overwrite the file, and also found another file identical to it under mydevice/htchome. I wrote over both and all is back working with me.
Click to expand...
Click to collapse
After the flash to WM6.1 (the "official" ROM) I do not have an "HTC Home" or anything similarly named at all.
In WM6 I could upgrade the Home plugin to 2.1 and I could update both XML files.
There is only one XML file now in the entire device and it allows you to overwrite it at the cost of it saying "this could damage your ROM" and so forth. However, it will let you overwrite it and it merely adds entries to the "database."
HKEY_LOCAL_MACHINE\Software\HTC\HTCHome\Weather\Settings' "LocationCode" key is updated upon your selection in the weather options.
I have manually modified this key and can input cities that DO work (use "Location" to call it whatever I like) and see the update. Currently my weather tab reads:
"45m/N of This Sh**** Weather"
45 miles North of this... well, you get the idea.
The Region/Country/State/City code is valid. I can click the link at the AccuWeather site and get the weather for my city. I have verified that the Weather plugin is working for other cities.
Did AccuWeather change the URL that serves smaller cities?
I guess I should ask someone if they can teach me how to take the newest HTCHome.dll and cook it into one that has my city by default. Or the customized URL and/or data that will get my city displayed again.
Sorry for the ramble/rant.
FreeMobility said:
After the flash to WM6.1 (the "official" ROM) I do not have an "HTC Home" or anything similarly named at all.
In WM6 I could upgrade the Home plugin to 2.1 and I could update both XML files.
There is only one XML file now in the entire device and it allows you to overwrite it at the cost of it saying "this could damage your ROM" and so forth. However, it will let you overwrite it and it merely adds entries to the "database."
HKEY_LOCAL_MACHINE\Software\HTC\HTCHome\Weather\Settings' "LocationCode" key is updated upon your selection in the weather options.
I have manually modified this key and can input cities that DO work (use "Location" to call it whatever I like) and see the update. Currently my weather tab reads:
"45m/N of This Sh**** Weather"
45 miles North of this... well, you get the idea.
The Region/Country/State/City code is valid. I can click the link at the AccuWeather site and get the weather for my city. I have verified that the Weather plugin is working for other cities.
Did AccuWeather change the URL that serves smaller cities?
I guess I should ask someone if they can teach me how to take the newest HTCHome.dll and cook it into one that has my city by default. Or the customized URL and/or data that will get my city displayed again.
Sorry for the ramble/rant.
Click to expand...
Click to collapse
I'm not sure whats going on, but I did have to have a new htchome for my updated rom. Check this out
http://forum.ppcgeeks.com/showthread.php?t=25019&highlight=new+rom+tabs+problem
Post #13.
I installed this and HHC Home customizer,
added new lines to the .xml file,
Once I had the files the way I wanted I put the file in the root of my storage card and used total commander to move the weather.xml file to windows.
It asked if I wanted to overwrite and I chose yes, worked like a charm. I have to use HHC Customizer custom weather for the weather hack to work, but all is going well so far. Hope this helps.

SPB Weather Aussie Weather Source

Hi All,
As requested, find attached weather sources for SPB weather.
There are two scripts below, one basic and one detailed. Instruction on how to use are in the the templates, so just open in notepad to view the 'how to'. I use the basic one, but have a play as you can go down to each states weather centres.
Weather is then sourced from www.weatherzone.com.au.
I take no credit for this script and a big thanks to recrem (from the now closed Mtekk forum) for updating a while back.
Enjoy,
Dev
Thanks for the good work. Good to see an Aussie Weather Source
Thanks again Dev,
Just downloading your weather files now (after trawling through whirlpool all morning looking for your post). I was happy using the one in SPB mobile shell until today... it forecasts 30 for today and it is much closer to 34... all the news channels were saying 34, so obviously they got their data from a more reliable source.
Works great with SPB Traveler, but has anyone made it work with the SPB panel's weather? It seems to take its data from Traveler when Traveler is installed, but if you select a custom city, the panel's weather screen just tells you that "No weather data has been downloaded".
bedlam_au said:
Works great with SPB Traveler, but has anyone made it work with the SPB panel's weather? It seems to take its data from Traveler when Traveler is installed, but if you select a custom city, the panel's weather screen just tells you that "No weather data has been downloaded".
Click to expand...
Click to collapse
There is no need to create a custom city (unless it's not in the list).
There are full instructions in the template file (open with notepad).
It is working fine for me... apart from a few issues with weather icons not showing up from time to time.
buzz83 said:
There is no need to create a custom city (unless it's not in the list).
There are full instructions in the template file (open with notepad).
It is working fine for me... apart from a few issues with weather icons not showing up from time to time.
Click to expand...
Click to collapse
As I said, it works fine in SPB Traveler. Where it doesn't work is with SPB's custom X1 panel. The weather icon on its "Today" screen is just a sun with N/A where the temp should be. Tapping on that icon, which normally shows the next 4 days, has a message along the lines of "The weather data hasn't been downloaded.
I'm assuming it's because those scripts produce temperatures and icons in a slightly different format. Traveler can handle it but the Panel can't. It'd need someone with a bit more script nerdery than me to reformat those scripts to something the Panel's weather routine can read.
bedlam_au said:
As I said, it works fine in SPB Traveler. Where it doesn't work is with SPB's custom X1 panel. The weather icon on its "Today" screen is just a sun with N/A where the temp should be. Tapping on that icon, which normally shows the next 4 days, has a message along the lines of "The weather data hasn't been downloaded.
I'm assuming it's because those scripts produce temperatures and icons in a slightly different format. Traveler can handle it but the Panel can't. It'd need someone with a bit more script nerdery than me to reformat those scripts to something the Panel's weather routine can read.
Click to expand...
Click to collapse
Yes, only SPB weather can read the scripts to display the correct icons. So if you don't have SPB weather loaded, its no good as Shell Panel doesn't work with it.
Dev
Revised Detailed Script to fix missing codes
Hi all,
It would seems weatherzone.com.au have now stopped displaying the city code number in the URL address as per the instruction in the template.
So I have modified the template so you can now get it to work if you don't know your suburbs code.
Instructions are at the top of the file, so just open with notepad and you'll be off and running.
Enjoy.
Dev
thedeva said:
Hi all,
It would seems weatherzone.com.au have now stopped displaying the city code number in the URL address as per the instruction in the template.
So I have modified the template so you can now get it to work if you don't know your suburbs code.
Instructions are at the top of the file, so just open with notepad and you'll be off and running.
Enjoy.
Dev
Click to expand...
Click to collapse
You have proved yourself yet again dev.
SPB Weather was giving me the #$%s on the weekend, but I was house hunting and didn't have time to play around with it.
Looks like you've done the job very nicely.
Thanks again
For reasons I can't begin to understand, it would seem the issues with SPB Traveler messing with the SPB Panel's weather are resolved by installing SPB Weather.
If I was being scientific about it, I'd see if it works in isolation without Traveler or if this new version of the script has anything to do with it. But I'm not.
So for now, the combination of Traveler + Weather + current script by TheDeva = correct weather now being displayed in the SPB Mobile Shell Panel. Some weather icons are N/A, but at least the temperature is correct and not 10 degrees out like it used to be. (What are these other websites using as the source of their information??)
Thankyou to 'thedeva' for the modified spb weather script... the programs now works and it gives the same forcasts that we get on ABC weather.. so that accuracy helps alot.
One thing I have noticed is that there is never an icon for the next days weather. e.g. today is tuesday, and there is no icon for wedneday's forcast. Tomorrow after I update, there will be no icon for the next day. I have Ballarat and Melbourne as the cities I watch, but neither will display the next day's icon using this template... when i go back to the default spb scripts all is good, just lousy weather forcasts...
I have looked at the script, but I can't see where the fault lies... any ideas please ?
David
Hi All,
I have read all the templates and comments and cannot get the weather to display correctly. I have mobile shell installed as well as SPB weather. The custom city of melbourne has been added with directions supplied by 'thedeva'. I get the dreaded N/A on the professional Now screen. Any ideas?
Thanks!
Dan.
SPB v1.7 with Melbourne?
Hi guys,
I have SPB 1.7 (which is more lightweight than the current) and am trying to get it to work with the script.
It doesn't say in the script which "City Code Type" to use but I've tried all 3 (user defined, ICAO and GisMeteo.ru) with no luck.
I've set Custom City with "vic/melbourne/melbourne".
I get a "Error downloading data from site". I'm pretty sure I have connectivity as I see the HSPDA connection go and if it's in the crade the sync marks go (and other apps update).
Can anyone assist?
Cheers,
Gavan
I believe SPB Wather older than version 2 are obsolete and don't have any support/sources for them.
Thanks Orlesi - can anyone else also confirm it won't work with v1.7? I've been deliberately running the older version for a smaller simpler lightweight forecaster.
glimjoon said:
Thanks Orlesi - can anyone else also confirm it won't work with v1.7? I've been deliberately running the older version for a smaller simpler lightweight forecaster.
Click to expand...
Click to collapse
Yep.
The custom template is for 2.0 on only. It's still a little buggy though.
I've come late to this, so hopefully someone is still monitoring it. I installed the script and my forecast now comes from the BOM. The only part I didn't understand when reading through the script is how to get the Mobile Shell widget to display the weather. I simply get N/A. Is this by design and unavoidable, or is it possible to fix it?
More importantly, my current temperature seems to be wrong. It seems to still be getting that part from the 'Default Source', even though I've disabled that. It's 37 degrees here today right now, and Weatherzone agrees. But SPB Weather is showing only 31, which is the temperature the 'Default Source' thinks it is. Also, when I tap the current temperature, it says the 'location' is 'Adelaide Intl', which again is the location of the 'Default Source', not the Weatherzone source. So even though I've set Weatherzone as default, and all the long range forecasts seem to be using it and are correct per the BOM site, the current temperature seems to be sourcing from the standard SPB Weather 'Default Source' still, even though I've said 'Don't use this source' (and under sources, it shows as 'This source is not used'). Is there something I need to change in the script to get it to display the current weather from the weatherzone source?
Sorry if I've missed something obvious.
EDIT: Please forgive me, I realised that I had used the default city in SPB weather, which I think is why I was getting the Default Source data for the current temperature. I set up a custom city and it seems to not be be drawing from the default source now. Except now, there seems to be no current temperature. Well, the field is there, but it's actually only showing the forecasted maximum there, not the actual temperature. When I tap it, all I see are the forecasted maximums, no data for when the reading was taken. I'll keep looking but if anyone has any idea why this is happening, I'd appreciate your input. I see there is something written about exactly this behaviour in the script, but I can't work out if that's just saying 'that's how it is' or whether there is a way to fix it? Sorry for being such a noob!
Over the last few days or so, this weather template seems to have stopped working. I suspect that there have been modifications on the weatherzone.com.au website. If anybody has managed to fix the template, I would much appreciate it
_Robert_ said:
Over the last few days or so, this weather template seems to have stopped working. I suspect that there have been modifications on the weatherzone.com.au website. If anybody has managed to fix the template, I would much appreciate it
Click to expand...
Click to collapse
Yep. I have found the same thing. Today is the last date for which data was downloaded and I guess that it was downloaded about 7 days ago. Without a fix I guess I will be forced to use a US source which will in fact render SPB Weather useless.
For the record I found that this one (http://www.pdagold.com/themes/detail.asp?t=16497) still works at least for Melbourne but it doesn't provide detailed weather the way the weatherzone one used to.

weather

hello, i want to use the htc weather app that comes on the tp2, but im not using the touch flo thingy. so can anyone tell me how to do that?
thanks
ohhhh... or if theres any similar apps like the g-weather i have been using which i would carry on using but my trial period has run out
You can't just use one particular tab of TF3D. It's all or nothing...
Sounds like you prefer something free, so have a check here for some options.
Otherwise, the weather apps from Elecont and SPB are pretty good. Or if you use SPB Mobile Shell, a weather widget is included.
Hey just use TF for find a standalone app from the previou post!
Weather replacement
I've read a number of threads on how to edit a sql database in a particular manila folder in order to make the accu-weather widget display your city's weather. But since I live 100 miles from the nearest accu-weather "international" city, it seems that my only option is to use a 3rd party app. Is this a correct assessment?
rhfritz said:
I've read a number of threads on how to edit a sql database in a particular manila folder in order to make the accu-weather widget display your city's weather. But since I live 100 miles from the nearest accu-weather "international" city, it seems that my only option is to use a 3rd party app. Is this a correct assessment?
Click to expand...
Click to collapse
You can use the weather city editor to add your city to the data base. I am mobile at the moment so I cant link. you can use a city in your area as a base or enter everything from scratch.
Ok ran to the pc. HERE
http://forum.xda-developers.com/showthread.php?t=523698&highlight=weather+app
everything you need is here to add any location on to the weather tab
rhfritz said:
I've read a number of threads on how to edit a sql database in a particular manila folder in order to make the accu-weather widget display your city's weather. But since I live 100 miles from the nearest accu-weather "international" city, it seems that my only option is to use a 3rd party app. Is this a correct assessment?
Click to expand...
Click to collapse
If you are saying that the Accuweather web site does not have a city closer than 100 miles, then yes I think you are out of luck. You are limited to whatever data Accuweather provides. You might try RadarWeather. It is complicated to install, but it might use a different data feed.

Edit the HTC sense weather location database - Updated for Sense 2.x up

Edit the HTC sense weather location database.
For editing sense 1.0 weather databases, use the method immediately below. Information for editing sense 2.X and above is shown in the section marked “New directions for editing the weather database in sense 2.X” below .
After much searching with no results I finally came up with a way to add locations to the HTC Sense weather database. If this has been posted before sorry for the redundant post but I could not find this anywhere and thought it might help some people. The file to edit is located in the phone at /data/data/com.htc.provider.weather/files/WP_0409WWE.db. To get the file you need to be rooted and have Root Explorer from the market or QtADB (http://forum.xda-developers.com/showthread.php?t=972758) which make moving the file from the phone to the PC and back very easy.
1. With Root Explorer, copy the WP_0409WWE.db file to the Sdcard and then copy it to your computer for editing. I use QtADB to move files. Just plug the phone in and leave it on charge only. QtADB will bring up a phone and PC directory side by side and you can migrate to the file and drag it to a directory on the computer.
2. To edit the database, you can use a free SQLite Database Browser found at http://sourceforge.net/projects/sqlitebrowser/. Open the WP_0409WWE.db file in the editor and then click on the Browse Data tab. In the Table drop down list, choose locationlist. At the bottom of the page, click the forward arrow until you reach the end of the file, then scroll to the bottom of the list. Now add your own city using the format as shown in the table. To do that, click ‘new record’ at the upper right and a new line will appear at the bottom of the list. To edit the database cells with SQLite editor, double click on a cell and an editing window will pop up. Click in the window, input your info, and click ‘apply changes’ at the bottom of the window.
3. Since the file uses Accuweather, you’ll want to make sure that Accuweather has data for your city. Just go to the Accuweather.com website and put your city in the search. If Accuweather doesn’t find your city, then find the city that is closest to your location.
4. Once you are satisfied with your edits, save the file and replace the file in your phone with your new file. This is where QtADB makes copying files easy. Just drag and drop from one window to another and you’re done. Reboot your phone and enjoy your new locations.
New directions for editing the weather database in sense 2.x roms.
Have been using the new sense 2.x roms and have found that the SQLite Browser in the above directions will not edit the new weather database. The easiest way I have found for the new database format is with the SQLite editor by Speed Software form the market as suggested by Polar67 in post number 11. This is a purchase app so it requires a little cash outlay. Here are Polar67's directions with a slight modification of using SQLite editor rather than Root Explorer to locate the database. Please thank Ploar67 for this method.
1: Navigate to /data/data/com.htc.provider.weather/files
2: Backup original databases to secure location.
3: Open SQLite editor and it will display a list of databases with Weather Provider (com.htc.provider.weather) at the bottom.
4: Tap on Weather Provider and open the WP_0409WWE.db file.
5: Find location near what i want to add & clone.
6: Edit clone to fit my new location.
7: Save -> Reboot -> Done.
Another method starts the same as the sense 1.0 version, but uses the free SQLite editor, SQLite Expert Personal http://www.sqliteexpert.com/SQLiteExpertPersSetup.exe.
1. With SQLite Expert open the WP_0409WWE.db. The database will be listed in the left pane. Open locationlist and find a location close to what you need. Double click anywhere in the row and it will bring up the record for editing.
2. Copy the location code, then close the window. Click on the plus icon in the row above the data list to add a new record. Paste the weather location you copied into the code field. At this point, you can either go back and forth copying and pasting or just fill in the fields manually. When pasting the location code IE: NAM|US|WA|EAST OLYMPIA, you can just edit the state and city to the location you want as in NAM|US|WA|OAK HARBOR to NAM|US|FL|KEY WEST.
3. If you want to check that your location will bring back weather, try your location in Accuweather.com first.
4. When you are done close the database and copy it to your phone. Reboot and fill your widget with your custom locations.
As a side note the citied listed on the weather widget are located in the /data/data/com.htc.provider.weather/databases/weather.db. When you have them the way you want copy that and WP_0409WWE.db to a safe location on your SD Card. When you load a new ROM, copy them to their respective locations, and your weather is set.
For the cooks in the audience, the database is located in the system/etc/WPDB.zip file. It is a multi language file and you can safely remove the languages you don't need.
The database location for ICS and Jellybean has changed to system/app/WeatherProvider.apk.
If this has helped you clicking the thanks button is appreciated.
Thanks dude, I will try this out. The city where I live in (small burb of H-town) is not in HTC db and this may come handy!
Glad you find this useful. Hopefully I got all the directions down if not just ask. When I get enough posts I'll try to add the download links.
I think it will be interesting to start a project about creating a huge list of cities of the world. Otherwise, it is possible to create several list for each country or continent because of the huge number of cities available in the world
Re: Weather location database
Hi!
Thanks a bundle. Tried your suggested approach.
Don´t know if this is an issue with all devices running anything else than english.
For the sake of detail i probably should mention that my device is a Desire HD.
However both are Android devices & since the guide originated here i´ll put this post here instead of starting a similar thread on the same topic elsewhere.
Anyway: As you can see on the attached screen dump I found 2 databases. BlablaWWE.db & a language specific version. I tried editing the WWE-base only but that resulted in a force closure of the weather App.
I had to edit both databases to match in order to acheive the desired result.
Regards
ELO
Can this be done on hero?
Polar67 said:
Hi!
Thanks a bundle. Tried your suggested approach.
Don´t know if this is an issue with all devices running anything else than english.
For the sake of detail i probably should mention that my device is a Desire HD.
However both are Android devices & since the guide originated here i´ll put this post here instead of starting a similar thread on the same topic elsewhere.
Anyway: As you can see on the attached screen dump I found 2 databases. BlablaWWE.db & a language specific version. I tried editing the WWE-base only but that resulted in a force closure of the weather App.
I had to edit both databases to match in order to acheive the desired result.
Regards
ELO
Click to expand...
Click to collapse
Hi Polar
Thanks for the find about editing the other language file. My rom is english only so I didn't see the othe laguage files. I would like to add you findings to the first post if you don't mind.
Did you use the programs for moving and editing the files from the first post or did you use something else that would make the proccess easier? It would be nice to have this as staight forword as possible.
Hotrod
appsmotocliq said:
Can this be done on hero?
Click to expand...
Click to collapse
Appsmotocliq
If you are using a sense rom backup your data file and give it a try.
Hotrod
Fightspit said:
I think it will be interesting to start a project about creating a huge list of cities of the world. Otherwise, it is possible to create several list for each country or continent because of the huge number of cities available in the world
Click to expand...
Click to collapse
Fightspit
A datadase of all locations would be handy but rather large. If it were broken down into each counrty or even states it might be easier to handle. If anyone would like to take this on that would be great.
Hotrod
If you're not seeing your city's code but rather something like this accuweather.com/.../quick-look.aspx in the browser bar you can use accuweather.com/rss-center.asp instead.
Sorry for the broken link but I'm not permitted to post links as a newbie and I had to find a way around. ;-)
Re: Weather location database
Hotrod68 said:
Hi Polar
Thanks for the find about editing the other language file. My rom is english only so I didn't see the othe laguage files. I would like to add you findings to the first post if you don't mind.
Did you use the programs for moving and editing the files from the first post or did you use something else that would make the proccess easier? It would be nice to have this as staight forword as possible.
Hotrod
Click to expand...
Click to collapse
Hotrod you are more than welcome to make any changes to the guide as you see fit.
Regarding the modus operandi i ended up using:
1: Navigate to /data/data/com.htc.provider.weather/files
2: Backup original databases to secure location.
3: Open any and all databases subsequently directly from Root Explorer into SQlite editor
4: Find location near what i want to add & clone.
5: Edit clone to fit my new location.
6: Save -> Reboot -> Done.
Afterwards sqlite_sequence will now read one entry higher than before.
In the case of a foreign languaged rom i´ll hazard a guess that it´s probably necessary to keep the same entry ID´s across both bases i.e. for example Nanortalik being ID# 3631 in both bases. I can´t be sure but if HTC weather App uses ID numbers for anything at all we´ll most likely get a botched result if ID´s vary across bases.
The attached screen dump shows my result.
I pretty much only did things this way because i had the "ingredients" ready at hand, that is Root Explorer & SQlite editor from the market. I dont´t think it´s any easier, but it can be done "on the fly" without a computer.
Regards
ELO.
Polar67 said:
Hotrod you are more than welcome to make any changes to the guide as you see fit.
Regarding the modus operandi i ended up using:
1: Navigate to /data/data/com.htc.provider.weather/files
2: Backup original databases to secure location.
3: Open any and all databases subsequently directly from Root Explorer into SQlite editor
4: Find location near what i want to add & clone.
5: Edit clone to fit my new location.
6: Save -> Reboot -> Done.
Afterwards sqlite_sequence will now read one entry higher than before.
In the case of a foreign languaged rom i´ll hazard a guess that it´s probably necessary to keep the same entry ID´s across both bases i.e. for example Nanortalik being ID# 3631 in both bases. I can´t be sure but if HTC weather App uses ID numbers for anything at all we´ll most likely get a botched result if ID´s vary across bases.
The attached screen dump shows my result.
I pretty much only did things this way because i had the "ingredients" ready at hand, that is Root Explorer & SQlite editor from the market. I dont´t think it´s any easier, but it can be done "on the fly" without a computer.
Regards
ELO.
Click to expand...
Click to collapse
Polar67,
Just tired your method for editing the database and found it is very easy and no computer needed. Found I could use SQlite editor from the market and let it find databases then scroll down to Weather Provider listing, select that, open the WP_0409WWE.db file, select location list and edit as usual. As you say, if you have a different language file edit it also. Save, reboot and select your new locations in the weather panel.
Thanks for the suggestion, didn't think of that method.
Hotrod68
Where are the information ?? HTC HD2 - Imilka Ram Desire HD Rooted
Dear Hotrod68,
This thread is really a savior, but something is causing me some confusion,
My HTC Weather Widget shows only Egypt !!! and never shows Cairo?!!
I have an HTC HD2 with the following ROM installed,
imilka's RAM Desire HD v1.0 (Rooted)
http://forum.xda-developers.com/showthread.php?t=954369
I have followed the all steps, you mentioned on first post, except for the copying files program, I'm planning to use the conventional method.
Copied the WP_0409WWE.db file to my computer,
Opened it by SQLite
To my surprise, my country and even my city were listed on the db ??!!
That's Cairo, Egypt. please refer to image below.
How to proceed? What to do?
One more strange and weired thing,
On the image below you'll notice that my location is shown precisely, to district level, on News & Weather Widget (By The Weather Channel) ???!!!
this is Heliopolis.
On AccuWeather web page I couldn't find the information to fill in the cells?
Help, advice will be very appreciated.
adazamim said:
Dear Hotrod68,
This thread is really a savior, but something is causing me some confusion,
My HTC Weather Widget shows only Egypt !!! and never shows Cairo?!!
I have an HTC HD2 with the following ROM installed,
imilka's RAM Desire HD v1.0 (Rooted)
http://forum.xda-developers.com/showthread.php?t=954369
I have followed the all steps, you mentioned on first post, except for the copying files program, I'm planning to use the conventional method.
Copied the WP_0409WWE.db file to my computer,
Opened it by SQLite
To my surprise, my country and even my city were listed on the db ??!!
That's Cairo, Egypt. please refer to image below.
How to proceed? What to do?
One more strange and weired thing,
On the image below you'll notice that my location is shown precisely, to district level, on News & Weather Widget (By The Weather Channel) ???!!!
this is Heliopolis.
On AccuWeather web page I couldn't find the information to fill in the cells?
Help, advice will be very appreciated.
Click to expand...
Click to collapse
Hi Ahmed,
SOrry you're having trouble. Could you upload your WP_0409WWE.db file. It looks different than mine and I'd like to see why. It looks like you are using English on your phone. If not Polar67 found there should be a language specific file in the same location as the WP_0409WWE.db file that needs to be modified If it is there could you upload that file also.
Accuweather has a listing for your location, AFR|EG|EG011|Heliopolis, if you want to try putting that into your database. To show your location name put Heliopolis in the cell to the left of Egypt in the database.
Hope this helps, Jon
Hotrod68 said:
Hi Ahmed,
SOrry you're having trouble. Could you upload your WP_0409WWE.db file. It looks different than mine and I'd like to see why. It looks like you are using English on your phone. If not Polar67 found there should be a language specific file in the same location as the WP_0409WWE.db file that needs to be modified If it is there could you upload that file also.
Accuweather has a listing for your location, AFR|EG|EG011|Heliopolis, if you want to try putting that into your database. To show your location name put Heliopolis in the cell to the left of Egypt in the database.
Hope this helps, Jon
Click to expand...
Click to collapse
Hi there Hotrod,
Find attached the WP_0409WWE.db file on my phone,
And no, there is no other local version on the same directory.
I really appreciate your response, and will be looking forward to having your feedback regarding the db file attached.
Thanx a million dear friend.
Note: To open the file, rename it to (.db) extension.
I had to change the extension to comply with xda file types
I use a Sprint Evo in Dallas, Texas and have had Cairo, Egypt in my weather list for several months, and it works. (I had wanted to take a tour to see the pyramids, but I won't do it now!)
My database is also English (WP_0409WWE.db), and my Cairo entry looks exactly like yours, it is even entry #78 like yours. Maybe you should just restore the original database to see if it works.
Does "My Location" t work in Egypt to see where the phone thinks it is?
Ahmed,
I've added Heliopolis to the database. See if this works for you.
Jon
JimSmith94 said:
I use a Sprint Evo in Dallas, Texas and have had Cairo, Egypt in my weather list for several months, and it works. (I had wanted to take a tour to see the pyramids, but I won't do it now!)
My database is also English (WP_0409WWE.db), and my Cairo entry looks exactly like yours, it is even entry #78 like yours. Maybe you should just restore the original database to see if it works.
Does "My Location" t work in Egypt to see where the phone thinks it is?
Click to expand...
Click to collapse
Dear Jim,
Thank you for your reply,
You're surely welcome to Egypt and we'll be happy to have you
I have downloaded AccuWeather.com application from the Market.
Check image below, and you'll find that the application has determined my location upto district accuracy (That's Madinat an Nasr (Nasr City), Home now)
On my previous post, the Weather Channel Widget has, also, been able to determine my location upto district accuracy (That was Heliopolis, Work)
Weired that the HTC Weather-Clock widget doesn't show but EGYPT.
I can add Cairo, as a city,
But the widget still gives Egypt whenever I choose "Current Location"
I have added both "Heliopolis" and "Madinat an Nasr" to the database,
Now I can choose them like cities, but they never show up if I choose "Current Location"
So,the phone knows where it is !!! But the HTC Weather Widget knows only the country !!!!!!!!!
Pictures attached shows weather widgets (AccuWeather + TheWeatherChannel)
These two, show correct location and temperature !!!!!!!!!
I'd die to have HTC weather widget showing my precise location.
EDIT:
Thank you HotRod, never worked
That sounds like more of a GPS problem. I'm pretty sure that's how the phone knows where it is.
Do any other location apps work, like Google maps, other weather or navigation programs work?
JimSmith94 said:
That sounds like more of a GPS problem. I'm pretty sure that's how the phone knows where it is.
Do any other location apps work, like Google maps, other weather or navigation programs work?
Click to expand...
Click to collapse
Hi Jim,
All work like treat except for this specific widget.
Thank you.
Sent from my HTC HD2 using XDA App

Categories

Resources