[APP] Tasker

Search This thread

Myster

Senior Member
Jun 18, 2007
238
32
Lakeside
Hi
I got a small problem with my device - an ACER Liquid Metal. Whenever i use the PC Sync function ( ACER Sync ) the screen timeout changes to 30 minutes instead the "1 minute" i have chosen

I would like to make Tasker script so that after every synching Taker will reset my Screen Timout to the desired "1 Minute"

Please help

Thanks in advance
 

hulkhaugen

Senior Member
May 4, 2010
228
12
Arendal
bstart.net
I'm just learning Tasker, and my lack of programming skills isn't exactly a pro, lol. However, i'm following this guide: Add missed text/mail/call text to minimalisitc text (from tasker), and it pretty much works. But after i read my message(s), the text doesn't go away, just the textnumber. Eg: "one new message" becomes "new message" after i read it. To me, this sounds like there is a problem in the cleansms part of the code, and yes, i also found a misspelling where i was looking for it, where %MINTSSMSTEXT. After changing this, i got confident, but still nothing. Tried to make the MT widget over again, but still no luck. Can't seem to find any errors, only wrong output.

Any suggestions that might help me? I know this is hard for any of you to know without browsing my setup...
 

bt0904

Member
Jan 20, 2007
10
1
I got tasker setup to trigger some basic sl4a python scripts to integrate with my logitech squeezebox. The results are great. If anyone is doing or thinking of doing something similar, drop me a note.
 

dementik

New member
Jan 19, 2012
1
0
Squeezebox + Tasker

Hi,

I have to profiles on Tasker:

1. Coming home
Detects correct GSM cell and puts WiFi on.
Exit task is WiFi off.

2. At home
Waits for that phone connects to my home wifi, waits for 5 seconds (waiting to connect network properly) then does with HTTP GET (to Squeezebox Server/Logitech Media Server) 'Play' -signal:

home-on.php:
Code:
<?php
$fp = fsockopen("localhost", 9090, $errno, $errstr, 30);
if (!$fp) {
    echo "$errstr ($errno)<br />\n";
} else {
    $out = "00:04:20:26:XX:XX play\r\n";
    fwrite($fp, $out);
    $out = "00:04:20:26:XX:XX mixer volume 22\r\n";
    fwrite($fp, $out);
    fclose($fp);
        exit;
}
?>

and exit task activates when it has been disconnected from home WiFi (as i leave home) and does HTTP GET to this php:

home-off.php
Code:
<?php
$fp = fsockopen("localhost", 9090, $errno, $errstr, 30);
if (!$fp) {
    echo "$errstr ($errno)<br />\n";
} else {
    $out = "00:04:20:26:XX:XX pause 1\r\n\r\n";
    fwrite($fp, $out);
    fclose($fp);
exit;
}
?>

00:04:20:26:XX:XX is of course your squeezebox ID.

Result: When I come home, music starts with right volume. When I leave home, music stops. Quite handy.
 
Last edited:

exempli_gratia

Senior Member
Nov 12, 2007
78
2
Can the default Tasker notification icon be turned to something useful?

It's there all the time anyway (to make sure the app stays loaded). Would be nice if it could display the battery %, or something.
 

endrus

Member
Mar 30, 2010
29
1
Lusaka
php help needed

Hi,

Can you help me with the following php?
I want to start a http get querry but the below php is giving an error.

PHP:
<?php
$amount = $_REQUEST['amount'];
$currency = $_REQUEST['curr'];
$exchangeIn = $_REQUEST['incurr'];
$prec = $_REQUEST['prec'];
$googleQuery = $amount . ' ' . $currency . ' in ' . $exchangeIn;
$googleQuery = urlEncode( $googleQuery );
$askGoogle = file_get_contents( 'http://www.google.com/search?q=' . $googleQuery );
$matches = array();
preg_match('/= ([0-9]*\.[0-9]*)/', $askGoogle, $matches);
$rate = $matches[1];
echo round($rate,$prec);
?>
 

Stevethegreat

Senior Member
Nov 28, 2010
1,199
327
proper ICS support?

Any chance that we're going to get the Dpad actions functionality (user input) back in ICS? I've tried every rom in existence for my phone (i9000) and there is/was no Dpad support whatsoever, and it's so valuable to my scripts/profiles :( .

Tasker's bugs in ICS is what keeps from making the jump. I would be glad if I was to see them fixed...
 

jmbillings

Senior Member
Mar 23, 2009
457
40
Ely
I'm after a little help with Tasker - just getting started.
I've used TFC Task launcher to turn on BT when I put the phone in the car mount. I want to use Tasker to turn off BT when it disconnects from the car radio.

I created a new profile, which uses "Bluetooth Connected", and specified my car radio in there. I then added an "Exit task" to set Bluetooth off.

But it doesn't work. And the icon in the toolbar just says "no profiles active" no matter if it's in the car or not...

Any pointers on what I'm doing wrong or how I can troubleshoot it?
 

ricpdjrr

Member
Feb 8, 2010
34
9
new to tasker

I am setting a simple night time setting and whith the context to be

time ------------- from 2200 to 0900 the following day

days of week---- mon,tue,wed,thu,fri

when I first set the context tasker told me that this would result in

2200-midnight on tue and 0900- 2200 on tue (I think that was the message but i could not get it to give me the message again but whatever it said it was not going to work as i wanted)

Is there a easy way to do this or do I need 2 profiles one for
2200-midnight
and one for
midnight - 0900 ???
 

maverickme22

Member
Aug 19, 2009
35
1
Tasker Profile Help

Hi,,,,

I am new-bee using Tasker, and I find it very useful application.

I am struck with a situation.

1) I want to reject incoming call and send sms during a particular time i.e. 6 pm to 7 pm.

I am confused how to use AND operator between two context.

Please help me.

thanks
 

confusedmuse

Senior Member
Dec 31, 2011
484
199
Speyer
SGS2 i9100 Tasker + WidgetLocker

Lock screen management/manual lock.

When you unlock the screen, the lock will be paused.
So you don't have to unlock the screen over and over if at home. (screen off only)

Before putting the phone in pocket, you press a shortcut that resumes the lock
and locks the screen simultaneously.
This also triggers a task that ensures if the phone gets unlocked by accident inside pocket, it will immediately lock again.


Tasks:

Pocket Security
1. Task -> Wait 200 MS
2. 3rd Party -> WidgetLocker -> Resume
3. Display -> System Lock
4. Task -> Wait 3 Seconds 500 MS
5. Tasker -> Profile Status -> Pocket Security -> Set Off
6. Tasker -> Profile Status -> Pocket Security -> Set On

Pocket Security On
1. Tasker -> Profile Status -> Pocket Security -> Set On

Pocket Security Off
1. 3rd Party -> WidgetLocker -> Suspend
2. Task -> Wait 8 Seconds
3. Tasker -> Profile Status -> Pocket Security -> Set Off

Lock the Screen
1. 3rd Party -> WidgetLocker -> Resume
2. Display -> System Lock


Profiles:

Pocket Security
First Context -> State -> Sensor -> Proximity Sensor
Add 2nd Context (long press the first) -> State -> Phone -> Incoming Call - Check Invert!
Assigned task: Pocket Security
Turn this profile off after creating!

Pocket Security On
Context -> Event -> 3rd Party -> WidgetLocker -> Locked
Assigned task: Pocket Security On

Pocket Security Off
Context -> Event -> 3rd Party -> WidgetLocker -> Unlocked
Assigned task: Pocket Security Off



Now for the toggle:
Create a shortcut on your home screen and select Task Cut.
Assign the "Lock the Screen" task.
You have to assign an icon inside Tasker.
(when the shortcut is finished, you can use icons sets compatible with your launcher)
I have this shortcut inside my dock, so i can lock from any home screen.


Note: After unlocking the screen, don't cover the proximity sensor for 8 seconds.
Then the sensor gets turned off.

And don't forget to press the lock toggle before putting the phone in your pocket! :)
You could also activate it based on your location... i personally don't like
location based events.



Explanation for step 4-6 of the Pocket Security task:
If the event was triggered and the sensor is still covered, it will not trigger
the event again till you reveal the sensor and cover again.
You can test this by taking out step 4 to 6 from this task.
Just lock the screen and turn it on several times while covering the sensor with your finger.
The wait and profile restart is a workaround for this.
This way if it fails the first time it will lock max. 5 seconds later.
(try to make a call within this time...:))
Don't set the wait shorter than 3 seconds, or it won't work properly.
When waking from deep sleep, it can take a few secs till things get active.
I've tested this for several hours, 3.5 secs is a save value.
 
Last edited:
  • Like
Reactions: melorib

maverickme22

Member
Aug 19, 2009
35
1
Hi All ,


Please help me, I despirately need this:

Hi,,,,

I am new-bee using Tasker, and I find it very useful application.

I am struck with a situation.

1) I want to reject incoming call and send sms during a particular time i.e. 6 pm to 7 pm.

I am confused how to use AND operator between two context.

Please help me.

thanks
 

michalurban

Senior Member
Jul 11, 2010
772
86
Near Prague
Hi All ,


Please help me, I despirately need this:

Hi,,,,

I am new-bee using Tasker, and I find it very useful application.

I am struck with a situation.

1) I want to reject incoming call and send sms during a particular time i.e. 6 pm to 7 pm.

I am confused how to use AND operator between two context.

Please help me.

thanks

I found out (was told to be specific) that you can reject phone and send sms from ICS - just drag the ring you can receive or deny incoming call up ... 4 possible texts appear (you can edit them in settings of the phone app), you choose one and it rejects the call and sends the message right away.
 

iv00vi

New member
Apr 17, 2012
3
0
Detect connection attempt?

Hello,

first of all, let me express how I love the tasker. Even I found about the app only today, it is an excellent tool and I managed to create several useful profiles already. What I didn't manage to achieve is following: I didnt find a way to detect a connection attempt by an app. I already managed to make a simple script that fires up a connection when an app is launched and closes the connection when this app is closed or put into background, but this does not play well with a VoIP app I am using. I'd prefer if I could start and stop wifi/3g based on connection request, rather than on an app being in the foreground...

Is it possible?

Thank you
 

itsLYNDZ

Senior Member
Jul 20, 2010
1,155
22
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/

Is there a way to download the premade profile and import it after saving it to the tasker folder? Im finding I cant get the GPS on/off profile to work for me, no matter what ways I try. Its frustrating and I thought there was a way to just save the file and do it.
 

primetime34

Senior Member
Jul 18, 2011
270
14
I want to be able to have an action quick in after I close an application. I use Morning Ritual. When I hit the home button, I want the bluetooth to kick on, and the amazon app store. I have no idea how to do the first part, but I do have the second part of it figured out. Any help?

EDIT: I got a response from Pent on how to do this. Here is what he said and it works great!
Create an app context. Check Morning Routine. Add the task Load App,
Amazon App Store. Back in the main screen, long-click on the task
(right hand side) and select 'Move To Exit', so it runs when the
profile (i.e. the app) deactives (i.e. upon leaving the app).

Pent
 
Last edited:

steve austin

Senior Member
Feb 6, 2009
707
73
hope this helps

Hi All ,


Please help me, I despirately need this:

Hi,,,,

I am new-bee using Tasker, and I find it very useful application.

I am struck with a situation.

1) I want to reject incoming call and send sms during a particular time i.e. 6 pm to 7 pm.

I am confused how to use AND operator between two context.

Please help me.

thanks

I found this the other day. It is not time specific, but it does address sending the text.

http://tasker.wikidot.com/auto-respond-to-phone-call
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Do you guys use Tasker to enable/disable key guard under certain conditions? If yes, does it work reliably for you?

    I have a profile that disables key guard when connected to wifi at home and it works sometimes, but not always. It also will re-enable the key guard when it is still connected to wifi. I'm just trying to find out your experiences with this particular feature.

    Yes it works reliably depending on the triggers. In your case probably because your wifi goes to sleep sometimes (or just out of range for eg.) and it triggers the exit task and gets tasker confused. If you used a more stable trigger eg. when phone is plugged into power or by time slots, you'll notice that the feature works all the time.

    I personally use the Location trigger to off my keyguard at home at it works 90% of the time so perhaps you can consider using that.
    1
    SGS2 i9100 Tasker + WidgetLocker

    Lock screen management/manual lock.

    When you unlock the screen, the lock will be paused.
    So you don't have to unlock the screen over and over if at home. (screen off only)

    Before putting the phone in pocket, you press a shortcut that resumes the lock
    and locks the screen simultaneously.
    This also triggers a task that ensures if the phone gets unlocked by accident inside pocket, it will immediately lock again.


    Tasks:

    Pocket Security
    1. Task -> Wait 200 MS
    2. 3rd Party -> WidgetLocker -> Resume
    3. Display -> System Lock
    4. Task -> Wait 3 Seconds 500 MS
    5. Tasker -> Profile Status -> Pocket Security -> Set Off
    6. Tasker -> Profile Status -> Pocket Security -> Set On

    Pocket Security On
    1. Tasker -> Profile Status -> Pocket Security -> Set On

    Pocket Security Off
    1. 3rd Party -> WidgetLocker -> Suspend
    2. Task -> Wait 8 Seconds
    3. Tasker -> Profile Status -> Pocket Security -> Set Off

    Lock the Screen
    1. 3rd Party -> WidgetLocker -> Resume
    2. Display -> System Lock


    Profiles:

    Pocket Security
    First Context -> State -> Sensor -> Proximity Sensor
    Add 2nd Context (long press the first) -> State -> Phone -> Incoming Call - Check Invert!
    Assigned task: Pocket Security
    Turn this profile off after creating!

    Pocket Security On
    Context -> Event -> 3rd Party -> WidgetLocker -> Locked
    Assigned task: Pocket Security On

    Pocket Security Off
    Context -> Event -> 3rd Party -> WidgetLocker -> Unlocked
    Assigned task: Pocket Security Off



    Now for the toggle:
    Create a shortcut on your home screen and select Task Cut.
    Assign the "Lock the Screen" task.
    You have to assign an icon inside Tasker.
    (when the shortcut is finished, you can use icons sets compatible with your launcher)
    I have this shortcut inside my dock, so i can lock from any home screen.


    Note: After unlocking the screen, don't cover the proximity sensor for 8 seconds.
    Then the sensor gets turned off.

    And don't forget to press the lock toggle before putting the phone in your pocket! :)
    You could also activate it based on your location... i personally don't like
    location based events.



    Explanation for step 4-6 of the Pocket Security task:
    If the event was triggered and the sensor is still covered, it will not trigger
    the event again till you reveal the sensor and cover again.
    You can test this by taking out step 4 to 6 from this task.
    Just lock the screen and turn it on several times while covering the sensor with your finger.
    The wait and profile restart is a workaround for this.
    This way if it fails the first time it will lock max. 5 seconds later.
    (try to make a call within this time...:))
    Don't set the wait shorter than 3 seconds, or it won't work properly.
    When waking from deep sleep, it can take a few secs till things get active.
    I've tested this for several hours, 3.5 secs is a save value.
    1
    I'm still new here I've tried to find this answer a few ways I even looked at the tasker wiki guide. Here is the problem:

    So I always forget to turn my wifi off when I leave my house, work, school, friends, apartments, etc. I've figured out the logic to get tasker to do what I want but I can't figure out how to do it.

    Profile:

    Conditions: Wifi is on - Wifi is not connected to any saved network

    Task: Wait 2 minutes - recheck - If conditions are still true then Turn off wifi.

    I've searched through the tasker options a dozen times but I can't seem to find a way to do this. Anyone have an idea? I'd rather not enter specific SSIDs because I use so many different ones frequently


    Not sure if I get the problem correctly, but there's a WiFi Connected trigger in State -> Net. Invert it to make it WiFI NOT connected. Doesnt require an ssid to be entered

    ---------- Post added at 02:01 AM ---------- Previous post was at 01:38 AM ----------

    Here is what I currently use Tasker for.

    Profiles:

    Outside
    Trigger:
    WiFi not connected to home WiFi

    Actions:
    Notify of any todo items matching "shopping" list.
    Max screen brightness
    Write "*Myname* is not home (since %TIME)" to status.txt. This file is then synced to dropbox using dropsync, where a range of family members have access to it.

    Help
    Trigger:
    incoming SMS with code word

    Actions:
    Max media volume
    Play pre-recorded message from me with info + asks for audio reply from anyone who has the phone
    Record audio
    Activate GPS location profile
    Wait a few dozen seconds
    Stop audio recording (the file is then synced to dropbox)
    Get location
    Write location + other things to a file (then synced to dropbox)
    Play new audio recording from me
    Deactivate GPS profile
    Run dropsync (in case it didnt run automatically due to battery level before)

    Sleep mode
    Trigger:
    %Sleepmode ~ on (%Sleepmode set by invisible icon+popup on homescreen)

    Actions:
    Write "*Myname* has been sleeping since %TIME" to status.txt
    Display brightness 10%
    Alarm volume max
    Variable set %Lastsleep to "SM is on"
    Make Your Clock Variable plugin. SLEEP = %Lastsleep
    Variable set %Smactivation to %TIMES
    Perform Task "Screen off" -> turns off my PC screens remotely (not my phone screen)

    Exit actions:
    Write "*Myname* is home" to status.txt
    Variable Set %Lastsleep to "LS %TIME"
    Make Your Clock Variable plugin. SLEEP = %Lastsleep
    Variable set %Smduration to (%TIMES - %Smactivation)/3600
    Flash "You slept for %Smduration hours"
    Perform task "Screen on" -> turns on my PC screens remotely (not my phone screen)

    My clock widget has a few small pieces of text that it pulls from Tasker, one of them being its SLEEP variable, which displays the last time Sleep Mode was deactivated or that it's currently on.
    When sleep mode turns on, my phone screen dims, my PC screens turn off. When it's deactivated, my phone lights back up, PC screens turn on, and it displays a message saying how long I slept. With my random sleep cycles, I actually need to know that, and when I last slept xD

    No Dad
    My dad has a tendency to always call when I'm asleep. Never fails. Doesn't matter if I sleep during the day or at night, he will manage to hit that window right on the head every single time. hence why he's "singled out" for this profile.

    Trigger:
    Phone Ringing, "dad"
    %Sleepmode ~ on

    Actions
    End call
    Read Paragraph 1 from "status.txt" to %Sleepstatus
    Send SMS to "dad", message "This is Myname's phone. %Sleepstatus, so he can't take your call."



    I also have some much more complicated tasks that have close to 100 individual actions. Those are however work related and not relevant for anyone here
    1
    Another silly question. How do I recheck profile conditions in the middle of a task?

    I can think of a hundred ways to do this depending on what you want to recheck, but I assume it's the state of the WiFi. I think the simplest thing would be to create a profile that has "wifi not connected" as the trigger, Set Variable %Wifistatus To disconnected (you can name the variable and value whatever you want) as the enter task, and Set Variable %Wifistatus To connected as the exit task. Then create a new profile which has Variable Value as the trigger, %Wifistatus (matches) disconnected. The task should then first be Wait (for as long as you want to wait, 2 minutes was what you said in the other post) and then you add task WiFi Set: Off, check If, and enter %Wifistatus (matches) disconnected

    Basically this uses a variable to create a "wifi disconnected" state that can be used by any action. When WiFI is first disconnected, the timer starts, and if WiFi is still disconnected when it finishes, WiFi is turned off.

    I use the same method myself in order to have multiple profiles and individual tasks trigger off the same event, in my case my sleep mode profile which doesn't just run the sleep mode enter/exit tasks but also controls whether or not my "no dad" profile is active
    1
    ive used tasker for basic things (turn wifi on/off, set volumes, etc) but need some help doing a few things that are beyond clicking on one of the pre-made actions in tasker. i am using this in conjunction with nfc task launcher on my galaxy nexus.

    i know how to have tasker open an app automatically but is there a way to have it do things within that app. for example, one of the nfc tag ideas i read was using it to automatically start a timer for when you are doing the laundry or cooking. i have an app called stopwatch/timer. is there a way to have tasker open that app and start a timer?

    thanks.

    That depends on the app. In your case, yes, yes there is. Get the following:
    https://play.google.com/store/apps/details?id=mobi.intuitit.android.p.timer
    https://play.google.com/store/apps/details?id=com.joaomgcd.autoshortcut

    Create your preset timers in the timer app. Go to Tasker actions, Plugins, AutoShortcut, click the Edit button, and scroll down to the Timer option. Select your preset timer.