Tasker - GPS Auto off if no fix - Moto X Themes and Apps

I have a task that enables my GPS with a voice command when I get in my car.
The deal is that I want my GPS to automatically turn off if there is no fix in a certain amount of time.
Does any one have a profile with something like this?

Unless you're in the middle of a building, wouldn't your GPS generally always have a fix?
Couldn't you just add another voice command to turn it off?
Sent from my XT1053 using xda premium

chrstndsgnr said:
Unless you're in the middle of a building, wouldn't your GPS generally always have a fix?
Couldn't you just add another voice command to turn it off?
Sent from my XT1053 using xda premium
Click to expand...
Click to collapse
That is exactly what I want....when I park my car and get in the building, I want my GPS to turn off without any command.

alemonte said:
That is exactly what I want....when I park my car and get in the building, I want my GPS to turn off without any command.
Click to expand...
Click to collapse
https://www.dropbox.com/s/wrytlxljate6q9z/Navigation.prf.xml
Not exactly what you want, but you can try this. Open Maps to turn on gps and close it to turn off. Once you reach your destination simply close the maps app and gps will turn off automatically after 2 minutes. You can edit the list of apps as you see fit.

Related

[APP] Tasker

I use Tasker for automating a lot of redundant tasks on my phone. I figured I would post a couple I'm using with hope that others will share with me some stuff they use it for.
action: Docked.
Tasks done when docked: Bluetooth on, wifi off, gps on, auto brightness set off [if time < 1800, Display Brightness set to 255 if time < 1800, pandora set on.
exit tasks: Bluetooth off, auto brightness on if TIME < 1800, pandora set off, gps off.
Action open Application Maps/Nav or any gps app.
Tasks done: GPS on
exit tasks done: GPS off.
action: phone face down
Tasks done: airplane mode on if time < 2200, all sounds off except for alarm
exit tasks: airplane mode off, all sounds revert to previous settings.
these 3 i use, if you have any others let me know. If you need help with the program let me know too.
here is where you can grab tasker.
http://tasker.dinglisch.net/
Sounds something that I would definitly use. I beleive its a paid app, but still worth it. I'll look into it. Does it have settings for wifi e.g.- 1 touch WIFI on, because i'm using the stock wifi on/of toggle but I then have to go into wifi settings and actually see my phone connecting to my network in order for i to work and turn on.... ??????
Yeah there are settings for connecting to wifi. Mine does it automatically when I get home based on the gps. Works most of the time, had to turn it on manually a couple times because the gps wasn't on.
generic.imitation said:
Action open Application Maps/Nav or any gps app.
Tasks done: GPS on
exit tasks done: GPS off.
Click to expand...
Click to collapse
How do you set up an OR for the app launch context? I'm trying to get it to turn on GPS when I open Maps, Foursquare, Yelp, or Places, but it doesn't let me multi-select apps and if I add a context, Application isn't there.
Make it separate tasks.
make 1 for each app.
Foursquare - turn on gps. Turn off gps when exit.
Ect.
also, I guess there is a wiki with a bunch of samples I guess. I'm out at a remote beach on northern oahu right now, but if someone doesn't post it before me I'll post the link when I get home.
generic.imitation said:
Make it separate tasks.
make 1 for each app.
Click to expand...
Click to collapse
Yeah, that's what I've been doing. It'd just be nice if you could have conditionals in the context. IF Yelp OR Foursquare OR Maps OR Places then ...
Post over there and make a feature request, they should put that in I agree .
Just bought Tasker and so far I like it. Can't seem to figure out how to do the following task though.
I need to set to static IP when on a certain wifi connection. I already have the IP set and the only thing that will need to be done is to toggle the static IP checkbox in the advanced setting of wifi. I know how to specify the wifi network but how can I make it toggle that checkbox/setting?
Thanks for any info.
i made a simple widget to toggle the screen brightness to two preset brightens for inside and direct sunlight.
i could not find an app that let me choose the brightness, they either made it full dark/bright.
i can't work out however to toggle a different widget icon to indicate on/off...
i've tried set icon but with no luck
its not really needed but would be good to have/know for future apps
also, can anyone explain how the HTTP (get info from net) works?
i want to try a few things but not really sure how it works
This app is the best app on the market... hands down. #Win
generic.imitation said:
Yeah there are settings for connecting to wifi. Mine does it automatically when I get home based on the gps. Works most of the time, had to turn it on manually a couple times because the gps wasn't on.
Click to expand...
Click to collapse
You should use "wifi near" as a condition instead of "gps". That way it just toggles you wifi on and off periodically and if it is near... it will connect.
Gps is so demanding on the battery... and not always accurate... as you see
I set mine up so whenever I plug in my headphones my music app opens
Sent from my DROIDX using XDA App
ichigopow said:
I set mine up so whenever I plug in my headphones my music app opens
Sent from my DROIDX using XDA App
Click to expand...
Click to collapse
I set my heaphones the same.. but at the same time, it cuts my media volume up (in case it was down) and when I unplug them... it returns my media volume back to it's previous value
MrDanger said:
I set my heaphones the same.. but at the same time, it cuts my media volume up (in case it was down) and when I unplug them... it returns my media volume back to it's previous value
Click to expand...
Click to collapse
I do the same except my volume goes down when I plug them in so I don't have music blaring in my ears.
Sent from my DROIDX using XDA App
I also have a profile that texts my gf a random message at a random time that is between 7:30 am and 7:40 am (so she don't think it's automated lol) every morning. I got that idea from LexusBrian
Again.. great app!
Here was I have got going on with tasker.
Car dock: gps on, bluetooth on, display always on, notification volume off. On exit they all do the opposite.
When home: wifi on. Exit wifi goes off.
At work: phone goes to vibrate for everything.
10pm to 545am: phone goes quiet.
I second it a best app ever. Wifi, gps, and bluetooth are never on when I don't need em. Come on you can't beat that. What a battery saver.
Sent from my DROIDX using XDA App
Tasker is an incredibly handy utility.
Here's the profiles I use:
GPSonForLocationApps - I think this one has already been covered by this thread.
WifiOnAtHome - I use the wifi near option... although I think it's causing issues with my 3G signal... it will occasionally turn on wifi to check if I'm at home which seems to turn off 3G. Still playing with this one.
LowVolumeDuringWorkHours - sets various volumes appropriately so I can still hear stuff but doesn't annoy folks working near by. I turn this on/off based on day of week and time of day. Upon exiting this profile it returns my volumes back to normal.
NoficationsOffAtNight - I turn off notifications at night and if my phone is plugged into AC.
SilentForMeetings - if I have a calendar entry where I'm marked as busy it turns my phone to silent mode.
Openwatch?
Hello
I am new to Tasker, and I'm starting to understand exactly how much you can do. Uses open watch a lot and have done a lot of settings to make my clock better. But I wonder if I can get messages from one app to my watch. The app is an ice hockey results service. And each time it becomes a goal, I get it as income message in the status bar. But can I get the message in the clock at the same time? Right now I just get a message in the watch which I've written, but would like it says in the status bar so you do not I pick up the phone to look at the result. Is there perhaps a few codes to enter, instead of my message is? Hope you understand me?
I have mine set to enable WiFi when I connect to a certain cell tower. Keeps the drain on my batter to nothing more than it was already at, and GPS is only enabled for about 5 minutes to and from the house. I'm sure the drain for that combined 10 minutes is much less than periodically checking the GPS or if a network is near.
I am turning off gps when I get to my home cell tower and turning on my wifi at the same time.
For my multimedia apps like pandora, I have my screen stay on when plugged to a power source.
Sent from my DROIDX using Tapatalk

gps turns off when screen locked

just out of curiosity, is it possible to set the GPS to stay "on/locked" with the screen off? Thats a big complaint i have about using some of the fitness tracking apps that track a route/distance via GPS.
Lucke said:
just out of curiosity, is it possible to set the GPS to stay "on/locked" with the screen off? Thats a big complaint i have about using some of the fitness tracking apps that track a route/distance via GPS.
Click to expand...
Click to collapse
I think you can work around that by using the "Get Postion Test" feature in LBSTestMode. Open LBSTestMode and start Get Position Test, then once you have a lock, hit the home button rather than the back button to return to the home screen and start you other app. This will keep Get Postion Test running in the background, and should keep the GPS on/locked. This works for me with mytracks, maps, etc.
You can start LBSTestMode several ways: an app from the market, or use anycut and set a shortcut to the Activity LBSTestMode, or there are different keypad combinations for both 2.1 and 2.2 roms. You should be able to serach these things out on XDA.
Or use tracker booster from the market
Other apps such as nav and tracks also keep gps on when they are in use
Sent telepathically using vulcan mind meld app.
Or you can use the Google's My Track app. It will keep the GPS on while recording tracks.
Ultimately, it is app's responsibility to keep the GPS on.
foxbat121 said:
Or you can use the Google's My Track app. It will keep the GPS on while recording tracks.
Ultimately, it is app's responsibility to keep the GPS on.
Click to expand...
Click to collapse
I mentioned that one but tracker booster is really the best solution as it only requests constant gps positioning so it is very light, resource wise
Sent telepathically using vulcan mind meld app.

How to tell what app is using GPS?

I often see the GPS satellite symbol showing activity like some app is using my GPS when I dont have a GPS or navigation related app open. How can I tell what active process is using GPS at a given moment?
Thanks
tk_xda said:
I often see the GPS satellite symbol showing activity like some app is using my GPS when I dont have a GPS or navigation related app open. How can I tell what active process is using GPS at a given moment?
Thanks
Click to expand...
Click to collapse
Why don't you just disable it?
Sent from my HTC Sensation XE with Beats Audio using Tapatalk
matt95 said:
Why don't you just disable it?
Click to expand...
Click to collapse
Because I want GPS to be ready when I do open a nav app. And I am curious if there's a way to tell what is using it.
Go to menu-system apps-running...
List all you have running when you see that gps symbol. My guess is that you may be signed into google latitude.
If it is latitude, go to google maps, settings, and somewhere in there is an option to sign out of latitude.
Its not latitude. Google sets GPS to sleep when apps are running in the background. Third party developers aren't as good as Google.
Anyone have a real answer and not a guess?
Searched very long for a solution and it was quite hard to find the solution working without root, so I'll post it here:
Get the app "GSAM Battery Monitor" from Google Play, on GSAM's start screen select "Application Usage",
then on top of the screen select to view the used GPS time.
Well, this doesn't show which app is using GPS right now but you can see how much time each app actually activated GPS since the last battery charge, so this is very helpful to determine the apps using GPS in the background.
Hi
Even if your gps is turned on, it dosen't necessarily means that gps is being used. Use Spare Parts app from play store and it'll show you what all apps used gps since you last plugged in your phone charger. And yes, don't use this app while your phone is being charged...otherwise the readings gets resetted.
Also, the android os uses gps continually, like the camera app, gallery app etc.
abachhd said:
Hi
Even if your gps is turned on, it dosen't necessarily means that gps is being used. Use Spare Parts app from play store and it'll show you what all apps used gps since you last plugged in your phone charger. And yes, don't use this app while your phone is being charged...otherwise the readings gets resetted.
Also, the android os uses gps continually, like the camera app, gallery app etc.
Click to expand...
Click to collapse
Hi i want also ask about usages of my GPS and CPU
Before i go to bed I was at 100%
IMG: 2i.cz/2i/i/5238835a/105ba874a6a915965707995aef057fe5/718485af7c.p.jpg This is graph of my battery after morning.
Is there some tool which tells me what process used CPU and what used GPS?
I know last hour of graph could be facebook, but till that time was no activity.
d1one said:
Is there some tool which tells me what process used CPU and what used GPS?
I know last hour of graph could be facebook, but till that time was no activity.
Click to expand...
Click to collapse
Hi,
yes there is: GSAM battery monitor - please read my post above on how to find out with it which app used the GPS for how long
Sent from my Lenovo B6000-F using xda app-developers app

[v1.3] Tasker: Screen off=wifi/data off(no traffic+)AutoSync+Night/Reduce CellStandby

Cell Standby Battery Drain:
Hey Guys!!
Maybe some of you know it. The cell standby drains a lot of battery. I live in a mounterial arrea and it's really annoying. So I searched a bit on Google and build a small Tasker "Script" to reduce the draining. I'm using it now for 6 weeks and it's working good! It reduced my cell standby from 35% to 2%.
So what's the magic?
First tasker will turn Airplane Mode (only cell!) on if you don't have signal. Then it'll wait for 5 minutes and check it again. Yes this sounds really simple but it was hard to build it.
I hope I can help you with sharing my experiences!
Screen off=data/wifi off it no traffic (with Night Mode):
Hey Guys, I have been looking for a solution for this problem for quite a while myself. Now I found a good solution to collect the current traffic on all interfaces. I will share a detailed explanation on how to set it up.
First off, what will happen?
If you want tasker to turn Wifi or Mobile Data off when you the turn Screen off normally you have the problem that it will interrupt all downloads. This Profile will try to read the traffic. If the traffic is below 15 kb it will turn wifi or mobile data off. If not it’ll wait until it is below 15kb. Later If you turn your screen on again tasker will activate mobile data and wifi. It'll wifi doesn't connect to a network (in the next 30 seconds) it will turn wifi off.
How does Tasker work? How can I optimize these profiles/tasks for my needs?
First what does tasker do? This is for the people who don't understand tasker. Tasker has 4 tabs (Profiles, Tasks, Scenes and Vars) but I won't talk about Scenes cz I didn't uses it yet. I also won't talk about Vars (variables) cz they are self explaining.
What are Profiles?
Basically profiles contain conditions (for example if display on/off or wifi on/off) and run a task if the condition is true. Example: If display off turn wifi off.
What are Tasks?
A task is something like a list of actions which the phone should do. (for example turn data on/off or run a specific app)
How do the profiles from this thread?
The profile AutoSync (Screen off) runs every 10 minutes while the screen is off. It turns data/wifi on checks for new messages and turns it off. It has a variable called "%SLEEP". It will only run if "%SLEEP" doesn't match "1".
The profiles Display (Data) and Display (Wifi) turns data/wifi on when the user turns the screen on. When the screen is off again it will check traffic for 30 seconds. If the traffic is below 15kb/s it will turn data/wifi off. If not it will wait 2 minutes and check the traffic again for 30 seconds until the traffic is below 15kb/s.
The profile Night (week), Night (weekend) turn the phone into airplane mode and sets the variable "%SLEEP" to "1".
The profile Wifi connected just changes the variable "%CONNECTION to "1" or removes the "1". This is needed for the Display (Wifi) profile.
On my todolist:
You say..
Changelog v1.3:
Added Greenify's hibernate now to both screen off tasks
Changelog v1.2:
Added AutoSync (every 10 minutes if screen is off)
I'm using this profiles on my Samsung Galaxy Nexus and it works very well!!
Feel free to ask me if you have problems! I'll try my best to help you.
These profiles include the greenify hibernate action from its plugin. If you have troubles with it you have to remove and readd it (on both Screen off tasks) cz my plugin is german. (plugin → hibernate)
You need Secure Settings for tasker or it won't work!! I used Secure Settings because Secure Settings can off only the cell radio. Tasker supports it, too. But not for Jelly Bean and I'm using 4.2.2 :/
How to import *.prj.xml files:
Unzip the *.prj.xml file in your Tasker/projects directory and then import it in Tasker by long-clicking the home icon or any of the other tabs. If you don't have the home tab, swipe down from the top in Tasker to show the tabs. (beginner mode must be disabled!)
Thanks for this 8D!
Useful for a beginner like me ^^!
In task screen off, why do you wait for 30 sec's in Action number 5? Also how important is the Stop Task Action? What happens if I don't include it? I mean anyways, the following 'else' won't be executed if the Mobile data turned off by the 'if'.
Just what I looked for, but How can I install your *.zip file to tasker? I just cant install it, any hint? where should I put the zip file?
kala123 said:
Just what I looked for, but How can I install your *.zip file to tasker? I just cant install it, any hint? where should I put the zip file?
Click to expand...
Click to collapse
unzip it to /sdcard/Tasker/auto-import. Then import it using tasker.
The-Droidster said:
In task screen off, why do you wait for 30 sec's in Action number 5? Also how important is the Stop Task Action? What happens if I don't include it? I mean anyways, the following 'else' won't be executed if the Mobile data turned off by the 'if'.
Click to expand...
Click to collapse
You have to wait 30 seconds or how long you want to wait cz in action number 2 tasker gets a traffic number from the system. After 30 seconds it gets another. Tasker subtracts the values to get the actual traffic in bytes. So Tasker can look if the traffic is below 15 kb/s. Yes you're right. It's my fault. You don't need the Stop Task Action. It's from the old Script. I forgot to remove it. Thanks for your hint!
Hi parthipanramesh,
what I metioned inside the other Thread seems to be working A okay...
What are the modifications/fixes in this version? I can't tell from looking at it here.
RLicher said:
Hi parthipanramesh,
what I metioned inside the other Thread seems to be working A okay...
What are the modifications/fixes in this version? I can't tell from looking at it here.
Click to expand...
Click to collapse
Hi RLicher,
Some people had the issue with the maths calculation of CHECKB_WIFI - CHECKA_WIFI. So tasker will set the variables to 0 if they aren't set. (cz wifi is off or something else). And I deleted/merged some Actions.
You can use the version from the other thread if you don't have problems
I'm using this on SGS3 but notice two issue... While listening to Pandora when a song ends the data or wifi will get disabled so the next song cant start. Second wifi or data will not be reenable when the screen is enabled.
For the record i just imported the files within the zip.
nappent said:
I'm using this on SGS3 but notice two issue... While listening to Pandora when a song ends the data or wifi will get disabled so the next song cant start. Second wifi or data will not be reenable when the screen is enabled.
For the record i just imported the files within the zip.
Click to expand...
Click to collapse
First you have to increase the 30 seconds from the two Screen off tasks [A5] because Tasker checks the traffic for 30 seconds. If Pandora loads a song for example in 40 seconds Tasker will disable data and wifi after it has been loaded. So data and wifi are turned off when Pandora tries to play the next song. Increase the value and you should be good.
And for your next issue:
Delete the imported profile and create a new profile:
Name: Whatever
Context: State → Display On
Task: Create a task which enables data and wifi
Exit Task: Screen off
Re: Tasker solution: Screen off=wifi/data off if no traffic
The-Droidster said:
unzip it to /sdcard/Tasker/auto-import. Then import it using tasker.
Click to expand...
Click to collapse
How do we import?
Sent from my SGH-T999 using xda premium
ktetreault14 said:
How do we import?
Sent from my SGH-T999 using xda premium
Click to expand...
Click to collapse
Sorry I didn't read your previous post.
Unzip the *.tsk.xml files to sdcard/Tasker/tasks and the *.prf.xml to sdcard/Tasker/profiles. Then open tasker tap on tasks and hold it until a menu appears. Tap on import and you should see the files. Do this for the profile aswell.
First tasks and then profiles!! Or you'll get an error that tasker couldn't find the the task for the profile.
Thanks just pinched your files and made it turn on when the screen comes on.
My current profiles means that Wifi turns off when i leave the office and stays off until I turn it on again.
If im somewhere with no wifi will my wifi be turned on when my screen is turned on?
Would i need to create another profile which says if wifi is on and not connected to a network after X minutes
then please disable?
If so is that an easy one to create?
Thanks
Andy
Iceax123 said:
Thanks just pinched your files and made it turn on when the screen comes on.
My current profiles means that Wifi turns off when i leave the office and stays off until I turn it on again.
If im somewhere with no wifi will my wifi be turned on when my screen is turned on?
Would i need to create another profile which says if wifi is on and not connected to a network after X minutes
then please disable?
If so is that an easy one to create?
Thanks
Andy
Click to expand...
Click to collapse
First yes it will enable wifi.
I solved it with 2 profiles. One changes a variable if wifi is connected or not and the other one is turns wifi on, waits 30 seconds, checks the variable. If my phone is not connected to a wifi it will turn it off.
Do you want my profiles?
Re: Tasker solution: Screen off=wifi/data off if no traffic
Yes please that would be excellent
Thanks
Andy
Sent from my HTC One X using xda app-developers app
Re: Tasker solution: Screen off=wifi/data off if no traffic
Just one last question if I may.
Using this if I turn of data as well will that stop any emails coming in.
I have 3g turned off so am always on 2g but would still want push mail from one account to get through
Thanks
Sent from my HTC One X using xda app-developers app
Also found another issue now
I have a rule set up so when connected to works wi-fi my ringer and notifications are set to low.
But now when i turn my screen off wifi drops and my volume goes up. ARGHHHHH
Andy
Iceax123 said:
Yes please that would be excellent
Thanks
Andy
Sent from my HTC One X using xda app-developers app
Click to expand...
Click to collapse
Look in the OP!! New version
Iceax123 said:
Just one last question if I may.
Using this if I turn of data as well will that stop any emails coming in.
I have 3g turned off so am always on 2g but would still want push mail from one account to get through
Thanks
Sent from my HTC One X using xda app-developers app
Click to expand...
Click to collapse
Yes it will turn generally data off. 2g or 3g it doesn't matter.
Iceax123 said:
Also found another issue now
I have a rule set up so when connected to works wi-fi my ringer and notifications are set to low.
But now when i turn my screen off wifi drops and my volume goes up. ARGHHHHH
Andy
Click to expand...
Click to collapse
It have nothing to do with my profiles and tasks. They only enable connections, check traffic and disable the conncections. Maybe another profile isn't working correctly.
And next time you can edit your post. You don't need to make 3 posts.
Thanks again parthipanramesh, will import these tonight and try
Andy
I am new to tasker and i have been fiddling with it.
How would I add auto sync turns on every 15 minutes when screen is off and auto sync turns on when screen is on to this "script"?

App I can use to automatically turn on/off stuff?

Like let's say I connect to my home WiFi, I want to automatically sync on and lower the brightness to 1/4 of the way (just an example lol). Is there any app out there BESIDES TASKER that can do stuff like that? Tasker is really complicated IMO and I don't know how to use it. I'd prefer a much simpler app that I can use to do stuff like in the first sentence. Thanks to any suggestions!
PS- Just got a $25 Play Gift card, so it can be a paid app
Try an app called "Trigger".
Works for me
Sent from my SM-N9005 using XDA Premium 4 mobile app
Buy tasker.
Said it before and I'll say it again.
You can use Llama for this.
bharat4ever said:
Buy tasker.
Click to expand...
Click to collapse
I did and thought it was really complicated :/
Maybe I'll give it another shot. But always open to other suggestions. Just got a $25 Google Play gift card to, so rally open to anything.
Once you get to use it, it's pretty straight forward.
Tell me what you want to do, I'll guide you.
bharat4ever said:
Once you get to use it, it's pretty straight forward.
Tell me what you want to do, I'll guide you.
Click to expand...
Click to collapse
I want to create simple stuff such as.... Connect to my home Wifi shuts off mobile data and turns off my pattern unlock security. Connected to work Wifi puts my phone on mute and turns off pattern unlock security. Battery drops below 20% and power saving mode gets enabled automatically (Galaxy S5)... Etc. Just stuff like that.
Also on a side note... How is tasker on the RAM, resources and battery? Just curious.
You can use NFC Tools and NFC Tasks
Joe0113 said:
I want to create simple stuff such as.... Connect to my home Wifi shuts off mobile data and turns off my pattern unlock security. Connected to work Wifi puts my phone on mute and turns off pattern unlock security. Battery drops below 20% and power saving mode gets enabled automatically (Galaxy S5)... Etc. Just stuff like that.
Also on a side note... How is tasker on the RAM, resources and battery? Just curious.
Click to expand...
Click to collapse
Tasker is pretty light on battery and resources.
I'll create the steps for the tasks you've mentioned and post them here tomorrow.
bharat4ever said:
Tasker is pretty light on battery and resources.
I'll create the steps for the tasks you've mentioned and post them here tomorrow.
Click to expand...
Click to collapse
Wow that's awesome, thanks man!
Any more suggestions?!
I just wanna do simple things like when connected to home wifi kill mobile data, turn on wifi calling and turn volume all the way up.
Just Me said:
Said it before and I'll say it again.
You can use Llama for this.
Click to expand...
Click to collapse
Can't get Llama to turn on wifi calling when conncted to my home wifi lol.

Categories

Resources