/r/tasker
In addition to the Official Tasker Wiki, User Guide, and Google Groups, this subReddit is a place for fellow Redditors to discuss, share, and submit Profiles, Tasks & Walkthroughs for Tasker, or to ask for help creating your own Profiles, Tasks, and questions in general related to Tasker (including plugins etc).
Subreddit Resources:
* [Read Me] Using Tags in Your Thread Titles
Formatting Tasker Code for use in reddit comments
How to Export / Import Files Into Tasker - Guide
** Tasks that Help You Use Tasker Itself
Free Alpha Autoapps and Tasker Icon Sets
Generate Tasker Direct-Purchase Licenses Yourself
Tasker Feature Request Submissions
Quick Search Links:
"Weekly / Monthly & Discussion" Threads
"Developer" - Tasker Updates & Releases
* List of Tasker Plugins and 3rd Party Apps
Learning Guide Links:
* 1,001 Tasks and Profiles - Best, Coolest, Most Common and Useful
Pocketables.com Beginner’s guide to Tasker (New UI)
RoryCodes.com Tasker Tips & Tutorials from /u/froryrory
Tasker Quick Start Setup Guide from /u/Quintaar
Pocketables.com Tasker Guide List
Some Tasker Technical Stuff:
Toggling Wifi or Bluetooth via Tasker In Recent Android Versions using the Tasker Settings app
Granting ALL Special Permissions - ADB & Tasker
IFTTT Tasker Integration via AutoRemote
ADB over Wifi - Enabling Without a MAC or PC
AutoApps Command System Tutorial and Reference
Tasker Scheduling/Priority System - A Detailed Guide
New Project/Profile/Task "PPT Variables" - Quickly Find The Variables' Location, Names & Values!
All Previous Versions of Tasker With Notes For Features & Changes In Each
List of all Tasker Built-In Variables
TaskerNet Search Bot - How to use here
TaskerNet Search Engine Website
Learning Guide Videos:
AutoApps YouTube Channel and João Dias Channel
Tasker 101 Tutorials on YouTube by HollywoodFrodo
Tasker 101 Tutorials on YouTube by /u/Quintaar
Tasker How-To Videos on YouTube by /u/-Juan_M-
Tasker Tutorials on G+ & YouTube by /u/ryoendeprouw
Tasker Video Tutorials by /u/techentourage
Have more useful links you think should be in the sidebar? Send a modmail!
Related Subreddits:
/r/TaskerNet
/r/JoinApp
/r/Android
/r/AndroidRoot
/r/AndroidTechSupport
/r/AndroidApps
/r/AndroidUsers
/r/AndroidQuestions
/r/TaskerFiles
/r/Not_Enough_Tech
/r/tasker
Can anybody help I want to use the trigger of when private space is unlocked and locked to run automations
Hello everyone, I’m fairly new to Tasker and would like some help.
I’d like to know if it’s possible to automatically reply to a message whenever the group owner sends one.
If so, how can I set it up?
Also, is it possible to add a delay of 1–2 seconds before the auto-reply?
Thanks!
Hello. I don't know if this is the right place to post, but I need a tool that can make an automated phone call that i can schedule when I want it to happen, or set a timer, that plays a voice message, preferably text-to-speech, or a pre-recorded message whatever it works. Note that i'm not a programmer. I'm just a layman who needs a tool. I've found some other apps that do the job, but they don't have the ability of voice message. So i figure you can help me.
Hey everyone,
I found a promising project on GitHub that allows running a local LLM on Android. It uses models like gemma2.gguf or similar, essentially letting you have a small personal "ChatGPT" on your device.
I had an idea to integrate this with Tasker by creating a plugin. This could enable tasks like:
Everything would remain local, running directly on the device. The project is available here:
🔗 GitHub - Android-Document-QA
Unfortunately, I lack the skills to create this plugin myself, but I believe that if someone capable of developing it steps in, they could find great synergy with the APK creator of the LLM project.
Would anyone be interested in working on this?
I want to make it so that when I send a message in a specific WhatsApp group, the message will automatically be sent as an SMS to specific contacts. Can anyone help me with this?
Got buzzkill for 1 phone. Works well blocks dumb notificationa os does. But can it block toast notification. Those are far worse cause you cant dismiss them. Best way to block toast notifications?
Hi all.
I didn't found the event in tasker to fire a task when we click the "I'm awake" button into the wake-up check notification from Sleep As Android.
Maybe with AutoNotification, but I can only fire something when the notification is canceled, whatever the button clicked.
Can you guys can hep me ? Thanks a lot.
Sometimes if i have a long script it will just keep going and going. IS there a way I can stop it immediately ?
Is it possible to export an app and make it hidden. So that when installed on another phone, the application won't appear in the launcher's list of applications?
I'm making them in the app but when I leave it goes away
It does the action once then stops. The only thing I can think of is copy and paste the code multiple times.
I'm working on a Tasker setup where a Parent task calls a Child task via the Perform Task action, passing parameters using %par1 (a comma-separated list) and %par2 (a custom separator if needed). The Child task processes these parameters and uses them in an action, such as Variable Query, which has optional fields.
However, I’ve run into a problem: I want to pass a value (stored in %par1(2)) into the Default field of Variable Query (or any optional field), but only if it has a value. If %par1(2) is blank, I want Variable Query to behave as if the Default field was never filled in at all.
The issue is that Tasker doesn’t seem to have a way to make an optional field truly behave as if unset when passing a variable into it. Using a space gets close, but is noticeably different in some cases, and a cleared or unset variable resolves to its name (as expected).
The only solution I can think of is using if-else logic to call the Variable Query either with or without the Default parameter, but that scales poorly when multiple optional parameters are involved. Is there a cleaner way to handle this? Maybe a trick to make Tasker treat an empty variable as truly omitted in an action parameter?
Here's the code for the task I've got:
Settings: Run Both Together
<par1 Inputs (comma separated):
Title, Type, Default, Background, Timeout
All are optional. Type defaults to 1 (Normal Text), Timeout defaults to 40, and the rest default to blank.
Valid inputs for Type: numbers 1-8, as well as the exact text of the items in the "type" field of the variable query action (names included for better readability of calling actions).
par2: if set, par1 is interpreted as separated by the contents of par2 instead of a comma.
Output: the user input, or "🥫📱" if the user clicks the X button.>
A1: Anchor
A2: If [ %second_level !Set ]
A3: If [ %par2 Set ]
A4: Variable Set [
Name: %separator
To: %par2
Structure Output (JSON, etc): On ]
A5: Else
A6: Variable Set [
Name: %separator
To: ,
Structure Output (JSON, etc): On ]
A7: End If
A8: Variable Set [
Name: %second_level
To: 1
Structure Output (JSON, etc): On ]
A9: Perform Task [
Name: Tower Var Querry
Priority: %priority
Parameter 1 (%par1): %par1
Parameter 2 (%par2): %separator
Return Value Variable: %return
Local Variable Passthrough: On
Limit Passthrough To: %second_level
Structure Output (JSON, etc): On
Continue Task After Error:On ]
A10: Variable Set [
Name: %return
To: 🥫📱
Structure Output (JSON, etc): On ]
If [ %return !Set ]
A11: Return [
Value: %return
Stop: On ]
A12: Else
A13: [X] Variable Set [
Name: %par1
To: Set to:
Recurse Variables: On
Structure Output (JSON, etc): On ]
A14: Variable Split [
Name: %par1
Splitter: %par2
Delete Base: On ]
If [ %par1 Set ]
A15: For [
Variable: %item
Items: 1,3,4
Structure Output (JSON, etc): On ]
A16: Variable Set [
Name: %par1(%item)
To:
Structure Output (JSON, etc): On ]
If [ %par1(%item) !Set ]
A17: [X] Flash [
Text: %par1(%item,0)
Tasker Layout: On
Dismiss On Click: On
ID: var_querry_flash ]
A18: End For
A19: Variable Set [
Name: %par1(5)
To: 40
Structure Output (JSON, etc): On ]
If [ %par1(5) !Set ]
<Type 1: Normal Text>
A20: Variable Query [
Title: %par1(1)
Variable: %return
Input Type: Normal Text
Default: %par1(3)
Background Image: %par1(4)
Layout: Variable Query
Timeout (Seconds): %par1(5)
Show Over Keyguard: On ]
If [ %par1(2) eq 1 | %par1(2) ~ Normal Text | %par1(2) !Set ]
<Type 2: Caps/Word>
A21: Variable Query [
Title: %par1(1)
Variable: %return
Input Type: Caps / Word
Default: %par1(3)
Background Image: %par1(4)
Layout: Variable Query
Timeout (Seconds): %par1(5)
Show Over Keyguard: On ]
If [ %par1(2) eq 2 | %par1(2) ~ Caps/Word ]
<Type 3: Caps/All>
A22: Variable Query [
Title: %par1(1)
Variable: %return
Input Type: Caps / All
Default: %par1(3)
Background Image: %par1(4)
Layout: Variable Query
Timeout (Seconds): %par1(5)
Show Over Keyguard: On ]
If [ %par1(2) eq 3 | %par1(2) ~ Caps/All ]
<Type 4: Numeric/Decimal>
A23: Variable Query [
Title: %par1(1)
Variable: %return
Input Type: Numeric / Decimal
Default: %par1(3)
Background Image: %par1(4)
Layout: Variable Query
Timeout (Seconds): %par1(5)
Show Over Keyguard: On ]
If [ %par1(2) eq 4 | %par1(2) ~ Numeric/Decimal ]
<Type 5: Numeric/Integer>
A24: Variable Query [
Title: %par1(1)
Variable: %return
Input Type: Numeric / Integer
Default: %par1(3)
Background Image: %par1(4)
Layout: Variable Query
Timeout (Seconds): %par1(5)
Show Over Keyguard: On ]
If [ %par1(2) eq 5 | %par1(2) ~ Numeric/Integer ]
<Type 6: Password>
A25: Variable Query [
Title: %par1(1)
Variable: %return
Input Type: Password
Default: %par1(3)
Background Image: %par1(4)
Layout: Variable Query
Timeout (Seconds): %par1(5)
Show Over Keyguard: On ]
If [ %par1(2) eq 6 | %par1(2) ~ Password ]
<Type 7: Phone Number>
A26: Variable Query [
Title: %par1(1)
Variable: %return
Input Type: Phone Number
Default: %par1(3)
Background Image: %par1(4)
Layout: Variable Query
Timeout (Seconds): %par1(5)
Show Over Keyguard: On ]
If [ %par1(2) eq 7 | %par1(2) ~ Phone Number ]
<Type 7: Passcode>
A27: Variable Query [
Title: %par1(1)
Variable: %return
Input Type: Passcode
Default: %par1(3)
Background Image: %par1(4)
Layout: Variable Query
Timeout (Seconds): %par1(5)
Show Over Keyguard: On ]
If [ %par1(2) eq 8 | %par1(2) ~ Passcode ]
A28: Return [
Value: %return
Stop: On ]
A29: End If
Crossposting to share a neat project I just threw together. Uses Python on a Raspberry Pi to get a variable that gets sent to my phone. Tasker does the magic of converting the data.
https://www.reddit.com/r/RASPBERRY_PI_PROJECTS/s/SDt5UhDZNh
Here is the task that runs when I get the AutoRemote message of "dogfood|x.xx" where the x.xx is the weight in pounds.
Task: Dog Food
A1: Variable Set [
Name: %DOGFOOD
To: %armessage
Structure Output (JSON, etc): On ]
A2: Variable Split [
Name: %DOGFOOD
Splitter: | ]
A3: Variable Set [
Name: %DOGFOODPERCENT
To: %DOGFOOD3 / 15
Do Maths: On
Max Rounding Digits: 3
Structure Output (JSON, etc): On ]
A4: Variable Set [
Name: %DOGFOODPERCENT
To: %DOGFOODPERCENT * 100
Do Maths: On
Max Rounding Digits: 3
Structure Output (JSON, etc): On ]
A5: Run Shell [
Command: date +"%d%b%y"
Timeout (Seconds): 0
Store Output In: %DOGFOODLOGDATE
Use Global Namespace: On ]
A6: Run Shell [
Command: date +"%H:%M"
Timeout (Seconds): 0
Store Output In: %DOGFOODLOGTIME
Use Global Namespace: On ]
A7: Notify [
Title: Dog Food Level
Text: %DOGFOODPERCENT% (%DOGFOOD3) at %DOGFOODLOGTIME, %DOGFOODLOGDATE
Icon: mw_maps_local_drink
Number: 0
Priority: 3
LED Colour: Purple
LED Rate: 0 ]
If [ %DOGFOODPERCENT < 15 ]
A8: Minimalistic Text [
Configuration: %DOGFOODPERCENT = %DOGFOODPERCENT%
Timeout (Seconds): 0
Structure Output (JSON, etc): On ]
A9: Minimalistic Text [
Configuration: %DOGFOODLOGTIME = %DOGFOODLOGTIME
Timeout (Seconds): 0
Structure Output (JSON, etc): On ]
A10: Minimalistic Text [
Configuration: %DOGFOODLOGDATE = %DOGFOODLOGDATE
Timeout (Seconds): 0
Structure Output (JSON, etc): On ]
I also have a similar scale project on a water cooler where the scale is under the water jug.
The fish can appear randomly on the screen in a rectangular area and when the fish pop up its a shadow, when you click the shadow a minigame pops up at the bottom with a blue circle that slides at random speed across a small slider. Is this possible to automate?
I made something to get random wallpaper from API and set it, it worked on testing but when I make an app with App Factory it's an error when setting wallpaper.
My objective is a two way bluetooth communication between a device (smart band , smartwatch, etc. ) and Tasker on my non rooted phone using GrapheneOS (i can adb grant some rights if necessary).
So I need to be able
I did some research and this is what I found:
Am I correct ? What am I missing ?
The two options I consider are
Any advice is welcome !
Thanks
Edit: I also have AsteroidOS watches. But I sadly haven't found anything on that front.
So I just got Tasker and have zero experience or clue how it works or how I should get it working, help pls, this K2HD_EFFECT 1 setting currently I can't get working on SetEdit app and reverts to "0" value alltime. Help pls!
Could someone help me with the JSON Read feature please?
I tried for a few hours last night but am not too familiar with JSON and am stuck
I've used a URL tracer, where I put in a shortened URL from Amazon, and it returns something like this:
{ "timestamp": 123456, "apiVersion": "1.0", "apiStatus": "success", "apiCode": 200, "meta": {...}, "data": [ { "url": "https://amzn.eu/d/a1b2c3", "status": 301, "headers": [ { "name": "server", "value": "Server" }, { "name": "location", "value": "https://www.amazon.co.uk/dp/ABC12345?..." } ] } ] }
There are a lot more name / value entries, but hopefully this is a decent simple example
I can get everything under headers, each name and value, but I'm trying to get the value = ? where name = location
What do I need to do please? Again I'm not too familiar with it and have read all the guides and examples I can find, but just can't do it
Thank you
I only need the app to open if it's the first 5 days of the month. Basically it's a finance app and i want to check if interest got credited.
I am using intents in Tasker to trigger macros in macrodroid but I can't figure out how to pass Tasker variables/data to macrodroid variables using the intent
I haven't bothered trying to make new tasks for awhile as the essentials that I've been using for years work fine maybe with just a modification for new phones or android versions... On to the point. I remember being able to create a custom Tasker notifications that I could use to perform simple little tasks like killing persistent media apps or display information or whatever and it used to be quite customizable but now this feature seems to be nerfed. Is this android restrictions or am I missing something?
To check for more details about my project i recommend to go here:
https://www.reddit.com/r/tasker/comments/1i9nqqm/updating_my_notesreminder_widget_v2_project/
What's new
Remember to backup your notes list before importing!
Link to import the project from Taskernet:
Bumble premium’s almost up, and guess what? Not a single like. Not one! So, I did what any unhinged genius would do -- unleashed a Tasker swipepocalypse!
Video: https://www.reddit.com/r/BumbleGirls/s/5nDmURLsDa
Profile: Auto Bumble Swipe
Event: Volume Long Press [ Type:Volume Down Additional Time (Check Help):* ]
Application: Bumble
Enter Task: Perform Swipe
A1: Flash [
Text: Auto Swipe On
Continue Task Immediately: On
Dismiss On Click: On ]
A2: App Info [ ]
A3: Perform Task [
Name: AutoInput Swipe Right Gesture
Priority: %priority ]
A4: Wait [
MS: 135
Seconds: 0
Minutes: 0
Hours: 0
Days: 0 ]
A5: If [ %app_package eq com.bumble.app ]
A6: Goto [
Type: Action Number
Number: 2 ]
A7: End If
A8: Flash [
Text: Auto Swipe Off
Continue Task Immediately: On
Dismiss On Click: On ]
I work at a job where I have to take lots of photos to help me remember information, and I'm tired of manually deleting them everyday.
I want to create a profile when I unlock my phone and when both wifi and mobile data are off, I want to show connectivity panel.
I am able to set unlock option and show connectivity panel. The condition that when both wifi and mobile data are off is messing me up. I tried going to if in task function and set %WIFI0 AND %MOBILE0
But it is showing connectivity panel every time I unlock the phone.
P. S I am just a beginner in tasker
Function No Net
If %WIFI ~ off & %MOBILE ~ off
2. Settings Panel
Type Connectivity
Edit:
A big thanks and shout out to u/Cascading_Neurons for helping me (in another thread)
Alguém poderia me informar se é possível montar um redirecionamento de aplicativo com o tasker, por exemplo, do whatsapp para o anki, sendo que aquele só será liberado após uma quantidade de minutos específica?
Hey guys, so I am new to tasker. Basically I am learning tasker by creating simple tasks and importing preexisting tasks.
So what I want is when I open an app (I hope profile trigger is Application-launch app) I need the device to show my media volume panel.
Any help would be appreciated
Edit:
A big thanks and shout out to u/Cascading_Neurons for the help. Also for u/mehPhone for inspiring u/Cascading_Neurons
How to do to do this? Thanks on advance
Currently we have two type of variable. Global and local. But one thing I think could be useful are a form of "class" variables, that are only accessible within the task that created them, but persistent between runs of the task
A lot of my global vars hold the last successful run time of a task, to be used earlier in the task as a throttle/debounce for some particular conditional part of the task, and it would be nice to have a way to organize them
Answer: The .match(regex) method was working, but its output is an array object and I mistakenly assumed js would convert it to a string (doh!). If I really wanted a string, adding the .ToString() method to .match() (text.match(regex).ToString()) would do that, but creating an array in Tasker before calling the scriptlet and assigning .match(regex)'s output to it was what I ultimately did. Many thanks to u/Cascading_Neurons for setting me straight.
According to W3schools.com, string.match(/ai/gi) is supposed to return an array of every match in "string", but I've tried lots of variations of the following statement and nothing's worked update: (with and without the g and i qualifiers). Do I need to specify a different js library or something? All help appreciated.
matchvar = string.match(/regular expression/)