Home Tasker Tasker Variable, that you may not care for

Tasker Variable, that you may not care for

The bursts of brilliance often come from stupid mistakes!

Today, I made a silly mistake. I posted a video revealing URL to my NodeRED server. Thankfully, Parth messaged me straight away and I removed the URL and deactivated my DNS before things went from bad to worse. (un)Fortunately, only 22 people got to see the URL according to the YouTube stats, so there are some benefits to not being famous! Before I tell you how my mistake can help you with TASKER, I’d like to thank Parth. Go and check his Instagram, he has some cool automation stuff on there too!

The mysterious Tasker variable and on boot profile

You might be thinking what is that variable I’m on about, and why should you care?  For some time now I have been doing a right thing for wrong reasons and until the DNS change, it didn’t really occur to me how helpful this change is.

When I share the Tasker profiles, I often replace the personal details with a custom (and fairly descriptive) variable. If the field holds my IP information, I would use something like %EnterYourIPHere before sharing the file with you. The initial reason was to not to share my personal data with you.

The correct use for that Tasker variable (something that I actually do correctly in my scripts) is to be able to change the personal details across all profiles at once, rather than checking every single task manually. I guess you can see where this is going.  By using variables instead of your API keys, usernames, IPs, and DNS details – you can quickly share the profiles without getting it all exposed and modify the access details with a single task.

To get this automated I opted out for “on boot” event. I never had a chance to use it, and I feel that making sure all the crucial variables are set on boot is a good way to look after your variables!  The profile is super simple:

Profile: On Boot 
	Event: Device Boot
Enter: Set Data 	
	A1: Variable Set [ Name:%NodeRedServer 
               To:enter the ip here Recurse Variables:Off Do Maths:Off Append:Off ] 	
	A2: Variable Set [ Name:%Username 
               To:enter your username here  Recurse Variables:Off Do Maths:Off Append:Off ] 	
	A3: Variable Set [ Name:%GoogleMAPI 
               To:enter the api key Recurse Variables:Off Do Maths:Off Append:Off ] 

You might be tempted to hardcode all that information in actions. Please don’t! It takes very little effort to do this properly and you will thank me one day!


The moral of the story is – don’t be me. Be better than me, let me make all the mistakes for you. This way you get all the joys of doing something right the first time around! And if my silly mistakes and semi-decent solutions caused you to feel sorry for me! You can buy me a coffee to cheer me up!

Project Download

Download project files here. Bear in mind that Patreon supporters have early access to project files and videos.


Nothing says "Thank you" better than keeping my coffee jar topped up!


Support me on Patreon and get an early access to tutorial files and videos.


Bitcoin (BTC)

Use this QR to keep me caffeinated in style with crypto-currency

New to Tasker?

Tasker Quick Start – Getting started with Tasker

From newb to not so newbie in 10 min

Best Tasker Projects

Tasker PC control – #Tutorial 3 (Apps menu)

Launch apps and websites from the mobile!

Tasker PC control – #Tutorial 2 (Volume Menu)

If you missed the part one, I strongly recommend you to check it out. It tells you all about the framework used,...

How to control your PC like a boss – Tasker Project

Control PC, and other devices from a custom notification system.

Bluetooth battery monitor – monitor any Bluetooth battery with Tasker

Measure the battery use of Bluetooth devices

The Minimal & Elegant giveaway WINNERS

Picking the winners live! Livestream and making a Tasker Winners project!

Essential Guides

Tasker: Seconds into DD:HH:MM:SS (dynamic)

It's time to.... ok it's a pun, but I will show you how to master time and convert seconds to DD:HH:MM:SS dynamically

4 ways to organise Tasker projects

Keep your Tasker tidy!

A better way to store Tasker credentials

The more clever way of managing credentials

Annoyed with dozens of AutoApps populating your app drawer? Here is a fix!

Clear your app drawer from the clutter in seconds

Putting AutoTools pie chart to a good use – SSID logger

Who wants a piece of the pie (chart)?