abc

🏠 📩 📨Projects

Install Task

Some of my projects require a few small files downloaded. For these projects there will be a task called IN Install … in the project. Run this task to automatically download the files. The install task can be deleted if you wish once it has been run. You can choose where to save the files. The install task will create any directories that are required. By default the files are created in directories under the normal Tasker directory. There may be directories called “javascript”, “userdata”, “templates” etc. If you chose a different location for these directories, you will need to edit one or more tasks in the project to change a variable %filesbasedir to your chosen location.

Beta Tester Tasker

The version of Tasker in Beta Testing has some very useful features. The new text dialog action is very useful. When it is released to production Tasker I will replace the scene that the install process uses.

A very powerful new feature is pass-through of local variables. Where possible I have avoided using these to allow my projects to be installed on the production version of Tasker. Some projects do use this feature. They are marked below. To use these projects you either need to join the Beta Testing program via the Play Store, or wait until the new production version of Tasker is released.

Import clashes - importing more than one of my projects

Some of my projects are entirely self-contained. Others may share a profile. Those with the import task share tasks and a scene.

Tasker may respond to import clashes (importing a new project that contains profiles, tasks, and/or scenes that already exist with the same name) in different ways. Currently I have seen:

Compiled Code

A few of my projects include an optional Tasker task compiled by the Tasker App Factory. If you want to use this, you can compile the task yourself, or download it from this site. Though my tasks are safe, I would always recommend compiling tasks yourself, as that way you can check that they don’t contain malicious code.

The first time you run one of my compiled tasks, you will see two notifications. One advises that Tasker needs to be given permission to appear on top of other apps. This is not neccessary for my tasks, so just tap on “Stop Reminding”. The other says it is a useless notification. Go to the notificaion setting and turn off the “Placeholder” and “Monitor” notifications.

Naming Conventions

Projects

HTML Writer

If you are writing Html, then using an IDE is obviously the best way to go about it. But sometimes you might have some spare time when you only have your phone, and you want to write that Tasker Scene WebView Element, or add something to your website. When using a text editor such as Quick Edit this project takes you close to using an IDE.

The best way to see what this project does, is to watch the video.

Video
Details

Installation

Use

Usage is simple. Start task TL Write Html.

Customisation

If you don’t want to launch the html writer from the Samsung Sidebar, you can delete profile Runtask Intent Received and task Write Html.

The project comes with many useful html elements and attributes already configured, but it is very easy to change them and add more.

Global Variables

None.

Download Project XML

Logging

When debugging, it is often useful to log data. This project lets you do that and provides an easy way to view the log.

Video
Details

Installation

Use

To log data in your task, add a Run Task action for _TL Log It. %Par1 is the name of the log. Wherever you use the same logname, data will be appended to the same log. %Par2 is the data you want to log. Prefix the logname with © if you want the log displayed immediately after the log is updated (call). Prefix the logname with ® if you want to wipe the log clean before it is written to (replace). Prefix with ©® if you want to do both.

To view logs, start TL Show Log.

Customisation

If you don’t want to launch the log viewer from the Samsung Sidebar, you can delete profile Runtask Intent Received and task Show Log.

There are two characters that have special meaning to the logger, see below. If these are not available on your keyboard edit _TL Log It and choose some other characters.

Global Variables

None.

Download Project XML

Debugging local variables

Sometimes, when debugging a task, you just need to see the value of local variables and perhaps change them. By copying in just two actions at the start of the task you are debugging, you can now display and change local variables. You can even add a limited type of breakpoint.

Video
Details

Installation

Customisation

If you don’t want to launch the log viewer from the Samsung Sidebar, you can delete profile Runtask Intent Received and task Show Debug.

Use

Open the task Copy Code and copy the first two actions. Paste these into the start of the task you want to debug. Step through the task you are debugging. When you want to see local variables, run the task TL Show Debug. I prefer launch this from the Samsung Sidebar, but you could just step out of the debug task and launch it from the Tasker editor. Or you could use a profile, perhaps by shaking your phone.

Watch the video to see how to use the user interface to view and change variables, create new ones, expand and collapse arrays, etc.

This project reserves variable names starting %debug_ for its own use, so you should never use these variable names yourself, just in case you wish to debug the task.

To add a pseudo breakpoint, copy the last action from Copy Code and paste it to the point where you want to pause the task. The variable viewer will be shown when the action is reached. It is only a pseudo breakpoint, so you can only resume the task running when you have inspected / changed variables. You cannot switch to single stepping as you would with a real breakpoint. It is very important to resume the task you are debugging. If you don't it will be left hanging and you will soon be unable to start new tasks. If this does happen you can either stop and restart Tasker, or use an action to kill named tasks for the name of the task you were debugging. In general, it is much better to start your debugging by single stepping through the task to be debugged if at all possible.

The debugger is slow. It's written in Tasker and it has a lot to do. Be patient, it's better than nothing. If you can get away with just logging a few variables, using my Logger project might be better.

Global Variables

None.

Download Project XML

Fast charging

Your phones battery with have a longer lifespan if you turn off fast charging and leave it off most of the time. The problem is that when you need to turn it on, it’s a bit of a trawl through settings to get to turn it on/off. This project creates tasks that toggle the setting for you. On my phone I have wired fast charging in the quick settings, but leave wireless charging as a shortcut on the home screen. I have fast wired charging automatically turn off when I unplug my phone, but this is optional.

Fast Charging disabled
Fast Charging disabled
Fast Charging off
Fast Charging off
Fast Charging on
Fast Charging on

Details

Installation Task

There is no installation task for this project.

Customisation

Remove the Custom Setting Action from CH Wired Charging Off if you don’t want fast wired charging to revert to off when you unplug your phone.

This project user the 1st Tasker Quick Setting. Change all the Setup Quick Setting Actions in all tasks if you are already using the first setting.

Manually add the Tasker Quick Setting to your quick settings panel.

Global Variables

Download Project XML

Turn off Bluetooth reminder

If you don’t need Bluetooth on, your battery charge will last longer if you turn it off. My earbuds automatically turn on Bluetooth when I take them out of their case. I found I was forgetting to turn Bluetooth off again when I’d finished using them. This project issues a notification fifteen minutes after the last Bluetooth device has disconnected. The notification is cancelled if another Bluetooth device connects.

This project uses the Auto Notification plugin. You can edit the tasks to use the standard notification if you don’t have this plugin.

Details

Installation Task

There is no installation task for this project.

Customisation

Download Project XML