Page 1 of 4 1234 LastLast
Results 1 to 30 of 99

Thread: [Android] Share your Tasker recipes

  1. #1
    Neo Acoustic
    Join Date
    Feb 2008
    Location
    New Yawk
    Posts
    1,914

    [Android] Share your Tasker recipes

    This is Tasker. It is the greatest app your Android will ever see. In short, it allows you to create user scripts that can make your phone do all sorts of funky things, the only limit being your imagination*.

    Lifehacker has a number of handy scripts, as does their wiki (my favorite so far is the phone locator). Of course, there is so much more you can do with the app and as I know there are a few Tasker users here, I figure we can use this thread to share some of the profiles we've cooked up. I'll update with one of my latest ones in a minute, but I wanted to get this thread out there so people could start contributing.




    * And also technical limitations of the app

  2. #2
    Neo Acoustic
    Join Date
    Feb 2008
    Location
    New Yawk
    Posts
    1,914

    Movie Mode

    My latest profile is something I call "Movie Mode," though really it could be used for any DND situation.

    What it does

    Sets up a desktop icon that, with a press turns Movie Mode on or off. While in Movie Mode, the phone switches to vibrate and will automatically reject any incoming calls and reply to the caller with a text message saying (in my case): "[Automated Message] I'm in a movie and can't pick up right now. I'll call you back as soon as I'm out. Thanks."

    If RenderFX still worked with Tasker, I'd also have it turn on the Red render, in case you need to check your phone for whatever reason and don't want to light up your whole row.

    How to set it up

    This one has two key elements: the first is the task that sets Movie Mode, and the other is the profile that rejects incoming calls and replies with a text message. First, the Movie Mode task. This uses the MOVTOG variable to set the state of Movie Mode (on or off) and sets silent mode accordingly.

    1 If %MOVTOG = 0
    2 Popup "Movie Mode ON" (optional: time 1, font size 12)
    3 Silent Mode "Vibrate"
    4 Variable Set %MOVTOG to 1
    5 Goto Action 10
    6 End If
    7 Variable Set %MOVTOG to 0
    8 Popup "Movie Mode OFF" (optional: time 1, font size 12)
    9 Silent Mode "Off"
    10 Stop

    Then, the profile to reject incoming calls. Create a new Event-based profile with the event as "Phone -> Phone Ringing" (priority normal, number blank)

    1 If %MOVTOG = 1
    2 End Call
    3 Send SMS (number %CNUM, message whatever you want it to be)
    4 End If

    And that's it! The final step is to create a Task desktop widget that points to the Movie Mode task you set up at the start. Then, whenever you press your widget, Movie Mode will turn on or off. While turned on, your phone will reject incoming calls on the first ring and send out the SMS.

  3. #3
    Neo Acoustic
    Join Date
    Feb 2008
    Location
    New Yawk
    Posts
    1,914

    Desk Clock

    This is a pretty basic one that turns on the little desk clock app if my phone happens to be plugged in and turned on its left side (ie., I've got my kickstand up). The only catch is that the angled orientation of the kickstand isn't enough to trigger the event, so I actually have to hold it at a 90 angle first to get the app to launch.

    This one doesn't even have a recipe. Just create a State-based profile with "Orientation: Left Side" as the first state. Then create a "Load App: Clock" task to go with it. Then go click on the left column (where it says Orientation) and add a second state, "Power: Any." That will cause it to only launch Clock if the phone is both on its side and plugged into a power source. Now when you charge your EVO at your desk you can pop out the kickstand and have a handy little clock-slash-weather report right there.

  4. #4
    Neo Acoustic
    Join Date
    Feb 2008
    Location
    New Yawk
    Posts
    1,914
    Or not.

    Okay, new tack: Suggest scripts you'd like to see made and I'll try to make them.

  5. #5
    Social Worker
    Join Date
    Jul 2004
    Posts
    4,799
    Sounds cool, but I am Androidless.

  6. #6
    Neo Acoustic Gordon_Bleu's Avatar
    Join Date
    Oct 2002
    Location
    Nashville
    Posts
    1,839
    Can Tasker detect a phone number (or contact name) on an incoming call and adjust the ringer volume?

  7. #7
    New Romantic
    Join Date
    Oct 2002
    Location
    ORA-01013 user requested cancel of current operation
    Posts
    8,669
    I've never heard of Tasker before this, but it sounds cool. I'm definitely going to check it out.

  8. #8
    Neo Acoustic
    Join Date
    Feb 2008
    Location
    New Yawk
    Posts
    1,914
    Quote Originally Posted by Gordon_Bleu View Post
    Can Tasker detect a phone number (or contact name) on an incoming call and adjust the ringer volume?
    Yes. You can set up entire strings of actions based solely on incoming numbers.

    In fact the command is actually in my recipe above. Instead of leaving the EVENT -> PHONE RINGING -> Number blank, you put in the number of the person to check for. Then, when they call, you can have your phone do whatever you want--change ringer volume, flash, sing, dance, even speak aloud "[name] is calling you"

  9. #9
    Neo Acoustic Gordon_Bleu's Avatar
    Join Date
    Oct 2002
    Location
    Nashville
    Posts
    1,839
    Works beautifully, once I figured out not to include dashes in the phone #.

  10. #10
    Neo Acoustic
    Join Date
    Feb 2008
    Location
    New Yawk
    Posts
    1,914
    Tasker also allows you to trigger profiles with gestures, but I can't think of anything that won't make me look like some tool standing there waving his phone around. Plus I wouldn't wanna accidentally trigger an event just because I swung my phone in the wrong direction absent-mindedly.

    Still, it'd be kinda cute to map, say, END CALL to a motion of you hanging up the phone like a landline.

  11. #11
    Neo Acoustic
    Join Date
    Feb 2008
    Location
    New Yawk
    Posts
    1,914

    Audio Recorder

    Came up with this one tonight, figured I'd share it.

    What it does
    One-press audio recording with no indication on the screen that recording is going on. I call it my "Just in case I get harassed by cops" button. Audio file is saved with the date/time stamp as the name.

    Whether or not recording someone without their knowledge is legal depends entirely on local laws. If you use this to record someone illegally, you do so of your own free will.

    The Recipe
    1 If %RECTOG = 0
    2 Popup Rec ON (optional: time 1 font size 12)
    3 Record Audio (see below)
    4 Variable Set %RECTOG to 1
    5 Goto Action 10
    6 End If
    7 Variable Sect %RECTOG = 0
    8 Popup Rec OFF (optional: time 1 font size 12)
    9 Record Audio Stop
    10 Stop

    Note about Step 3: long-press the File field to pull up a directory tree. Navigate to where you wanna save the files and then long-press folder icon to select it. Then tap the File field to get a cursor, and add "/%DATE - %TIME" to the end of it so it ends up looking something like media/audio/%DATE - %TIME

    Set microphone for Source

    As you can see, it follows the same basic principle as the Movie Mode toggle, with the action being the operative difference. Then just save the action and add a widget for it on the desktop. Press it once to begin recording, and once to end recording.

  12. #12

    Join Date
    Sep 2010
    Posts
    1

    Auto Silence phone when busy?

    Is there any way for Tasker to sync with your google calendar and know when you are 'busy'?

    I would like tasker to silence my phone automatically when my google calendar shows me as 'busy' (ie- I'm with a client), but other than that the phone will revert back to it's normal noise making state.

    rb

  13. #13
    Neo Acoustic
    Join Date
    Feb 2008
    Location
    New Yawk
    Posts
    1,914
    Quote Originally Posted by boomer View Post
    I would like tasker to silence my phone automatically when my google calendar shows me as 'busy' (ie- I'm with a client), but other than that the phone will revert back to it's normal noise making state.
    Unfortunately, the only way to have profiles based on external apps is if someone writes a plugin for it. And since there are no Google Calendar plugins for Tasker (yet) I don't think it's possible.

    However

    There are still ways to make your phone all silent-y that, while not automated, are still pretty surreptitious. Like this one, which completely silences your phone if you flip it over and re-noises it if you flip it back up. If you were to couple it with my "Movie Mode" recipe up top, you could even have it autoreject calls while turned over and send the caller a "I'm in a meeting, I'll call you back" text. Admittedly, it wouldn't do anything if the phone were in your pocket, but it's still something.

  14. #14
    Spinning Toe
    Join Date
    Jul 2003
    Location
    Gamertag/PSN/Steam: gsarjeant
    Posts
    770
    Actually, you can! Well, as long as it's a google calendar, which is the case here. There's a recipe for it on the Tasker Wiki. I just tested it, and it works:

    http://tasker.wikidot.com/muteinmeetings

    You can modify this by choosing specific calendars if you like (for instance, only mute for events on the Work calendar that show you as busy).
    Last edited by Aeroplane; 09-03-2010 at 08:05 AM. Reason: corrected late night typos

  15. #15
    Neo Acoustic
    Join Date
    Feb 2008
    Location
    New Yawk
    Posts
    1,914
    Well I'll be damned. I looked all over and couldn't find it. But then, I was looking mostly at EVENT triggers.

    That's pretty awesome.

  16. #16
    New Romantic
    Join Date
    Oct 2002
    Location
    ORA-01013 user requested cancel of current operation
    Posts
    8,669
    Damn, that's the worth of price of admission for tasker right there.

  17. #17
    Spinning Toe
    Join Date
    Dec 2008
    Posts
    676
    So, I just wanted to say, even if you guys aren't getting a lot of feedback in this thread, keep posting whenever you get a new idea. This is some cool stuff.

  18. #18
    Neo Acoustic
    Join Date
    Jan 2010
    Location
    Tokyo
    Posts
    1,832
    Yeah this is awesome-it's like you can make your phone do whatever you wish it to do. So much better than my lame iPhone. I can't even figure out if I can assign different ringtones (or even better, message tons) for different people.

  19. #19
    How To Go
    Join Date
    Dec 2008
    Location
    Wheeljack on Playdek.
    Posts
    10,213
    Am I the only one who reads this "Share your Talisker recipes"?

  20. #20
    Neo Acoustic
    Join Date
    Feb 2008
    Location
    New Yawk
    Posts
    1,914
    Just a reminder: I'm taking requests/suggestions. I can't promise I'll be able to deliver, but I more than welcome the challenge.

  21. #21
    New Romantic
    Join Date
    Feb 2007
    Location
    Location: Location: Location: Location: Location: Location: Location: Location: Location: Location:
    Posts
    5,495
    Can you replicate JuiceDefender's basic functions (turning data on and off on some schedule)? I found a recipe, but it only worked with non-CDMA.

  22. #22
    Neo Acoustic
    Join Date
    Feb 2008
    Location
    New Yawk
    Posts
    1,914
    Quote Originally Posted by tiohn View Post
    Can you replicate JuiceDefender's basic functions (turning data on and off on some schedule)? I found a recipe, but it only worked with non-CDMA.
    I can't find anything in Tasker that allows for CDMA mobile data control. Maybe if there were an app out there that did (like APNDroid), Tasker could interface with it and control it but otherwise I'm stumped.

    Do you have a link to the recipe? I'm curious to see how they managed to make it turn everything on every X minutes to poll and allow pushes to come through.

  23. #23
    Social Worker Armando Penblade's Avatar
    Join Date
    Apr 2008
    Location
    Raleigh, NC
    Posts
    4,524
    AFAIK, the stock Dialer app itself has to be rejiggered for data to be turned on and off without using wifi on CDMA phones. I base this on the thread on the Cyanogen(mod) forums where one of the (I guess now-) devs was working on the new power bar widget that would allow for turning data on and off. He had to provide a reprogrammed Dialer (as well as a few other minor enhancements) for it all to work properly. Thus far, Cyanogen(mod) is the only mod/adjustment I've found that lets me manage my data manually.

    If Tasker could somehow be linked into whatever that power widget does in Cy, I suppose it could theoretically be done on that ROM, at least. Rajah--any idea if Tasker can "tell" a widget to do something like that automatically?

  24. #24
    Social Worker nKoan's Avatar
    Join Date
    Apr 2004
    Location
    Reno, NV
    Posts
    4,218
    Tasker is pretty cool. I was just thinking the other day "I like all the keyboard clicks and other system sounds, but I don't want them going off while I'm at work."

    Tasker made it super easy to turn system volume to 0 between 8am and 6pm, but I still have notification sounds and ringer sounds.

  25. #25
    Neo Acoustic
    Join Date
    Feb 2008
    Location
    New Yawk
    Posts
    1,914
    Quote Originally Posted by Armando Penblade View Post
    If Tasker could somehow be linked into whatever that power widget does in Cy, I suppose it could theoretically be done on that ROM, at least. Rajah--any idea if Tasker can "tell" a widget to do something like that automatically?
    I've yet to figure out how to get Tasker to talk to Widgets without an actual plugin. I've been wrestling with that one for a while because I really want to incorporate RenderFX [RED] into my Movie Mode profile.

  26. #26

    Join Date
    Sep 2010
    Posts
    1
    i have a question, what is your MOVTOG variable I find no reference to what that variable is can you help me out?

  27. #27
    Neo Acoustic
    Join Date
    Feb 2008
    Location
    New Yawk
    Posts
    1,914
    Quote Originally Posted by v4ndyk3 View Post
    i have a question, what is your MOVTOG variable I find no reference to what that variable is can you help me out?
    That's just a variable I made up for the profile to track the state of the movie mode. It's not a system variabe.

  28. #28
    Hustle
    Join Date
    Jul 2009
    Location
    Hampshire, UK
    Posts
    300
    Quote Originally Posted by nKoan View Post
    Tasker is pretty cool. I was just thinking the other day "I like all the keyboard clicks and other system sounds, but I don't want them going off while I'm at work."

    Tasker made it super easy to turn system volume to 0 between 8am and 6pm, but I still have notification sounds and ringer sounds.
    Tell it to use silent mode (with or without vibrate) instead of setting the volume. That's what I do and it works fine.

  29. #29
    Social Worker nKoan's Avatar
    Join Date
    Apr 2004
    Location
    Reno, NV
    Posts
    4,218
    Quote Originally Posted by Gryff View Post
    Tell it to use silent mode (with or without vibrate) instead of setting the volume. That's what I do and it works fine.
    No, I still want it to ring, and give the normal notification beeps. I just want the system clicks to go away with each screen press.

  30. #30
    Social Worker
    Join Date
    Mar 2006
    Posts
    2,850
    Wow, this stuff sounds fantastic. I don't have an Android yet, but when I get one in a couple of months I will damn well be back in this thread!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •