View Single Post
Old September 30th, 2010, 02:03 PM   #51 (permalink)
CodeMonkey
Senior Member
 
CodeMonkey's Avatar
 
Join Date: Dec 2008
Location: On the sofa
Posts: 562
 
Device(s): Nexus 4 (stock), Nexus Galaxy (retired), Atrix (ret.), N1 (ret.), Magic (ret.), G1 (ret.)
Carrier: Not Provided

Thanks: 13
Thanked 102 Times in 86 Posts
Default

Quote:
Originally Posted by speaker2animals View Post
CodeMonkey, your MissedSMS, MissedCall, and MissedSMSandCallClear sound a lot like what I'm trying to do. Would you mind sharing those? Or some insight on the code to make those repeat?
MissedSMS will trigger a single reminder tone of user's choice 5 minutes after receiving a text IF the screen has not been switched on. NB I use the standard Android messaging app - this may not work with others (eg Handcent, etc). Change the %PULSECOUNT variable limits to increase the number of reminders.

MissedCall will trigger a single reminder tone of user's choice 10 minutes after receiving a text IF the screen has not been switched on. Change the %CALLPULSECOUNT variable limits to increase the number of reminders.

MissedSMSandCallClear clears any outstanding reminders when the screen is switched on.

Please note that these aren't perfect, but they seem to work well enough for the moment - I'm sure I'll get round to tweaking them eventually. I believe future planned features for Tasker may include reacting to notifications being cleared, so these profiles may need changing in time..

Here you go - hope they're of some use / inspiration..

MissedSMS
Contexts
Received SMS
Variable %SCREEN Matches off
Tasks
1. Variable Set %PULSECOUNT To 0
2. Wait 1 Minute
3. Variable Set %bPULSE to ON IF %SCREEN ~ off
4. Variable Set %bPULSE to OFF IF %PULSECOUNT > 1
5. Wait 4 Minutes IF %bPULSE ~ ON
6. Notify Sound <selected MP3> IF %bPULSE ~ ON
7. Vibrate Time 500 IF %bPULSE ~ ON
8. Variable Add %PULSECOUNT Value 1
9. Goto Action 4 IF %bPULSE ~ ON

Missed Call
Contexts
Missed Call
Tasks
1. Variable Set %CALLPULSECOUNT to 0
2. Wait 1 Minute
3. Variable Set %bRING to ON IF %SCREEN ~ off
4. Variable Set %bRING to OFF IF %CALLPULSECOUNT > 1
5. Wait 9 Minutes IF %bRING ~ ON
6. Notify Sound <selected MP3> IF %bRING ~ ON
7. Vibrate Time 500 IF %bRING ~ ON
8. Variable Add %CALLPULSECOUNT Value 1
9. Goto Action 4 IF %bRING ~ ON

MissedSMSandCallClear
Contexts
Display Unlocked
Tasks
1. Variable Clear %bPULSE
2. Variable Clear %bRING

*EDIT*
Just seen that Missed Call event change is planned for next version: http://tasker.dinglisch.net/nextversion.html
__________________
Monkey see, monkey do.

CodeMonkey is online now  
Last edited by CodeMonkey; September 30th, 2010 at 02:07 PM.
Reply With Quote
The Following User Says Thank You to CodeMonkey For This Useful Post:
kupdegrove (October 14th, 2010)