Search results for

All search results
Best daily deals

Affiliate links on Android Authority may earn us a commission. Learn more.

Tasker location and network tracking, time card part 2 - Android customization

Part 2 of our Tasker time card project, learn how to use GPS location and WiFi connections to automate tasks on your Android device - Android customization.
By

Published onOctober 15, 2015

Last week we took to Tasker to build the first parts of an automated time card in our Android customization series. We will continue the project this week, building on last week by adding location aware autonomy to the project.

As a quick recap, last week we built Tasker Tasks that write our log in and log out times to a file, popped up on screen our total time spent for the day and teased further ideas for what to do with, and how to track, our accumulated data.

This week we take to Tasker again, we will build two triggers, the first will be a location aware trigger, and the second will look at attaching to a specific WiFi network.

Before we begin

It will be easiest to follow along today if you have already gone through the steps in part 1 of this project. That said, the concepts we are about to learn can be used for any other purpose that you would like. I’ll have some examples of alternatives as we go.

You will need Tasker installed on your Android device to proceed. Eventually you folks are going to ask me to stop including this message, but for now, Tasker is $2.99 in the Google Play Store.

Tracking your time with Tasker, part 2

As mentioned, we are continuing our project from last week, building the automation aspects of our time card project. Many of you expressed that tracking your time was just depressing, I can respect that, so I want you to understand that what we are about to learn today goes well beyond the time card project. Automatic actions based on your physical location and/or the WiFi networks you are connected to can be used for any number of projects.

Tasker Time card

Enough of the explanations, let’s get started.

Location aware trigger

Google has made it possible within Android to utilize your device location data. The idea is to allow an app to take specific actions automatically based on where you are. Tasker is able to utilize this feature.

Here’s what we are going to do: we will allow Tasker to tap into our device location, then, when we enter a specified location, we fire our work started Task. As you might guess, we have our work stopped Task fire when we then leave that designated location.

Fire up Tasker and familiarize yourself with your time card project. You’ll just need to know which Tasks you are going to want to fire on entrance and exit of your work/school/other location.

Start a new Profile. If asked, name it appropriately, I’ll call mine “WorkGPSCoord”.

Tasker time card Location profile

Select Location.

You are greeted with a warning about how GPS driven location tracking can be a serious battery drain. We hear you, Tasker, we’ll use an alternative solution later in this tutorial.

Locate your desired location on the map, be sure to zoom in as far as you can to be as accurate as possible. Note that you can choose to use Net and/or GPS location tracking and can narrow your effective radius between 30m and, crazily enough, 999km. I suspect 30m, 50m or even 100m radius will be sufficient for your needs.

Once dialed in, simply hit the system Back button to save and exit the map selection.

Now you are asked to provide a name for this map location, you call yours what you need, I’ll just call mine “Work“.

Tasker time card Location profile 2

Finally, choose your time card log in Task from the list, you’ll recall that mine was called “TimeCardLogIn.”

Now that you have your log in firing when you arrive into your desired location, we need to add an exit Task to automatically write your log off data when you leave the area.

Long press on the name of your log in Task in the Profile.

Choose Add Exit Task.

Select your work log off Task, mine was called “TimeCardlogOut.”

That is how easy it is, folks. I urge you to think outside the box on this one, I am sure you can think of many more projects that could utilize your physical location to automatically perform an action. If you need an idea, why not install the Secure Settings plugin so that you can turn off device lock when you are at home, and have it lock when you are away from home.

WiFi network connection trigger

The title may have been a tad confusing there, sorry, what we are looking at doing is simple, when your device connects to a specific WiFi network, automatically run our time card log in Task. And when we then disconnect from that WiFi network, log out. Sounds easy.

Fire up a new Profile in Tasker. If required, give it an appropriate name, I’ll call mine “WorkWiFiLogIn”.

Tasker time card WiFi SSID profile

Choose State.

Choose Net.

Choose WiFi Connected.

Under SSID, enter the exact name of your work/school/other WiFi network. This is easiest done when you are at the location, as you can then hit that magnifying glass icon to see and select the SSID of any WiFi connections in the area.

You can see also that you have the option to choose a WiFi router MAC address or IP address. Depending on the complexity of your WiFi network, you may need to dial this in as specific as possible, but I suspect you’ll be good enough using just the SSID for now.

Hit the system Back button to save the WiFi settings.

Tasker time card WiFi SSID profile 2

Select your time card log in Task.

As before, now long press on the log in task.

Choose Add Exit Task.

Choose your time card log out Task.

Done!

Tasker time card WiFi SSID profile final

While this puts an end to the time card project, I hope that you see how much you could do with the WiFi and SSID controls. One of the more common uses is to adjust volumes based on network, i.e. muting ringer at work, turning up media volume when you are home and more.

Others will actually turn off things like Bluetooth, Cell connection, change security settings, wallpaper and much more when they connect to specific networks.

What’s next

Tasker time Location map Google

Utilizing location services for Tasker really can be a battery drain, be sure to spend some time tweaking the project for optimal efficiency. From there, consider other conditions to limit when the Profile is active.

If you are dedicated to using your GPS for this or any other Tasker project, consider building another Tasker project altogether that turns on and off your GPS antenna, or even turn on and off the location based Tasker Profile when appropriate. If your normal routine allows you to, simply turn off GPS while you sleep and while you are not likely to be in motion. If you have a dock or NFC in your car, you could use that to turn on and off GPS as well.

Tasker time Location map planes

I know most of you dislike the idea of a work time card – thinking outside the box, I’ve used this basic project to track my time at the gym, driving time, sleep time (including naps) and more. I’ll admit that I like analytics, keeping track of my time and the things in it.

I’ll also admit that this project was built more for the fun of it than anything. It is a great project to learn a few concepts to take to other projects, but for those of you that aren’t fans of the trouble shooting required, yes, there are dedicated apps for almost every Tasker project I build.

Next week

I hope this time card project was a helpful addition to our Android customization series for you. We will continue with Tasker next week, heading back into variables – we’ve previously explored some variable management, this time we’ll look at some variable manipulation.

As far as having your device automatically perform actions when you enter or exit specific physical locations, what are your favorite actions to take?

You might like