HomeTaskerTasker Smart NavBar #3 Time and Location

Tasker Smart NavBar #3 Time and Location

At the right time, in the right place!

The NavBar can turn into anything you want really. From extra shortcuts to icons set for reminders and contextual actions. In this profile, I will show you how to control the NavBar actions using time and location contexts. It’s a perfect way of having extra actions that are not only timed, but appear in certain locations.

NavBar actions: Time and Location

Setting a timer isn’t a big (or complicated) thing, but paired with a variable that contains your location information (like in this case %DEVICELOCATION – if you are interested why the variable is in CAPS, read this post) can create very interesting interactions. In the NavBar #1 I used a profile that would set the variable
%DEVICELOCATION based on WIFI connected at that time (for simplicity choices are: home, work, elsewhere).

TASKER PROFILE: Device Location
Profile: Device Location 
	State: Wifi Connected [ SSID:* MAC:* IP:* Active:Any ]
Enter: Set Dev Locale 
	A1: Variable Set [ Name:%DEVICELOCATION To:home  ] 
		If [ %WIFII ~R SlowFrog|FastBerry ]
	A2: Variable Set [ Name:%DEVICELOCATION To:work  ] 
		If [ %WIFII ~R ITC UK ]
	A3: Variable Set [ Name:%DEVICELOCATION To:elsewhere  ] 
	If [ %WIFII !~R SlowFrog|FastBerry|ITC UK ]

Exit: WIFI reset 
	A1: Variable Set [ Name:%DEVICELOCATION To:elsewhere  ] 

The combination of the time context and the variable state gives me a possibility to create an alarm reminder in my NavBar. This alarm can be set or ignored and it will go away after a specified time.

A perfect example of use would be my break time at work. It happens at night between 1-2 am, when I’m connected to work WiFi, lasts 1h 30 min and I get to have a nap on the company’s sofa! It’s good to have a one-click timer appear in my NavBar, but because the break doesn’t have a fixed start, I cannot automate it.

NavBar Alarm Reminder

Because the time and Location context will do all the heavy lifting for us, all we have to do is link a NavBar task that links to the correct task.

TASKER PROFILE: NB Alarm Reminder
Profile: NB Alarm Reminder 
	Time: From 12:40PM Till  2:40PM
	State: Variable Value  [ %DEVICELOCATION ~ home ]
Enter: NB Alarm 
	A1: Navigation Bar [ Left:back[1.0] 
						 Center:home[1.0] 
						 Right:task(NB Set Alarm)[1.0] ] 

Exit: NB A Reset 
	A1: Variable Set [ Name:%NBactiveApp To:none  ] 
	A2: Navigation Bar [ Left:back[1.0] 
						 Center:home[1.0] 
						 Right: ]   

You will also need a reset task that will restore the original NavBar once the event hours or location changes.

When the NavBar icon is pressed, a preset alarm is set and the NavBar returns to the original one.

Smarter NavBar

This is a stand-alone version of the Smart NavBar actions. Once I created the standalone versions for each NavBar Task I will show you how to integrate it together. You can read the tutorial about this now!

Conclusion

This is not a complicated setup, but with some clever planning, you could launch tasks, set up dynamic reminders, create shortcuts and so much more. Simplicity doesn’t mean it’s not smart! Let me know how you are going to use NavBar actions: Time and Location in this Reddit thread.

Project Download

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

PayPal

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

Patreon

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

image/svg+xml

Bitcoin (BTC)

Use this QR to keep me caffeinated with BTC: 1FwFqqh71mUTENcRe9q4s9AWFgoc8BA9ZU

New to Tasker?

Tasker Quick Start – Getting started with Tasker

0
From newb to not so newbie in 10 min

Best Tasker Projects

How to use Raspberry PI as WOL (wake on lan) server

0
While you could wake up your PC from a mobile directly, having a dedicated server capable of doing so is the best solution. The reason is simple. You can hook up as many devices as you wish with a single endpoint. This is why Raspberry Pi is perfect for this.

7 awesome Bluetooth keyboard shortcuts for Android

0
7 unique Android shortcuts that you can add to any Bluetooth keyboard.

Smart overnight charging with Tasker

0
Still keeping your phone plugged in overnight? Try smarter overnight charging with this profile

One thing that Join app can’t do and how to fix it with Tasker

0
It's not possible to share the clipboard automatically between join accounts registered to 2 different emails. But you can fix this with tasker.

Charge Test – Tasker charger performance tool

0
Turning Tasker into productive tool for monitoring chargers

Essential Guides

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

0
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

0
Keep your Tasker tidy!

A better way to store Tasker credentials

0
The more clever way of managing credentials

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

0
Clear your app drawer from the clutter in seconds

Putting AutoTools pie chart to a good use – SSID logger

0
Who wants a piece of the pie (chart)?