Go Back   Android Forums > Android Discussion > Android Applications > Tasker

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

test: Reply
 
LinkBack Thread Tools
Old March 30th, 2013, 03:21 PM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Mar 2013
Posts: 4
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default Second missed call in a row.

I would like to receive an alert on the second missed call in a row (<30 seconds.) I found this post, however I'm too ignorant to implement it. I've attached the xml export from my phone.

What Tasker profiles is everyone using?? (This thread is NOT for requesting help with profiles)

#1108

Here's the what I've done.

Created Variable "XCALLS
Profile name "Second Call in a Row"
Context "Missed Call*"
Task "Second Call Alert"
1. Stop If %XCALLS ~ 1
2. if %XCALLS ~ 2
3. Torch set On
4. Wait MS 600
5. Torch set Off
6. Wait MS 600
7. Torch set On
8. Wait MS 600
9. Torch set Off
10. Wait MS 600
11. End If
12. Variables Set Name %XCALLS To 0
Attached Files
File Type: txt secondcallalter.txt (2.2 KB, 6 views)

jd_abramson is offline  
Last edited by jd_abramson; March 30th, 2013 at 05:31 PM.
Reply With Quote
sponsored links
Old April 11th, 2013, 04:40 PM   #2 (permalink)
New Member
Thread Author (OP)
 
Join Date: Mar 2013
Posts: 4
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default I found a solution.

Quote:
Originally Posted by jd_abramson View Post
I would like to receive an alert on the second missed call in a row (<30 seconds.) I found this post, however I'm too ignorant to implement it. I've attached the xml export from my phone.
Geoff from the Kludge posted this tutorial.
Tasker: Sleep mode with text message reply | the kludge

I changed the profiles to meeting and all works well.
jd_abramson is offline  
Reply With Quote
Old April 11th, 2013, 07:29 PM   #3 (permalink)
Member
 
Join Date: Mar 2013
Posts: 105
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 34 Times in 28 Posts
Default

This profile will set off if two different people call you in a short time period, which may work for some. I set my profile up a little different:

Context:
Missed call: Any

1)Write File: File = /sdcard/DCIM/Tasker/MissedCall If = %CNUM doesn't match %LastCaller
2)Read Line: File = DCIM/Tasker/MissedCall To Var = %LastCaller
3)If: %CNUM matches %LastCaller
4)Media Volume: 15
5)Play ringtone
6)Notify: Text = %CNAME %CNUM
7)End If
8)Wait 10min
9)Variable Clear: %LastCaller



All of the "If" stuff can be however you want to be notified on the second missed call in a row from just one person.
KitWasHere is offline  
Last edited by KitWasHere; May 14th, 2013 at 05:34 PM.
Reply With Quote
Old May 14th, 2013, 05:31 PM   #4 (permalink)
Member
 
Join Date: Mar 2013
Posts: 105
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 34 Times in 28 Posts
Default

So I took another crack at this, seems to be reliable so far. If you use it, please let me know how it works out for you.

Profile: 2 Missed Calls = Notify (230)
Event: Missed Call [ Caller:* ]
Enter: Anon (231)
A1: Load App [ App:Phone Data: Exclude From Recent Apps:Off ]
A2: Wait [ MS:1 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A3: Kill App [ App:Phone Use Root:On ]
A4: Notify [ TitleND - Missed Call Text:Missed Call >>> %CNAME - %CNUM Icon:hd_aaa_ext_phone_missed Number:0 Permanent:Off Priority:1 ]
A5: Test [ Type:File Name Data:/storage/sdcard0/Tasker/2callsNotify/%CNUM Store Result In:%Exists Continue Task After Error:On ]
A6: If [ %Exists ! Set ]
A7: Write File [ File:Tasker/2callsNotify/%CNUM Text:%TIMES Append:Off Add Newline:Off ]
A8: Variable Clear [ Name:%CalledWhen Pattern Matching:Off ]
A9: Variable Clear [ Name:%TimeCompare Pattern Matching:Off ]
A10: Else If [ %Exists Is Set ]
A11: Read Line [ File:Tasker/2callsNotify/%CNUM Line:1 To Var:%CalledWhen ]
A12: Variable Set [ Name:%TimeCompare To:%TIMES - 300 Do Maths:On Append:Off ]
A13: If [ %CalledWhen > %TimeCompare ]
A14: Notify Cancel [ TitleND - Missed Call Warn Not Exist:Off ]
A15: Media Volume [ Level:15 Display:Off Sound:Off ]
A16: Play Ringtone [ Type:Alarm Sound:CyanAlarm Stream:4 ]
A17: Wait [ MS:0 Seconds:3 Minutes:0 Hours:0 Days:0 ]
A18: Play Ringtone [ Type:Alarm Sound:CyanAlarm Stream:4 ]
A19: Wait [ MS:0 Seconds:3 Minutes:0 Hours:0 Days:0 ]
A20: Play Ringtone [ Type:Alarm Sound:CyanAlarm Stream:4 ]
A21: Notify [ Title:Better Be An Emergency! Text:CALL NOW >>> %CNAME-%CNUM Icon:cust_warning Number:0 Permanent:Off Priority:3 ]
A22: Else If [ %CalledWhen < %TimeCompare ]
A23: Delete File [ File:Tasker/2callsNotify/%CNUM Shred Level:0 Use Root:Off ]
A24: Variable Clear [ Name:%CalledWhen Pattern Matching:Off ]
A25: Variable Clear [ Name:%TimeCompare Pattern Matching:Off ]
A26: End If
A27: Variable Clear [ Name:%Exists Pattern Matching:Off ]
A28: End If
KitWasHere is offline  
Reply With Quote
Old May 18th, 2013, 08:55 AM   #5 (permalink)
New Member
Thread Author (OP)
 
Join Date: Mar 2013
Posts: 4
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Is there a no root way to accomplish similar results for a missed call alert?
jd_abramson is offline  
Reply With Quote
Old May 18th, 2013, 09:06 AM   #6 (permalink)
Member
 
Join Date: Mar 2013
Posts: 105
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 34 Times in 28 Posts
Default

I replied on the google groups as well. Just delete A3 and should be good to go.
Also, after A23 add another action into the same "Else If" statement to rewrite the %CNUM file with %TIMES.
KitWasHere is offline  
Reply With Quote
Old July 29th, 2013, 07:59 AM   #7 (permalink)
New Member
Thread Author (OP)
 
Join Date: Mar 2013
Posts: 4
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default Update.

I wanted to share some changes to this solution. One of the issues I had is that this phone is unrooted and I couldn't clear the missed call notification which would hold this profile in a continual state. The result was that subsequent calls would not trigger the task and I would not receive any notification that someone was trying to get a hold of me.

The solution was to set the profile to "Call Incoming. *" and "Variable Value %MODE_MEETING, Matches, 1"

Meeting mode is another profile that is set when the phone is upside down or my calendar has #mute in the description. I only want this task when I'm in a meeting and my phone is muted (in meeting mode).

Thank you for your help KitWasHere
jd_abramson is offline  
Reply With Quote
Old July 29th, 2013, 10:24 AM   #8 (permalink)
Member
 
Join Date: Mar 2013
Posts: 105
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 34 Times in 28 Posts
Default

Even a rooted phone cannot clear another apps notifications programmatically. My solution was to quickly open the dialer app which clears out the notification, and then kill the app. If you don't have root and cannot kill apps you could just use the "Go Home" action to send it to the background.

Glad you got it working
KitWasHere is offline  
Reply With Quote
Reply
Tags
missed call alerts


Go Back   Android Forums > Android Discussion > Android Applications > Tasker
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:43 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.