HomeTaskerContent aware Tasker fingerprint reader

Content aware Tasker fingerprint reader

Got fingerprint scanner? Press to Impress!

Fingerprint readers are pretty much useless in the default state. You can unlock the phone, or authorize a purchase, but other than this the usage of this extra hardware is limited. It always felt to me like a missed opportunity.
Until now!

Meet the content-aware Tasker fingerprint reader

This very simple project will assign multiple functionalities to the fingerprint reader depending on what you are doing or where you are. In this example, I will show you how instantly cast the current website to the big screen (PC).  This way you will be able to add additional functions to the reader depending on windows opened, or your location. Imagination is your limit.

How does it work

Bear in mind that the Fingerprint scanner tools app is new and under active development. The Tasker support is limited, however, this is OK. We are going to use Tasker to assign more than one profile to the fingerprint scanner. When the fingerprint is activated, Tasker will check what else you have been doing (or where you are) and will execute the correct profile accordingly. If your fingerprint scanner is in front of the device, consider using a swipe action instead, to share your URL.

EDIT (May 2020): Since LogCat, you don’t have to use any plugins to pull it off. You can assign custom fingers to your actions – see this post for more details.

Fingerprint scan

TASKER TASK: Scanned Finger
Scanned Finger 
	A1: Variable Set [ Name:%FingerScanned To:1 Do Maths:Off Append:Off ] 
	A2: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ] 
	A3: Variable Set [ Name:%FingerScanned To:0 Do Maths:Off Append:Off ]

We need to get the reader to act as a universal trigger for our conditions. We will need a task Scanned finger that will trigger other profiles for us. We can link this to a variable %FingerScanned. The profile will change the value of this variable from 0 to 1 for 2 seconds. This should be sufficient for Tasker to notice the change, and respond to it. If you have any issues with Tasker responding tho the variable change, try increasing the wait action to 3 sec. Open the Fingerprint scanner tools and assign this task.

Cast the current Chrome window

TASKER PROFILE: Cast Chrome
Profile: Cast Chrome 
	Application: Chrome
	State: Variable Value [ %FingerScanned eq 1 ]
Enter: Chrome 
	A1: AutoInput UI Query [ Configuration:Only Visible: true
		Only Clickable: false
		App Package: com.android.chrome
		Check Screen State: false
		Text: ((?<=https:\/\/|https:\/\/|https:\/\/www.|https:\/\/www.|www.))?.*
		Regex: true
		Variables: address Timeout (Seconds):20 ] 
	A2: Join Send Push [ Configuration:Device: Chrome@work
		Url: %address Timeout (Seconds):60 ] 

When the chrome is opened and the variable %FingerScanned changes to 1, our profile will share the current URL via Join to a device of our choice. You can prompt a device selection if you wish, but for super fast sharing, I designated a single device for doing so.
I’m using the Autoinput UI Query to get the value of the URL in the browser. In most of the cases, the web address will start with www or http(s) and the combination of thereof.
To capture the URL we will need a regex:

((?<=https:\/\/|https:\/\/|https:\/\/www.|https:\/\/www.|www.))?.*

If you have any issues configuring the Query – use Variable Setup to return to the Chrome and select the address bar. This will set up the URL capture automatically. I have also set up a custom variable %address which will contain the address from the chrome tab.
Joao has promised me to update this in the next Join patch so quite possibly actions 2-4 won’t be needed anymore.
The last action is the Join Push.  Go to the URL and enter %address . This way the URL will be pushed correctly to the PC and will open the website automatically.

Conclusion

As you can see, this way we can assign multiple actions to our reader despite imposed limitations. I have a whole collection of additional Fingerprint Actions for you.  I reached out to the dev Daniel Huber, and more Tasker functionality is planned. Now that you know how to use the fingerprint reader without bonding it with a single task permanently, nothing should stop you from adding extra actions to other apps.
Perhaps, casting a YouTube video with a single tap (no Chromecast needed) should be the next tutorial?  Let me know what do you think and how you going to use the reader in your profiles.
Happy Tasking!

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.

How to wake on LAN computers and put it to sleep with Power Menu,...

0
How to Wake on LAN properly via Android, Alexa, Google Assistant and Web

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.

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)?