PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Android > Android HTC Devices > HTC Evo 4G > HTC Evo 4G Themes/Mods
Register Community Search

Notices


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-11-2010, 08:35 PM
chris1683's Avatar
VIP Member
Offline
Pocket PC: EVO 4G
Carrier: Sprint
 
Join Date: Nov 2008
Posts: 1,077
Reputation: 6650
chris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the community
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
[GUIDE] Add custom city to HTC Sense Weather

This is a how-to guide which will explain how to add your own custom city to the HTC Sense Weather application. I HIGHLY recommend having Root Explorer or another file explorer capable of copy/pasting/deleting files from the system memory although you should be able to use ADB commands if necessary.

1. Download SQLite Database Browser and unzip the folder to your desktop

2. On your phone, using either Root Explorer (Downloadable in Market) or ADB, copy/or pull the file WPDB.zip from /system/etc and place it on your desktop. (This file contains all weather databases for all languages)

3. Unzip the WPDB.zip file on your desktop and you will see several database files contained inside. The one we want to edit is WP_0409WWE

4. Inside of the SQLite folder, open SQLite Database Browser 2.0 b1


5. On the top of the window, click the open folder and open the WP_0409WWE from within the WPDB.zip folder you unzipped


6. Click on the "Browse Data" Tab

7. Click "Table:" and then on the drop down menu next to it select "locationlist" and it will populate all of your locations below


8. To add your location, go to www.accuweather.com and type in your local city and get the weather. What we are after is how Accuweather has the name spelled out in the web address. Here is an example of Seaside Heights, NJ for allof you first pumpers: http://www.accuweather.com/us/nj/seaside-heights/08751/city-weather-forecast.asp

9. Now in SQLite, on the top right, select "New Record"

10. You will now have an empty line at the bottom where we will enter our new location data. Double-click on the empty box under the "code" column and enter text in this format: NAM|US|<state>|<city> So, for example, NAM|US|NJ|SEASIDE-HEIGHTS (These will be ALL CAPS with no spaces or line breaks after the block of text (you can have spaces in the city name)


**Extremely Important** The city name you enter in the "code" column MUST be how it shows in the accuweather web adress.

11. Under the "name" column, put the desired city name without any spaces or line breaks after the block of text. Example would be "Seaside Heights"

12. Under the "state" column, put the state abbreviation, Example, "NJ"

13. Under the "timezone" column, the values are 300, 360, 420, or 480, depending on what your timezone is:

Eastern time - 300
Central time - 360
Mountain time - 420
Pacific time - 480

14. Under the "timezoneld" column, put either "America/New_York", "America/Chicago", "America/Denver", or "America/Los_Angeles" in, again, depending on the timezone you live in:

Eastern time - America/New_York
Central time - America/Chicago
Mountain time - America/Denver
Pacific time - America/Los_Angeles

15. Once you are finished adding locations, Go to "File" and "Save Database"

16. In the WPDB.zip folder, select all files and repack them into a .zip folder named WPDB.zip.

17. Paste/Push this file back into /system/etc (If you are using Root Explorer, remount the system in read/write mode to delete the old file)

18. Reboot your phone and you should now be able to add your custom cities within the weather app

**If you have any problem after rebooting, go to Settings>Applications>Manage Applications>Running>Weather Provider and "Clear Data" Then go into the Weather app and add your cities.
__________________
Donations are always appreciated!

Last edited by chris1683; 09-12-2010 at 08:55 AM.
Reply With Quote
This post has been thanked 12 times.
  #2 (permalink)  
Old 09-11-2010, 09:10 PM
DarkLord's Avatar
VIP Member
Offline
Pocket PC: Samsung Galaxy SIII
Carrier: Straight Talk
Location: FL
 
Join Date: May 2007
Posts: 2,288
Reputation: 2545
DarkLord is a VIPDarkLord is a VIPDarkLord is a VIPDarkLord is a VIPDarkLord is a VIPDarkLord is a VIPDarkLord is a VIPDarkLord is a VIPDarkLord is a VIPDarkLord is a VIPDarkLord is a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [GUIDE] Add your custom city to HTC Sense Weather on your EVO 4G!

nice write up. i've been wondering about this. i'm lazy tho so im thinking i will just wait until someone comes out with a file of all us cities like they had for the tp2. lol
__________________
This has been a public service message from your friendly, neighborhood DarkLord.

-MightyMike was here.... true story!
Reply With Quote
  #3 (permalink)  
Old 09-11-2010, 10:01 PM
chris1683's Avatar
VIP Member
Offline
Pocket PC: EVO 4G
Carrier: Sprint
Threadstarter
 
Join Date: Nov 2008
Posts: 1,077
Reputation: 6650
chris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the community
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [GUIDE] Add your custom city to HTC Sense Weather on your EVO 4G!

Quote:
Originally Posted by DarkLord View Post
nice write up. i've been wondering about this. i'm lazy tho so im thinking i will just wait until someone comes out with a file of all us cities like they had for the tp2. lol
Working on it as we speak
Reply With Quote
This post has been thanked 1 times.
  #4 (permalink)  
Old 09-11-2010, 10:09 PM
DarkLord's Avatar
VIP Member
Offline
Pocket PC: Samsung Galaxy SIII
Carrier: Straight Talk
Location: FL
 
Join Date: May 2007
Posts: 2,288
Reputation: 2545
DarkLord is a VIPDarkLord is a VIPDarkLord is a VIPDarkLord is a VIPDarkLord is a VIPDarkLord is a VIPDarkLord is a VIPDarkLord is a VIPDarkLord is a VIPDarkLord is a VIPDarkLord is a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [GUIDE] Add your custom city to HTC Sense Weather on your EVO 4G!

Quote:
Originally Posted by chris1683 View Post
Working on it as we speak
nice. let me know. it may be worth writing an article about to call folks attention to it. it's something that we've had with winmo phones but not with our evos yet.
Reply With Quote
  #5 (permalink)  
Old 09-11-2010, 10:24 PM
chris1683's Avatar
VIP Member
Offline
Pocket PC: EVO 4G
Carrier: Sprint
Threadstarter
 
Join Date: Nov 2008
Posts: 1,077
Reputation: 6650
chris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the community
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [GUIDE] Add your custom city to HTC Sense Weather on your EVO 4G!

Quote:
Originally Posted by DarkLord View Post
nice. let me know. it may be worth writing an article about to call folks attention to it. it's something that we've had with winmo phones but not with our evos yet.
Trick is that the old file for Windows Mobile which had all of the databases for the US do not all contain the "code" table in the format we need.
Reply With Quote
  #6 (permalink)  
Old 09-11-2010, 10:50 PM
DarkLord's Avatar
VIP Member
Offline
Pocket PC: Samsung Galaxy SIII
Carrier: Straight Talk
Location: FL
 
Join Date: May 2007
Posts: 2,288
Reputation: 2545
DarkLord is a VIPDarkLord is a VIPDarkLord is a VIPDarkLord is a VIPDarkLord is a VIPDarkLord is a VIPDarkLord is a VIPDarkLord is a VIPDarkLord is a VIPDarkLord is a VIPDarkLord is a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [GUIDE] Add your custom city to HTC Sense Weather on your EVO 4G!

Quote:
Originally Posted by chris1683 View Post
Trick is that the old file for Windows Mobile which had all of the databases for the US do not all contain the "code" table in the format we need.
that sucks.
Reply With Quote
  #7 (permalink)  
Old 09-11-2010, 10:54 PM
chris1683's Avatar
VIP Member
Offline
Pocket PC: EVO 4G
Carrier: Sprint
Threadstarter
 
Join Date: Nov 2008
Posts: 1,077
Reputation: 6650
chris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the communitychris1683 is a trusted member of the community
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [GUIDE] Add your custom city to HTC Sense Weather on your EVO 4G!

Quote:
Originally Posted by DarkLord View Post
that sucks.
May have found something that will work...I will do some testing
Reply With Quote
This post has been thanked 1 times.
  #8 (permalink)  
Old 09-11-2010, 11:32 PM
Karl's Avatar
N00b
Offline
Pocket PC: HTC One M8
Carrier: Verizon
Location: Bakersfield,CA
 
Join Date: Nov 2009
Posts: 2,750
Reputation: 3545
Karl is still contributing even after becoming a VIPKarl is still contributing even after becoming a VIPKarl is still contributing even after becoming a VIPKarl is still contributing even after becoming a VIPKarl is still contributing even after becoming a VIPKarl is still contributing even after becoming a VIPKarl is still contributing even after becoming a VIPKarl is still contributing even after becoming a VIPKarl is still contributing even after becoming a VIPKarl is still contributing even after becoming a VIPKarl is still contributing even after becoming a VIP
Mentioned: 8 Post(s)
Tagged: 0 Thread(s)
Send a message via MSN to Karl Send a message via Yahoo to Karl Send a message via Skype™ to Karl
Re: [GUIDE] Add custom city to HTC Sense Weather | Attached file w/all US cities incl

Right on think we need to buy you some beer
__________________

"That which can be asserted without evidence, can be dismissed without evidence."

Reply With Quote
  #9 (permalink)  
Old 09-12-2010, 02:08 AM
kevmo1965's Avatar
Halfway to VIP Status
Offline
Pocket PC: EVO 4G
Carrier: Sprint EVRP
Location: Victorville, CA
 
Join Date: Jul 2007
Posts: 531
Reputation: 730
kevmo1965 knows their stuffkevmo1965 knows their stuffkevmo1965 knows their stuffkevmo1965 knows their stuffkevmo1965 knows their stuffkevmo1965 knows their stuffkevmo1965 knows their stuff
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Send a message via MSN to kevmo1965
Wirelessly posted (Mozilla/5.0 (Linux; U; Android 2.2; en-us; Sprint APA9292KT Build/FRF91) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1)

I asked this months ago. Great work. Will leave thanks when I get to my computer. ( I hate that certain functionality doesn't exist with the mobile version).
__________________
Hit THANKS if I helped or made ya laugh!


Reply With Quote
  #10 (permalink)  
Old 09-12-2010, 08:08 AM
DarkLord's Avatar
VIP Member
Offline
Pocket PC: Samsung Galaxy SIII
Carrier: Straight Talk
Location: FL
 
Join Date: May 2007
Posts: 2,288
Reputation: 2545
DarkLord is a VIPDarkLord is a VIPDarkLord is a VIPDarkLord is a VIPDarkLord is a VIPDarkLord is a VIPDarkLord is a VIPDarkLord is a VIPDarkLord is a VIPDarkLord is a VIPDarkLord is a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [GUIDE] Add custom city to HTC Sense Weather | Attached file w/all US cities incl

I'm up early this morning and I noticed the title of the thread has changed. Nice! Only one question. Where is the file?
Reply With Quote
Reply

  PPCGeeks > Android > Android HTC Devices > HTC Evo 4G > HTC Evo 4G Themes/Mods


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 01:14 AM.


Powered by vBulletin® ©2000 - 2024, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com