[TUT] Tasker+Todo.txt.touch=>Nagging todo Reminders

82 posts
Thanks Meter: 14
By monkey21stc, Member on 4th August 2011, 09:28 AM
Post Reply Subscribe to Thread Email Thread
I've been using todo.txt touch developed by Gina Trapani and one of its shortcomings would be the lack of reminders whenever a todo is being added. Therefore I have devised a method to have tasker notify you every 30minutes any outstanding todos in todo.txt.

Step 1: Have tasker read todo.txt

We will first create a profile in tasker, lets name it todo. Next add time context (I have mine set to from 10.00 to 20.00 repeat every 30minutes) this would depend on how frequent you want tasker to "read" todo.txt for any todos.

Next add a task lets name it read. Now todo.txt has a file in your sdcard that stores all created and completed todos located at /sdcard/data/com.todotxt.todotxttouch/todo.txt
so we will now add new task>file>read line> location:/sdcard/data/com.todotxt.todotxttouch/todo.txt ; line leave it empty; Var set to:%TODO, click done.

Now for this function, if line is left empty, tasker will read the line after what was being 'read' by tasker in the previous run. If the end of the file is read %TODO will be set to EOF, we don't want that. Also, a completed todo shows up as 'x ddmmyyyy (name of todo)' we don't want that 'read' either.

Step 2: Have next line or first line read if %TODO is EOF/starts with x

Now add another task under read >tasker>stop select IF %TODO!~EOF/x* this would allow tasker to stop 'reading' todo.txt if %TODO~an outstanding todo.
Add another task >tasker>goto action select 1 , this would allow tasker to read the next line or read the first line again if EOF is reached or a completed todo line is 'read' until a %TODO output containing an outstanding todo is reached.

Step 3: preventing loop actions in the absence of oustanding todos

In the absence of any outstanding todos, the file will contain either x ... or EOF, so the task will run in an infinite loop if there is no further condition applied.
We will be using a counter to stop any infinite loops

First add a task>variables> variable clear set to clear %COUNTER, place this task at the top above the task that reads /sdcard/data/com.todotxt.todotxttouch/todo.txt . (position 1)

Next add another task > variables>subtract value set to %COUNTER value=2 if %TODO ~x* place it below the read /sdcard/data/com.todotxt.todotxttouch/todo.txt task (position 3)

Add another task>variables>subtract value> set to %COUNTER value=1 if %TODO~EOF. Place it at position 4 before the stop task.

Add another task>variables>add value>set to %COUNTER value=2 Do not select any if variables. Place it at position 6 after the stop task.

Finally alter the Goto task at position 7 to run action 2 instead of 1 and select IF %COUNTER<2.

The previous step basically prevents the task to continue in an infinite loop by limiting the number of loops to go through the todo.txt file twice.

Now the task list should look like:
1. clear %COUNTER
2. read /sdcard/data/com.todotxt.todotxttouch/todo.txt to %TODO
3. subtract value= 2 to %COUNTER if %TODO~x*
4. subtract value= 1 to %COUNTER if %TODO~EOF
5. stop if %TODO!~EOF/x*
6. Add value= 2 to %COUNTER
7. goto action 2 if %COUNTER<2

click done

Step 4 Create Notification

Last but not least we need a notification to get this working. Create another profile name it reminder (or as you please) set context to when %TODO is set.
For the tasks we will first add a stop function if %TODO~EOF/x*, this prevents your notification from popping up when a completed todo is read or EOF is reached.
Next add in the type of notification under add task>alert>notify sound select to display %TODO and play a custom sound. You may add in notify vibrate if you wish.
click done.
And apply your changes!
**you may wish to test your tasks out before applying**

And thats it!
Have fun todo-ing!

Last edited by monkey21stc; 4th August 2011 at 09:30 AM.
The Following User Says Thank You to monkey21stc For This Useful Post: [ View ]
11th August 2011, 05:52 AM |#2  
Senior Member
Thanks Meter: 117
can u make tutorial how to use tasker with WhatsApp app
11th August 2011, 04:45 PM |#3  
OP Member
Flag Singapore
Thanks Meter: 14
Originally Posted by -juanito-

can u make tutorial how to use tasker with WhatsApp app

Hi Juanito!

How do you want Whatsapp to work with tasker? I need more information about the task that you want to run.

Thanks and regards
15th December 2011, 10:43 AM |#4  
Flag Around 2,4 GHz
Thanks Meter: 6
Would be possible to make location remainders? Location => context of a task
30th December 2011, 08:06 PM |#5  
D200P13's Avatar
Senior Member
Flag in a room
Thanks Meter: 27
wow i am starting to think tasker is under rated. i love how it replaces so many apps. i have a bunch of profiles and i was missing/wanted a reminder profile. i couldnt find it till now. i hope this works as i want it to!
Post Reply Subscribe to Thread

tasker, todo
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes