Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,736,064 Members 41,011 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
monkey21stc
Old
(Last edited by monkey21stc; 4th August 2011 at 09:30 AM.)
#1  
Member - OP
Thanks Meter 14
Posts: 82
Join Date: Jul 2011
Location: Singapore
Default [TUT] Tasker+Todo.txt.touch=>Nagging todo Reminders

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!

Monk.
The Following User Says Thank You to monkey21stc For This Useful Post: [ Click to Expand ]
 
-juanito-
Old
#2  
Senior Member
Thanks Meter 92
Posts: 1,726
Join Date: Oct 2010
can u make tutorial how to use tasker with WhatsApp app
 
monkey21stc
Old
#3  
Member - OP
Thanks Meter 14
Posts: 82
Join Date: Jul 2011
Location: Singapore
Quote:
Originally Posted by -juanito- View Post
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
monk.
 
el_Salmon
Old
#4  
Member
Thanks Meter 2
Posts: 70
Join Date: Sep 2009
Location: Around 2,4 GHz
Would be possible to make location remainders? Location => context of a task
 
D200P13
Old
#5  
D200P13's Avatar
Senior Member
Thanks Meter 27
Posts: 630
Join Date: Apr 2010
Location: in a room
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!
[CARRIER] T-Mobile USA
[PHONES] Samsung Galaxy S 4 SGH-M919
HTC Sensation 4G
Samsung Sidekick 4G
Google Nexus One
BlackBerry Curve 8900
BlackBerry Pearl 8120
BlackBerry Pearl 8100
Samsung t209
Motorola RAZR
Motorola V330
Samsung x105
Motorola C332
Nokia 3390 Gold

[ROM] WICKEDô
[RECOVERY] ClockworkMod 6.0.3.6

Extras
[SGH-M919] CF-Auto-Root
[ROOT] TriangleAway
Tags
tasker, todo
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes