This is a tutorial on how to add custom locations to the Sense Weather app!
Step by step, pretty easy:
1. Download SQLite Database Browser (works with all OS')
2. Pull the following file off your phone (easiest way is using adb): /data/data/com.htc.provider.weather/files/WP_0409WWE.db
3. Open the db file in SQLite Browser.
4. Click on the "Browse Data" tab.
5. Next to "Table:" choose "locationlist"
6. Click on "New Record" on the top right, it should automatically create a blank one at the end of the list.
7. Double-click on the empty box under "code" and enter text in this format: NAM|US|<state>|<city> So, for example, NAM|US|NY|NEW YORK CITY (no spaces or line breaks after the block of text (you can have spaces in the city name))
8. Under "name", put the desired city name, such as "New York City" without any spaces or line breaks after the block of text.
9. Under "state", put the state name, such as "NY" in the same format as "name"
10. Under "timezone", put either 300, 360, 420, or 480 in, depending on what your timezone is:
Eastern time - 300
Central time - 360
Mountain time - 420
Pacific time - 480
11. Under "timezoneld", 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
That's it! Save it, push it back to /data/data/com.htc.provider.weather/files then reboot and you should be able to search for your town!
Special thanks to the guys who figured this out first (I don't remember your names, but thank you! )
Nicely done. But I needed more. So I wrote a script that pulled the entire AccuWeather.com list of US cities and then pushed it into the db(about 40k). It does seem to make searching for cities a bit slower, but it now has everything in the US.
By the way, I'm not sure if the timezone data matters much, so for now I just made everything Los Angeles.
dhalem said:
Nicely done. But I needed more. So I wrote a script that pulled the entire AccuWeather.com list of US cities and then pushed it into the db(about 40k). It does seem to make searching for cities a bit slower, but it now has everything in the US.
Click to expand...
Click to collapse
How much slower will this data be. Is it noticeable?
dhalem said:
Nicely done. But I needed more. So I wrote a script that pulled the entire AccuWeather.com list of US cities and then pushed it into the db(about 40k). It does seem to make searching for cities a bit slower, but it now has everything in the US.
By the way, I'm not sure if the timezone data matters much, so for now I just made everything Los Angeles.
Click to expand...
Click to collapse
It does matter, my auto-time is defaulting to GMT -7 (Los Angeles)
Berzerker7 said:
It does matter, my auto-time is defaulting to GMT -7 (Los Angeles)
Click to expand...
Click to collapse
Interesting. In the weather app or elsewhere? I'll have to make the script smarter then.
Thanks for this I've been looking for this forever. Now I just need to figure out how to stop the weather app from always geolocating.
Sent from my ADR6300 using XDA App
dhalem said:
Interesting. In the weather app or elsewhere? I'll have to make the script smarter then.
Click to expand...
Click to collapse
I'm in the EST timezone and my calender events were off by 3 hours after changing the database file.
It forces GMT -7 when setting the date/time to "automatic." But even if I set it to manual and use the correct timezone, the clock/weather widget always uses the GMT -7 timezone.
Not to sound ungrateful to dhalem, but what is the point of loading all the cities for the average user?
It is much easier to follow the first post and add what is missing for you. For example, I added my work and home because it always defaulted to "Current Location".
I only say this because the difference in file size is a big jump.
UndergroundWire said:
Not to sound ungrateful to dhalem, but what is the point of loading all the cities for the average user?
It is much easier to follow the first post and add what is missing for you. For example, I added my work and home because it always defaulted to "Current Location".
I only say this because the difference in file size is a big jump.
Click to expand...
Click to collapse
Because to me, adding them one at a time is a pain. And the database they ship is so sparse that it's unlikely to have what you want.
dhalem said:
Because to me, adding them one at a time is a pain. And the database they ship is so sparse that it's unlikely to have what you want.
Click to expand...
Click to collapse
I think you are misunderstanding me. What I mean is every user just adds what is missing. I was missing my work location and home location. They were showing up as "Current Location" rather than my city. I only had to add two instead of every US City.
The directions were straight forward. It was very easy to add the two that I needed.
Possibly silly question...
Anyone know the format of the Latitude and Longitude?
Is it the same as Google Maps? i.e. Decimal format: 40.7864, -73.9663 for midtown Manhattan?
Thanks!
Original Database
Anyone have a copy of the original database....
thanks
This should be the default one. I'm running the evo framework frankenbuild, if that matters (should be the same DB though).
UndergroundWire said:
I think you are misunderstanding me. What I mean is every user just adds what is missing. I was missing my work location and home location. They were showing up as "Current Location" rather than my city. I only had to add two instead of every US City.
The directions were straight forward. It was very easy to add the two that I needed.
Click to expand...
Click to collapse
Yeah, but I also like to be able to look at weather in cities I'm travelling to soon, cities where my family lives, etc.
I'm cooking a new version with correct timezones now.
Great - thanks
heffe2001 said:
This should be the default one. I'm running the evo framework frankenbuild, if that matters (should be the same DB though).
Click to expand...
Click to collapse
Maybe I'm being blind or am just out of my depth wrt this, but I'm not finding the file on my EU HTC Desire running 2.2.
Granted I'm using ASTRO to try and find the file & I don't have root on the device. The mentioned data directory is just empty (although I guess files/folders may be hidden).
All help appreciated.
Adding Long/Lat isn't necessary. You don't really need to worry about it.
Thanks!
Sent from my ADR6300 using XDA App
This is gonna seem like a stupid question, but I am guessing that everyone trying to do this is rooted?
Related
Hi I was wondering if anyone knew of an app that basically makes entering new appointments easier/quicker. Not that it's that difficult or slow now. I just think it could be faster. Example:
Launch app and immediately it has a large text box asking for the Subject. Type subject hit next it then shows a large month view of the current month. Select day/date click next it then has a large box to type in or choose the time. Choose time click done. That's it.
The current way is not bad it's just sometimes it's hard to pinpoint the time dropdown and date dropdowns, I'll accidentally click the wrong dates or times a lot. And if I try to use my dpad on the Diamond forget about it. That dpad is horrible.
This of course would be for simple non elaborate appointments. Not recurring or custom ones. Most of the time I'm always trying to enter in a new appt before I forget and usually while I'm in the middle of something.
Thanks in advance for any info. It seems like this wouldn't be too hard to make. basically take all the info entered then inject it into the calendar as a new appt. No?
I use Pocket Informant, it works very good for me. When you tap the time box, a large set of numbers pop up and you just choose the nubers in order, and the date uses a calendar. Not completely finger-friendly, but it is much better than the default, and it's a great app to begin with.
Or, use ThumbCal.
TheChampJT said:
I use Pocket Informant, it works very good for me. When you tap the time box, a large set of numbers pop up and you just choose the nubers in order, and the date uses a calendar. Not completely finger-friendly, but it is much better than the default, and it's a great app to begin with.
Or, use ThumbCal.
Click to expand...
Click to collapse
Yeah, I'd like to not use a calendar replacement though. Just a lite little app that only runs when I bring it up then ends when finished.
Thread will be moved to Q&A
Not sure if this is the correct place to ask this or not but hey ho! Here goes...
I've been playing around with Tasker and I've been wondering: is there a way to get it to perform an action based on your location when location is NOT used as a context?
E.g. Date and time are set as context, so it will check my location on a monday at 10am (instead of all the time - thus saving battery) and then depending on where I am will adjust my profiles accordingly?
It seems to me it should be possible but I can't figure out how to do it.
Sent from my X10i using XDA App
SunjinSak said:
Not sure if this is the correct place to ask this or not but hey ho! Here goes...
I've been playing around with Tasker and I've been wondering: is there a way to get it to perform an action based on your location when location is NOT used as a context?
E.g. Date and time are set as context, so it will check my location on a monday at 10am (instead of all the time - thus saving battery) and then depending on where I am will adjust my profiles accordingly?
It seems to me it should be possible but I can't figure out how to do it.
Sent from my X10i using XDA App
Click to expand...
Click to collapse
Try this:
1st pick date n time context.
2nd On Misc Action select Get Location.
Or
1st create a Profile Context/Location - Name it as "Get Location"
2nd create new profile Context/Time & Date/
3rd On Tasker Action/Profile Status and give Get Location profile to activate and deactivate options as you wants.
What you are looking for can definitely workout from tasker. Give it a try.
Ps: I haven't tested above methods
Shiwantha said:
Try this:
1st pick date n time context.
2nd On Misc Action select Get Location.
Or
1st create a Profile Context/Location - Name it as "Get Location"
2nd create new profile Context/Time & Date/
3rd On Tasker Action/Profile Status and give Get Location profile to activate and deactivate options as you wants.
What you are looking for can definitely workout from tasker. Give it a try.
Ps: I haven't tested above methods
Click to expand...
Click to collapse
Hey, thanks for the reply.
The first method you mention I've already tried. I can get a location fix at a certain time/date but then I can't figure out how to get Tasker to perform a specific action based on the result from the location fix (namely changing my settings accordingly).
The only way I can do it is by using location as a context - which just drains battery :-(
I'm not sure what you mean by your 2nd suggestion. Sorry. Can you clarify?
Thanks for your help so far.
Sent from my X10i using XDA App
In Tasker, you can use some system variables. I believe one of them gives you the longitude and latitude found by the GPS. I believe it's %LOC that gives you the Long and Lat together.
Since you said you can get a a GPS location fix at a certain time, then you can use the variables for Long and Lat to do something based on the Long and Lat matching a location you want.
Does that work?
pally777 said:
In Tasker, you can use some system variables. I believe one of them gives you the longitude and latitude found by the GPS. I believe it's %LOC that gives you the Long and Lat together.
Since you said you can get a a GPS location fix at a certain time, then you can use the variables for Long and Lat to do something based on the Long and Lat matching a location you want.
Does that work?
Click to expand...
Click to collapse
I see. But how would I specify a radius in this way? Something like 300m?
Sent from my X10i using XDA App
A Calendar Event Inserter similar to Google calendar's Quick Add feature.
By roee88 & danny88.
The end of filling out complicated forms!
Add events to your calendar as quickly as possible by taking advantage of advanced native language processing.
This powerful tool allows you to insert complicated event that include advanced parameters such as recurring factors, location, duration and much more.
Just start typing or speaking, let us do the rest...
Usage Examples:
Family dinner @Mom's every Sunday at 7pm
Meeting with Joe tomorrow at 9
Buy milk @5pm. reminder 30 minutes
Test from Monday to Friday
Another test from mon until fri
Play basketball w/ Mark 10/10 weekly
In case you want learn more about how to use this app and Google's quickadd feature, just log on to http://www.google.com/support/calendar/bin/answer.py?answer=36604
Notes
Designed for English and Hebrew languages only. In case you use any other language you may use the @ symbol as a replacement for "at" for both location and time, and use numeric dates like 10/11.
To change date format go to your phone's Settings -> Date & time settings -> Select date format.
This application is part of Android Pro Widgets and is available for free as a stand alone application (Android Pro Widgets is also free).
Download
* You can also search "apw" on the market to find this application.
nice job
Works great!!! easy to use! I recommend downloading it.
Looks great! will it be available as a widget too?
how about multilanguage support?
Thanks in advance, keep up the good work.
looks great, now all i need is landscape version of this thing. so awierd to type whit landscape qwerty slider...
Nice, thank you!
By the way: What calendar widget are you using on the first screenshot? I don't recognize it. It isn't from LauncherPro, isn't it? Thanks!
Thank you this works really well , brilliant . A+
Awesome app
Do u have plans to translate to other languages, if wanna, can help in translation to catalan/spanish.
The app is awesome!
roee88 said:
Download
* You can also search "apw" on the market to find this application.
Click to expand...
Click to collapse
This is a great tool!
Whippler
We'll see what can be done for that, thanks.
HellbillyDeluxe
This is part of our other application, Android Pro Widgets, you can find it on market by searching for apw.
hamsterkiller & ExcaliberX
Supporting more languages is an extremely challenging task as simple translation just won't work. We will try to implement it on a future release.
Once we start working on that, any help would be much appreciated.
the next release will focus on adding other features suggested by users.
- [DONE] Add voice recognition
- [DONE] Remember last calendar used.
- Better support for landscape mode.
HellbillyDeluxe said:
Nice, thank you!
By the way: What calendar widget are you using on the first screenshot? I don't recognize it. It isn't from LauncherPro, isn't it? Thanks!
Click to expand...
Click to collapse
Im pretty sure thats what it is. If not the one in LP looks exactly like it
bls2633 said:
Im pretty sure thats what it is. If not the one in LP looks exactly like it
Click to expand...
Click to collapse
no, it the brand new Android Pro Widget by Dr. Appche
Awesome app! One thing i did notice is that if you are typing and accidently turn the phone to landscape, it makes the app just disappear..
rcrott1
We already fixed that for the next release, thanks.
roee88 said:
rcrott1
We already fixed that for the next release, thanks.
Click to expand...
Click to collapse
Can you also look into the default reminder time when entering an event with this app. I think it's always 15 minutes even though I set it to 10 minutes in Android calendar app.
rcrott1 said:
Awesome app! One thing i did notice is that if you are typing and accidently turn the phone to landscape, it makes the app just disappear..
Click to expand...
Click to collapse
Thank you! we are thrilled that you enjoy our app.
If it no bother, please rate us\place a comment in Android Market
About the Landscape mode, the problem is fixed in our next version (that will be released in a couple of days\hours )
luffyp said:
Can you also look into the default reminder time when entering an event with this app. I think it's always 15 minutes even though I set it to 10 minutes in Android calendar app.
Click to expand...
Click to collapse
Unfortunately reminders are somewhat tricky and we have no access to the default reminder setting of the calendar application.
We will try to think of an elegant solution for future releases, but for now the default reminder is indeed 15 minutes.
For now you may click the Edit button instead of OK and immediately press back (we know, not the best solution..).
Android Pro Quick Event 1.0.2 released!
Here are recent changes:
- Fix: closed when changing orientation.
- Fix: Remembers the last used calendar.
- Feature: Speech recognition added.
my days are off by one
when i try to set up an event the day is off by one i say Friday and it puts Thursdays date in it? anyone else have this issue
griffen97023
Please let me know what is your timezone so I can try to reproduce it.
Edit: well I can see its Pacific.
As far as I can tell the bug is only in the display and only for full day events. Events are placed at the right day after you click OK or Edit.
I'm working on a fix right now and it will be included in the next release.
Thanks.
Thanks! + small bug (?) report
Hey, thanks for the awesome app, I hit that "thanks" button really hard
I think I'll get used to the way of typing in appointments like that quite quickly.
However, I already found something I believe to be a minor bug. Imagine the following scenario: Let's say I want to schedule a meeting at an office of someone called "George Atkinson": "Meeting @ Atkinson's office". No problem so far.
In Germany it is not uncommon for people to have multiple last names connected by a hyphen. Let's say his name is now "George Johnson-Atkinson". Now it would be: "Meeting @ Johnson-Atkinson's office". What happens is that apparently the hyphen changes something in the syntax so that after having typed "Johnson-A", as soon as I type the "t", the Location part will omit what I wrote before and say "tkinson's office" when I'm done typing everything. It probably has something to do with its recognizing the "At" in "Atkinson" as a command (yet, funnily enough, the "t" stays as the first letter in the Location field, which I wouldn't have expected if it was mistaken as part of a command!).
It can get even more confusing. Let's say I don't want it to say "Meeting @ Johnson-Atkinson's office", but rather "Meeting @ George Johnson-Atkinson's office" (i.e. adding the first name; to be more general: another word followed by a space). After having typed "Meeting @ George Johnson-", the hyphen "jumps" to the Title field again, leaving only "George Johnson" in the Location field. Completing the command will result in the Title field saying "Meeting -Atkinson's office" and the Location field saying "George Johnson". EDIT: I just tried it with "Meeting @ Atkinson-Johnson's office" and it gave me "Meeting -Johnson's office" --> Title and "George Atkinson" --> Location. So this "bug" doesn't seem to be associated with the "At". So I guess I accidently found two bugs which I thought to be a single one
I don't know if this is working as intended and only poses a problem with the German "double names". Nonetheless, I did actually and in reality run across this problem I hope my description wasn't too confusing.
Thanks in advance for looking into it!
Updated to 1.0.3
We just released version 1.0.3
Change log:
Many improvements in the parsing abilities.
Added an option for full screen mode.
Fixed timezone issues.
Fixed calendars detection for Motorola 2.2+ devices.
Added Settings to allow changing default reminder, duration and calendar provider.
tsrzealot
Try this version and let me know what you think.
I bought a Desire Z last September and have just now really gotten it how I like it. I'm quite satisfied so far. The Chinese dictionaries and translation helpers are really great. It's nice to use my phone for more than just SMS and puzzle games. However, I have been keeping a file where I wrote down every question I had as it occurred to me. Hopefully someone out there can shed some light on these issues. I'm sure other people ran into them as well.
System:
How many widgets is too many? When does the phone start slowing down? I know Elixir widget takes CPU, I see it when running top.
Where are all these push messages coming from, and how do I block them?
How do I create a shortcut to open a document (like my list of questions)? I don't see the option anywhere. Bookmarks yes, .doc file no.
Why the hell does 'phone' use so much internet? It's a phone! Or is it using VOIP or something?
What is 'HTC apps' and why does it use so much internet?
What's the best way to transfer files to a desktop without a cable? I tried Dropbox but it sucked.
This one slays me. I open file manager, navigate to a .doc file, and open it. Quickoffice does not show up in the taskbar, only file manager. Took me forever to figure out that I needed to select file manager to reopen Quickoffice. WTF.
Apps:
I need an SMS junk filter that accepts wildcards. I tried a couple, but they just supported white and blacklisting, not useful at all. China Telecom spams you from a different phone number every time, but it is a special number that doesn't look like a phone number.
I need a replacement for the HTC clock that doesn't flip! I checked out probably a dozen different clocks and they ALL used the same design of flipping the numbers. This is so irritating.
I need a program to show the state of tcp sockets.
Quickoffice sucks, I can't copy and paste. Kingsoft Office sucks, I can't use symbols. What else is out there for .doc?
Just how evil are dodgy market apps? When I download a popup ducky programme and it requests permissions it obviously does not need, what does that mean exactly? What do evil apps actually do?
system
1 hard to tell, just feel it.
2 in the settings of the app you can block them, you mean like twitter notifications right? just go to the settings of twitter and turn it off.
3 with a standard rom, i don't think that is possible (correct me if i'm wrong)
4 widgets use internet to get the latest information, also the phone checks for updates on apps and for your system.
5 no idea
6 for big files, just use the cable. or try a network app.
7 that's weird, just hold the home butten and open quickoffice.
apps
don't know
correct me if i'm wrong totally xd
luukgr said:
2 in the settings of the app you can block them, you mean like twitter notifications right? just go to the settings of twitter and turn it off.
Click to expand...
Click to collapse
No, I mean push messages from my telecom provider. Not from any software (that I installed, anyway).
"What is 'HTC apps' and why does it use so much internet?"
This will be things that came on the phone, including widgets, do you actively use the sense widgets, like the social one and the news? These may be using your data
[*]What's the best way to transfer files to a desktop without a cable? I tried Dropbox but it sucked.
Click to expand...
Click to collapse
ES File Explorer -> Share -> Gmail
Alternatively, AndFTP can connect if you have an FTP server running on your desktop.
[*]I need a replacement for the HTC clock that doesn't flip! I checked out probably a dozen different clocks and they ALL used the same design of flipping the numbers. This is so irritating.
Click to expand...
Click to collapse
Try GO Weather. As an added bonus, it'll tell you the weather. There are multiple themes.
[*]I need a program to show the state of tcp sockets.
Click to expand...
Click to collapse
Net Swiss Tool Free
[*]Quickoffice sucks, I can't copy and paste. Kingsoft Office sucks, I can't use symbols. What else is out there for .doc?
Click to expand...
Click to collapse
Polaris Office
a ftp connection, I forgot the name, yes that also good.
and for a clock/weather. Look for HD widgets also very nice.
push messages? what kind of messages? what's in it? very strange.
hmm polaris office, i will check that
nistco92 said:
Net Swiss Tool Free
Click to expand...
Click to collapse
Perfect! Thanks!
Polaris Office
Click to expand...
Click to collapse
This one isn't available for download in the Market. I found Documents To Go but it crashes when opening a document with Chinese characters. Come on guys, it's 2012, support Unicode! I guess Google Docs is the only remaining choice.
I need an SMS junk filter that accepts wildcards. I tried a couple, but they just supported white and blacklisting, not useful at all. China Telecom spams you from a different phone number every time, but it is a special number that doesn't look like a phone number.
I'm still hurting for this one. Today I must have gotten five spams, all starting with 10XXXXXXXXXXX. If I just had a wildcard filter the spam from my carrier would be cut off.
I'm pretty sure this hasn't been noticed yet so I'm gonna make this post. Let me know if others had similar experiences.
Anyways, I just noticed today after getting the Google Now update that GN has set a location into work, despite me not explicitly putting one in. I'm guessing this has something to do with the location reporting functionality. It probably noticed that I was in a certain location over X (which I'm guessing is 4) hours and determined that it was my work address since it wasn't my home address (which I think GN auto determined based on where I usually sleep). I think it might've done this before since it once set an internship location as my work location even though I didn't put it in. That internship lasted 4 hours once a week and my current schedule has me working for 5 hours a day 2 days a week, hence how I got my 4 hour estimate above. Anyone else notice something like this happening and any way to turn this helpful feature off, other than to disable location reporting. My schedule changes quarter to quarter and I'm pretty sure it might put one of my classes as a "work" location if I'm in that spot long enough.
Sent from my Nexus 4 using Tapatalk
stab244 said:
I'm pretty sure this hasn't been noticed yet so I'm gonna make this post. Let me know if others had similar experiences.
Click to expand...
Click to collapse
Actually Google knows each and everyone of us better than anyone would and nothing we do or did gets deleted but is safely stored for instance let me quote http://forum.xda-developers.com/showthread.php?t=2304348&page=8
silentvisitor said:
Profiling or citizen database in any way is/can be dangerous. Nobody can guarantee future.
Lets have a look at what all information does Google have about YOU through your Android phone :
YOUR NAME
01. Your picture
02. Your complete Contact list with pictures, e-mail ids, phone numbers, birthdays, etc.
03. Whom you met or gonna meet (Calendar) (Btw, there were digital and much powerful calendars way before Google Calendar e.g BlackBerry)
04. With whom you talked, when and how long (Call log) (Read Privacy Policy \ Log information )
05. Your family and other images (Picasa web albums) (Google+ auto-upload)
06. Your WiFi passwords (device backup)
07. Where you are located or went (location)
08. Which sites you visited (Android browser google login)
09. Which device/s you own.
10. Your files (Google drive) (no encryption) (Also Gmail attachments)
11. What you searched (Google search and Now)
12. Your pic (Chrome has Camera permissions) (everything can be used in two ways)
13. Your daily route (Google Now)
14. What you talked with someone through chat (GTalk) (its their servers, right)
15. Finally, your emails and its contents. Read this (I believe we will see many such things in near future as awareness increases)
Ever heard about NSA or PRISM
There is much more to it than meets the eye or this list.
Today, Google and Facebook (primarily Google) knows more about you than your own parents or spouse and that's frightening. If not today then tomorrow.
Click to expand...
Click to collapse
I understand that they have this data and I don't care for that too much. What I don't get us why it automatically set that location as work when it might not have been. Would be nice if they asked like "we notice you spend a lot of time at X. Would you like to set this as home/work" or something like that.
Sent from my Nexus 4 using Tapatalk
stab244 said:
I understand that they have this data and I don't care for that too much. What I don't get us why it automatically set that location as work when it might not have been. Would be nice if they asked like "we notice you spend a lot of time at X. Would you like to set this as home/work" or something like that.
Sent from my Nexus 4 using Tapatalk
Click to expand...
Click to collapse
yes that would be nice :laugh: guess they like to determine it for themselves based on their records. No harm in asking them, how they conclude things like that. Nexus is one of their brain child, so it may be the key to that conclusion.
Check this out! Links to useful Guides and " Banned " Documentaries
In fact, I strongly believe that all Google (or anyone) services should be Opt-In instead of current Opt-out (as I understand)
For example, when you attach primary Gmail account to your phone everything under Sync (Contact, Calendar, AppData, Pictures, etc) get selected. Instead Google should just present a list of the things that I want to select (Opt-In) like it does when you add another Gmail account to your device.