[Q] Tasker - how to use locale app condition plugin? - Galaxy S II Themes and Apps

Hi,
I'm very new to takser and I'm trying to figure out a simple task.
For example I want to activate WIFI when a specific application(lets say "calculator" as an example) is running and I want WIFI to stay on as long as the the calculator is active.
I understand that tasker only would do such kind of action as long as the application is in the foreground. But I want to keep WIFI on, also if calculator is active in the background.
So, I've found a plugin : locale app condition. This is compatible with tasker but I can't make it work.
Can anyone help me, how I have to use this plugin.
Cheers,
bamthwok

Late response, I know. But do you still need help with this? If you haven't already figured it out, if you have tasker you don't need the locale plugin to accomplish what you're after - that plugin is specifically for location based tasker profiles.
i.e. turn on wifi when you're at home, turn it off when you're x distance from home.
To accomplish what you're trying to do in tasker, just create a new profile with the condition "application-> calculator" and the task /action "network-> wifi state -> on" and you're done. Have an exit task that turns off wifi in the same way and you're all set.
For bonus points have an additional "if" condition that makes sure this profile doesn't fire if wifi is already active as it's safe to assume that you want wifi on regardless of what the calculator is doing.
p.s.
My phone isn't presently within arms reach so if I've gotten the exact names/locations of the functions you want in tasker wrong, then use some initiative and you'll be all set.

Related

Keep alive Program for MSFP????

Here's the problem. The "Lock" function on the second page of the "Settings" menu is enabled. However, when I use my JasJar with my navigation software (via BT GPS), the JasJar "Locks" itself after XX Minutes (30 Minutes). It does because it doesn't receive any "user input" and does not recognize that I'm using it GPS navigation.
However, if I watch a movie on my JasJar with TCPMP (formerly Beta Player) and use the "keep alive" function in it, my JJ doesn't "lock-up". So an application can be written to "stay alive" and prevent WM5 (with MSFP) from locking the device with no input.
Solution???: It there either a registry hack that can be entered that allows certain applications in the "keep alive" mode? Or can someone write a small piece of code that runs that can be associated with a specific application and keeps WM5 from "Locking" the device while the application is running?
Justin
just typing a reply to give this problem a little more attention, cause I'm looking for a solution for this prob too.
Here's the solution....
Check out this post for the solution:
http://forum.xda-developers.com/viewtopic.php?t=47912&start=0&postdays=0&postorder=asc&highlight=
Justin
thx for the tip... it seems to work.
It also seems handy for a number of other apps... but i guess it will take a little time to understand the scripts completely...
thx again.
That's the beauty of it......
The fact that it works with any application is what makes it such a great solution (for me at least). For example I can keep the screen from "locking" if I'm surfing the internet or while I'm on a phone call.

Can GPS get a silent fix?

When I get in the car and turn on bluetooth, a script starts to run in conjuction with my car stereo for handsfree and audio etc.
I would like to add a command to the script that switches on GPS straight away and gets a fix in the background so that if I get lost or stuck in traffic I can run TomTom and the fix will have already been established thus enabling me to navigate to where I need to be more efficiently?
Is there such a way of doing this?
the simplest idea I have is to run a 3rd party app such as gpsgate when your script runs.
debully,
I did think about using a 3rd party app but wondered if the trinity is capable of getting a fix just by enabling GPS and not running any other app?
The problem is that using A2DP is quite CPU greedy. Running another app will just add to it. Incidently, I've read posts where people are quoting percentages of CPU used by certain programs, how is this done?
interested as well
Let me know if you get a way to do this... I would be interested as well.
;-)
-Daniel
If you'd like to have a GPS fix all the time (even when you push the power button for 'stand by') you will have to modify the radio rom..
But for in-windows usage you could install a program with a virtual COM port that redirects the GPS data.. (so, when your batch file is ran this program will open and connect to the GPS port.. it wil create another COM port and when tomtom connects it will have a fix instantly)
I use gpsgate, not only does it give me a fix all the time when I set it to run on softreset, it can send your position to googlemaps so people can track you if you want and other nifty stuff.
Floriz said:
If you'd like to have a GPS fix all the time (even when you push the power button for 'stand by') you will have to modify the radio rom..
But for in-windows usage you could install a program with a virtual COM port that redirects the GPS data.. (so, when your batch file is ran this program will open and connect to the GPS port.. it wil create another COM port and when tomtom connects it will have a fix instantly)
Click to expand...
Click to collapse
I downloaded a little app called ODGPS (900KB cab file and free) It took a while playing around with the settings to get a fix but once the fix was there I opened TomTom and it knew where I was almost instantly.
I stumbled across a website yesterday with links to other sites of free gps software. http://www.maps-gps-info.com/fgpfw.html (where I found ODGPS)
My plan is to test a number of programs from here to establish a) how much memory they use and b) how quick they get a fix.
Once I have found a small enough app with a fairly quick fix I shall implement it into my script. Now if someone could just tell me how I monitor the CPU usuage of each app?
mcq3000
How memory hungry is gpsgate?
neomagik said:
I downloaded a little app called ODGPS (900KB cab file and free) It took a while playing around with the settings to get a fix but once the fix was there I opened TomTom and it knew where I was almost instantly.
I stumbled across a website yesterday with links to other sites of free gps software. http://www.maps-gps-info.com/fgpfw.html (where I found ODGPS)
My plan is to test a number of programs from here to establish a) how much memory they use and b) how quick they get a fix.
Once I have found a small enough app with a fairly quick fix I shall implement it into my script. Now if someone could just tell me how I monitor the CPU usuage of each app?
Click to expand...
Click to collapse
you can use "BatteryStatus", very small today-plugin that shows you the energiedrain... more cpu = more energiedrain
I'm getting closer to having this working:-
ODGPS is not ideal because it seems to freeze the phone after a while. It also makes a funny tapping noise every 2 or 3 minutes and for some reason and I can't disable it.
I'm now experimenting with NoniGPSPlot, a very small program that runs easily in the background. You can save a track of your journey too and view it on google earth.
Once it's established a fix, TomTom will fix almost instantly.
I've integrated it into my script so that it opens and minimizes as soon as I switch to 'car' profile. My phone then detects my stereo and connects to it for handsfree profile, then for wireless stereo.
What would be cool is if I can get it to display a message telling me that a fix has been established and likewise when the fix is lost. The trouble is I can't find what registry change takes place once it has a fix.
neomagik said:
I'm getting closer to having this working:-
ODGPS is not ideal because it seems to freeze the phone after a while. It also makes a funny tapping noise every 2 or 3 minutes and for some reason and I can't disable it.
I'm now experimenting with NoniGPSPlot, a very small program that runs easily in the background. You can save a track of your journey too and view it on google earth.
Once it's established a fix, TomTom will fix almost instantly.
I've integrated it into my script so that it opens and minimizes as soon as I switch to 'car' profile. My phone then detects my stereo and connects to it for handsfree profile, then for wireless stereo.
What would be cool is if I can get it to display a message telling me that a fix has been established and likewise when the fix is lost. The trouble is I can't find what registry change takes place once it has a fix.
Click to expand...
Click to collapse
Wow this sounds great !!! I have just bought an A2DP capable car radio and I would love to being able to do exactly this. Can you share your script when its finished??
Kind regards
neomagik said:
I've read posts where people are quoting percentages of CPU used by certain programs, how is this done?
Click to expand...
Click to collapse
Task Manager
availible here: http://www.buzzdev.net/index.php?option=com_phorum&Itemid=125&phorum_query=read,27,15027
@ rdkay>
Which stereo do you have? The script I have written is specifically for the Pioneer DEH P75BT
I've just used ssnap to create 2 snapshots of my registry, the 1st with a gps fix, and the 2nd without. When comparing the files using ExamDiff there is no obvious change that takes place.
Does anybody know of a GPS program that creates or changes registry entries once a fix is established?
neomagik said:
@ rdkay>
Which stereo do you have? The script I have written is specifically for the Pioneer DEH P75BT
Click to expand...
Click to collapse
slightly off topic - apologies -
how do you find the DEHP75BT at registering and automatically recognising your phone?
I have a DEHP55BT (think it was the first BT radio available for under £200) and had loads of trouble with registration (had to use 'connect
wait') and unless I manually switch on BT on phone (mUn's WM6 SE) or manually tell the pioneer to connect nothing happens.
Also, when callers call me I cannot hear their voices through the speakers, but it's ok when I call them - do you have this problem?
neomagik said:
I've just used ssnap to create 2 snapshots of my registry, the 1st with a gps fix, and the 2nd without. When comparing the files using ExamDiff there is no obvious change that takes place.
Does anybody know of a GPS program that creates or changes registry entries once a fix is established?
Click to expand...
Click to collapse
GPSGate changes the colour of its icon that resides in the system tray (red -no gps data, yellow - gps data but no fix, Green - Fixed). Not sure if this is controlled by a registry setting but may be worth a look. GPSGate also lets you use more than one GPS app at once and allows you to delegate COM ports for output.
@ debully>
There is a very simple fix to enable the Pioneer to recognise and connect to your phone. You see the Pioneer is searching for a phone or a Smartphone, the Trinity identifies itself as a PPC and so the Pioneer ignores it.
The Class of Device or CoD must be changed so that the Trinity identifies itself as either a phone or Smartphone.
If you change the Dword Data value in.... HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Bluetooth\SYS\COD"
to 5374476 (decimal) and set bluetooth to discoverable in your Trin, you should find that it connects automatically.
It took me 8 months to find this out.
PS. I don't have the problem with not hearing the callers.
@neomagic
wow - thanks dude. Your a star!
To understand what you are dealing with in getting a "fix" you need to understand how the system works. When started for the first time in 2 hours (or whatever it's been programmed for) the gps does a cold start and needs to download almanac data from the sat's in order to determine their trajectories which is needed to calculate a fix. Once that data has been pulled, it's valid for a certain amount of time (about 2 hours if I'm remembering correctly). So, although no registry keys are going to change, the easy way to deal with this is to keep your own timestamp, and make sure to ping the gps with a fix request every 2 hours or so in order to keep it ready for a warm/quick start...
@ Shadowmite>
Thanks for the info, I've read similar information about cold/warm starts. A couple of questions though...
1) I can deal with the timestamp but how do I "ping" the gps with a fix request?
2) If I do ping a request every 2 hours and I'm indoors and can't get a fix, will it go back to needing a cold start?

Profiles - change notifications and much more automatically

Hi all!
I searched a lot here to find this little CAB which I had at my Blue Angel.
This little program integrates into the Today screen and lets you change the volume, notifications, BT, WiFi, Screen orientation settings according to 9 preset profiles. You can also set a schedule to auto change profile at a desired time.
Since there are no 'About...' button there and it was part of an EXTROM at Blue Angel, I don't know the origin of this masterpiece. However I find it utterly useful, so download it and enjoy! AFAIK it works on WM5 and WM6 no problem (VGA compatible...)
(PS.: The only thing I missed is backup - I need to set my profiles after every hardreset.)
EDIT:
Thanks to creed, we got the about screen. I don't know how I couldn't find it.
Here is the official page: http://www.winmobileapps.com/device/pocketpc/pwm/pwm.aspx
Looks useful, anyone else tried it?
MM
This is a nice little program, almost perfect in fact, but I have found a problem with it. I created a 'Home' profile that enables me to use my wifi network but the profile program does not allow me to change the connection network setting.
So it connects via wifi but then trys to connect to the internet using the existing GPRS connection. Of course I could change this manually but if the program could do this it would be perfect!
Also it would be nice if it had more control over the data connection i.e. choose GPRS or 3G or wifi and the afore mentioned network connection setting.
Lastly it doesn't seem to pick up some of my custom ring tones. I suspect this is a format issue as this program was designed for WM5 originally.
The 'About' info is here:
Thakks for the replies. Trying the Free cab for now. Exactly what I wanted...
Thanks
Thank you for the about screenshot... Chenking it out.
Yes, it lacks some of the radio on/off functionallity. I once tried to create a 'phone off' profile for the night to save battery, but as I remember the switching on was problematic.
And yes, in WM6 it doesn't seem to support some of the wma formatted sounds... I converted the Alarms : )
Very nice plug-in. But with WM6 I cannot set MP3 files as SMS Tones Anyone can help with that?
Does anybody know about "[Script]" feather on Selecting Sound tab?
What is it? How to wrote script?

Bluetooth Schedule Time

I am wondering if it's possible to schedule to turn Bluetooth on and off at specific times of the day, automatically on our Rhodium
Does anyone know of this is possible?
It's not a freebie, but I use SpbPhoneSuite to provide different "profiles". These can be used to turn on/off bluetooth and can also be configured to activate based on time or other triggers (e.g. during an appointment, when cradled, etc.).
As this is primarily a Today Plugin, I've used "Second Today", which gives me a separate today screen (aside from TouchFlo) which I use to access PhoneSuite and change profile if I need to do it manually.
I had a licence for PhoneSuite from my previous phone, so I didn't care about the cost.
Ed
I found G-Profiler. Free and alot of config.
BUT... The Bluetooth part dont work.
I've found the reg key for BT on the Rodium:
HKLM\system\state\hardware\
bluetooth=8 is the value for off
bluetooth=9 is the value for on
I havn't found the place to put that value in G-Profiler.
But it's possible to call a prg instead. Mortscript to change this reg-value?
Is this the easiest way? I've had this problem in other prg aswell, so i'd like to know.
Thanks for your replt, however I read that HTC switched from the WM BT-stack, to the WidComm BT-stack and SPB Suite will no longer control BT as we would expect.
Any other ideas?
eepyaich said:
It's not a freebie, but I use SpbPhoneSuite to provide different "profiles". These can be used to turn on/off bluetooth and can also be configured to activate based on time or other triggers (e.g. during an appointment, when cradled, etc.).
As this is primarily a Today Plugin, I've used "Second Today", which gives me a separate today screen (aside from TouchFlo) which I use to access PhoneSuite and change profile if I need to do it manually.
I had a licence for PhoneSuite from my previous phone, so I didn't care about the cost.
Ed
Click to expand...
Click to collapse
phoneweaver
With SBSH Phoneweaver, Profiling works fine with Bluetooth. Make sure that you use version 1.4.2 (the issue with the BT Stack has been solved in this version)
http://www.sbsh.net/products/windows_mobile_pocket_pc/phoneweaver
mail_e36 said:
Thanks for your replt, however I read that HTC switched from the WM BT-stack, to the WidComm BT-stack and SPB Suite will no longer control BT as we would expect.
Any other ideas?
Click to expand...
Click to collapse
Ahhh - I'd seen the Bluetooth option, but not actually tried to use it in anger.
D'oh!
Phoneweaver looks as though it might also do the trick, though...

Tasker Bluetooth connected Profile not triggering

I have a Tasker Profile which should be activated based on a Bluetooth state - i.e. when connected to my car Bluetooth system. When creating the Profile I used a search to locate the correct Bluetooth device from the list. The problem is that this profile is not being activated when the phone is connected to the car Bluetooth system - the Tasker notification just says that there is no active profile.
I've tried adding both the Bluetooth device name and address using the Search function, and I've also left both the name and address blank to see if the Profile can be triggered by connecting to any Bluetooth device, but the Profile never gets triggered. Has anyone else had any success triggering a Bluetooth Connected Profile on their G4?
I'm running Tasker 4.7m on a rooted LG G4 TWN model (Android 5.1).
The Tasker Profile definition is below:
Profile: In Honda (17)
State: BT Connected [ Name:JVC Unit Address:00:10:601:AC:20/00:10:601:AC:20 ]
Enter: Gmail Notifications Off (14)
A1: Secure Settings [ Configuration:Gmail Notifications Disabled Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
Exit: Gmail Notifications On (15)
A1: Secure Settings [ Configuration:Gmail Notifications Enabled Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
I use Tasker to open Waze when connected to the Bluetooth in my car and it works no problem. The exit task to close/kill Waze doesn't seem to work for some reason.
rick09 said:
I use Tasker to open Waze when connected to the Bluetooth in my car and it works no problem. The exit task to close/kill Waze doesn't seem to work for some reason.
Click to expand...
Click to collapse
Any chance that you could paste an export of your Profile definition here so that I can compare it with mine?
Profile: Waze (2)
State: BT Connected [ Name:CAR KIT Address:00:13:04:Blah:Blah ]
Enter: Waze (3)
A1: Launch App [ App:Waze Data: Exclude From Recent Appsff Always Start New Copyff ]
Exit: Close Waze (5)
A1: [X] Kill App [ App:Waze Use Rootff ]
A2: [X] Say [ Text:KILLING WAZE Engine:Voice:default:default Stream:3 Pitch:5 Speed:5 Respect Audio Focusn Networkff Continue Task Immediatelyff ]
Is that what you're looking for?
rick09 said:
I use Tasker to open Waze when connected to the Bluetooth in my car and it works no problem. The exit task to close/kill Waze doesn't seem to work for some reason.
Click to expand...
Click to collapse
rick09 said:
Profile: Waze (2)
State: BT Connected [ Name:CAR KIT Address:00:13:04:Blah:Blah ]
Enter: Waze (3)
A1: Launch App [ App:Waze Data: Exclude From Recent Appsff Always Start New Copyff ]
Exit: Close Waze (5)
A1: [X] Kill App [ App:Waze Use Rootff ]
A2: [X] Say [ Text:KILLING WAZE Engine:Voice:default:default Stream:3 Pitch:5 Speed:5 Respect Audio Focusn Networkff Continue Task Immediatelyff ]
Is that what you're looking for?
Click to expand...
Click to collapse
Yes - thanks. It looks like you're doing it exactly the same way that I am, except for some reason mine isn't responding to the bluetooth connected event. Must be something on my phone that's interfering with it
???
itm said:
I have a Tasker Profile which should be activated based on a Bluetooth state - i.e. when connected to my car Bluetooth system.
Click to expand...
Click to collapse
Bluetooth Near works for me on my profile. I've not tried Bluetooth Connected.
Be aware that there is a lag exiting the profile though, based on the display off monitor interval. For my purposes however, the lag isn't important.
soyelmango said:
Bluetooth Near works for me on my profile. I've not tried Bluetooth Connected.
Be aware that there is a lag exiting the profile though, based on the display off monitor interval. For my purposes however, the lag isn't important.
Click to expand...
Click to collapse
Bluetooth Near doesn't trigger anything for me either, and I've tried this with a Bluetooth headset as well as the car Bluetooth. The Tasker logs don't register thing for any Bluetooth-related events it seems :0(
itm said:
Bluetooth Near doesn't trigger anything for me either, and I've tried this with a Bluetooth headset as well as the car Bluetooth. The Tasker logs don't register thing for any Bluetooth-related events it seems :0(
Click to expand...
Click to collapse
A few things to try, in no particular order...
Bluetooth hardware address is optional, try it without.
Select the Bluetooth name using the magnifying glass, to avoid typing errors.
Is the JVC unit always discoverable? (ie: broadcasting its name for tasker to see).
Are you giving the profile enough time to fire, according to either the screen on or screen off monitor values?
According to Bluetooth Connected help page, tasker only detects the act of connection or disconnection, but not the state of being connected.
Let us know how you get on... Good luck!
soyelmango said:
A few things to try, in no particular order...
Bluetooth hardware address is optional, try it without.
Select the Bluetooth name using the magnifying glass, to avoid typing errors.
Is the JVC unit always discoverable? (ie: broadcasting its name for tasker to see).
Are you giving the profile enough time to fire, according to either the screen on or screen off monitor values?
According to Bluetooth Connected help page, tasker only detects the act of connection or disconnection, but not the state of being connected.
Click to expand...
Click to collapse
Thanks for the suggestions. I did use the Search function to populate both the device name and address. I also tried specifying name only, and even leaving both blank (to test for any bluetooth device being connected, but none of these options worked.
The JVC Unit does seem to be discoverable - i.e. it always shows up when I scan for bluetooth devices. This problem isn't limited to the one unit however - I also can't get the profile to activate with the Parrot unit in my wife's car, or with a Sony MW600 headphone adapter.
Re. giving the profile enough time to fire - could you please elaborate on where I need to specify the appropriate values for this? (or do you mean am I waiting long enough? - in which case the answer is yes, I've waited 30 minutes after watching the unit connect to the JVC unit in the car!)
I just tried a different test. I created a simple profile with a single context of "BT Status on". I then turned off Bluetooth on the phone, turned it back on, and waited a few minutes. My new profile never activated. It seems that Tasker is completely blind to changes of Bluetooth state on my phone
???
itm said:
Re. giving the profile enough time to fire - could you please elaborate on where I need to specify the appropriate values for this? (or do you mean am I waiting long enough? - in which case the answer is yes, I've waited 30 minutes after watching the unit connect to the JVC unit in the car!)
Click to expand...
Click to collapse
You're definitely waiting long enough! See tasker preferences > monitor > display on monitoring, and display off monitoring. Tasker's help file explains how the values work.
itm said:
I just tried a different test. I created a simple profile with a single context of "BT Status on". I then turned off Bluetooth on the phone, turned it back on, and waited a few minutes. My new profile never activated. It seems that Tasker is completely blind to changes of Bluetooth state on my phone
???
Click to expand...
Click to collapse
Other things to try:
Watch out for battery savers, task killers, memory cleaners, background service freezers, phone boosters unwittingly killing Tasker.
Way back, when I used Titanium Backup to restore my apps, it did Secure Settings first then Tasker… didn't work! Long shot: Reinstall Tasker, then Secure Settings.
What a mystery!
itm said:
I have a Tasker Profile which should be activated based on a Bluetooth state - i.e. when connected to my car Bluetooth system. When creating the Profile I used a search to locate the correct Bluetooth device from the list. The problem is that this profile is not being activated when the phone is connected to the car Bluetooth system - the Tasker notification just says that there is no active profile.
Click to expand...
Click to collapse
you mentioned the tasker notification, but do you have "Run in Foreground" checked within the preferences? if you do not, then most likely the bluetooth trigger will not work.
I did have both Clean Master and Greenify installed, but have now uninstalled both of them and I still get the same problem. At this point I'm monitoring only for "BT Status On", but Tasker is not triggering my profile when I turn on Bluetooth (and wait for a few minutes).
I do also have the "Run in foreground" option set.
itm said:
I did have both Clean Master and Greenify installed, but have now uninstalled both of them and I still get the same problem. At this point I'm monitoring only for "BT Status On", but Tasker is not triggering my profile when I turn on Bluetooth (and wait for a few minutes).
I do also have the "Run in foreground" option set.
Click to expand...
Click to collapse
Did you ever figure out what the problem is? I'm seeing the same behavior. I can't get my Profile to activate when I connect my bluetooth headset.
I tried forgetting my bluetooth and re-adding it, no luck.
I'm currently on Marshmallow 6.0.1 on a Nexus 6 and Tasker v4.8
It turns out that the version Tasker that I purchased from the Amazon app store was not legitimate. I got a refund from Amazon, repurchased it from the Play Store, and now I don't have the problem
itm said:
It turns out that the version Tasker that I purchased from the Amazon app store was not legitimate. I got a refund from Amazon, repurchased it from the Play Store, and now I don't have the problem
Click to expand...
Click to collapse
Thank you very much. I downloaded a "mod" version and it didn't work until I downloaded from Play Store

Categories

Resources