The core functionality of the app is a trigger-action principle. In this post, I briefly describe how Tasker works, then list simple things I've implemented in Tasker, and lastly describe what things in general Tasker can be useful for. It costs a few dollars and takes a bit of time to learn, but once you learn the basics it is quite useful. Stop: restore the display timeout by calling the Caffeinate Reset task with the Perform Task action.Tasker is a general purpose automation app for Android.This button appears only when there are other steps available. Increase: increases the timeout by calling the Caffeinate task with the Perform Task action.Else: branch of execution that runs if Action 4 condition is false.Īctions 6 and 7 show a persistent notification with information about the display timeout.It shows only the Stop button described below. It runs this action only if the %caffeinateStepIndex is equal to the %caffeinateSteps array size. Notify: shows a notification as explained below.It shows the two buttons described below. It runs this action only if the %caffeinateStepIndex is less than the %caffeinateSteps array size. Display Timeout: sets the display timeout to the value of %caffeinateSteps at the %caffeinateStepIndex.If: branch of execution that runs if the %caffeinateStepIndex variable is less than or equal to the %caffeinateSteps array size.Variable Set: sets the value of the %caffeinateState variable to true.Anchor: defines an “Initialize variables” label.On the center and the right, the configurations of respectively Action 6 and 7. Perform Task: runs the Caffeinate Reset task to restore the display timeout and the values of the variables.Anchor: defines an “Initialize Caffeinate” label.Goto: goes back to the Anchor with the “Define step” label if the value of the %input variable is yes.Pick Input Dialog: asks the user to add another step and saves it in the %input variable.Array Push: adds the %input to the %caffeinateSteps array at %caffeinateStepIndex position.Input Dialog: asks the user for a step of display timeout in seconds and saves it in the %input variable.Variable Add: increases the %caffeinateStepIndex variable by 1.Variable Set: sets the value of the %caffeinateStepIndex variable to %input.Input Dialog: asks the user for the default display timeout in seconds and saves it in the %input variable.Anchor: defines a “Define default” label.Variable Set: sets the value of the %caffeinateStepIndex variable to 0.Array Clear: clears the value of the %caffeinateSteps array.Anchor: defines a “Prepare array” label.In the following paragraphs, I’ll explain the tasks introduced before. There is also a profile, called Caffeinate Reset, that runs the homonym task when the user turns off the display. Caffeinate Old: the original task from the story at the beginning. ![]() ![]()
0 Comments
Leave a Reply. |