We actually had some fun last week going over some of our best Android customization posts from the year, it reminded us some of the fun we’ve had. It’s almost the new year now, and forgive me for stretching here, but I am inspired to think of time. Before we really dive into root stuff, let’s do one more lazy Tasker project, a clock.
The idea is simple, we’re building a type of cuckoo clock, but silent. Every hour, on the hour, we’ll make your phone vibrate one tick for each hour of the current time. Simple enough, at 4pm, your device will vibrate four quick spurts (or 16 if you use the 24 hour clock like I do) and there is no need to pull your phone out to check the time.
Hey, it’s the end of the year, let’s have some fun. Truth is, I was planning to give you a big project here today, we were going to use Tasker to act as a musical instrument, to play Auld Lang Syne. Feel free to check out MIDI and all the magic and horror it can bring, or hold on, perhaps I’ll get this thing working at a later date.
Before we begin
Tasker – Google Play StoreYou’ve seen these words before, you’ll need a modern Android device, one with a vibration motor, and Tasker installed. Tasker is $2.99 in the Google Play Store.
Silent cuckoo clock
There are a few steps in this tutorial, but we’re going to work with a simple For Loop instead of properly creating an array variable. No time for that level of crazy brain usage this holiday season, let’s just make some noise.
No delay’s, let’s just get into this. Also, I’ll leave it to you to go back and check out previous tutorials to learn how exactly to do some of these things. I’ll leave links for you along the way.
Fire up Tasker, head into the Tasks tab and fire up a new Task, I’ll name mine “SilentClock”.
First up, a few variables.
How to: variables in Tasker
How to: variable Split in Tasker
Create a new Variable. Name: “%timetoalert“. To: “%TIME”
That gives you the current time in format 4.48, (or 16.48,) for example. So we will now split the variable to get just the hour.
Variable Split. Name: “%timetoalert“. Splitter: “.” and feel free to Delete Base, we won’t need it.
Now we will use a For Loop to handle the next part. As mentioned earlier, the proper thing to do would be to build an array with the vibration times saved in ms. We’re keeping it simple, we’ll just loop as many times as the hour count, that’ll be four times, for our example.
How to: For Loop with Tasker
Add a new For Loop, Tasks -> For. Then Variable: “%arrtime“. Items: “1:%timetoalert1“.
I bet that made no sense at all. I explain the variable part in the tutorial linked above, but where did that “1:%timetoalert1” come from? It’s easy, actually, we need
Discrete cuckoo clock using Tasker – Android customization