NFC tags are relatively cheap solution to start timers (or any other tasks in Tasker) where GPS has an accuracy up to 50 metres. An NFC tag is down to the centimetres. NFC is less of a power draw however the trade off is it does not run in the background.
I use Toggl Track as the time tracking software of choice. There’s a generous free tier and great API support.
I use the following apps on my mobile:
Tasker is needed like in the previous post to start timers.
AutoWeb aids calling web services and in this case Toggl
Trigger is another app which sets a unique ID on the NFC tags and then reads them and starts a task in Tasker.
The first and hardest part to set up was AutoWeb. There is a built in integration so set that up first.
Either download, unzip and import this or follow the basic manual configuration below.
Create a new Web Service and see the details below:
The username should be your API key which you can get from your profile. The password should be api_key.
Then click on the Web Service and add an API Action as per below which will start a timer:
For other API end points, see Toggl’s documentation for more details.
Next create all the supporting tasks to before a timer can be started. To start a timer, the API needs/wants the following which needs to come from Toggl API’s:
To make it as dynamic as possible, these will be pulled from Toggl so any new workspace / projects that are created will automatically be available in future tasks to start timers.
To save time, I have exported the tasks to file which can be downloaded from here. Unzip the file and copy the XML files and import them to tasker on your phone.
I’ll go through in order what each task does based on their file name:
Trigger is freemium app but for my use I haven’t had to pay (yet). This app will manage the NFC tags. Make sure you have a task set up in task and run through the wizard to trigger a task in Tasker.
NFC are great way to trigger automations. It’s a shame it takes all the steps above to achieve it.