Friday, August 2, 2013

[Tasker] How to force a loud alarm on SMS / emergency SMS

If an SMS which contains (notice the "*") the text WAKEUP! comes in, your phone will alert you - no matter what. It's pretty hard to turn this alert off too ^^", you will have to stop the task.

The profile description:
Profile: Emergency SMS (72)
 Event: Received Text [ Type:Any Sender:* Content:*WAKEUP!* ]
Enter: Alarm! (71)
 Run Both Together
 A1: Play Ringtone [ Type:Alarm Sound:Ticktac alarm Stream:4 ]

Please notice the type when selecting the ringtone, the stream must be set to Alarm. Here the same as a profile to import directly:
<TaskerData sr="" dvi="1" tv="4.1u3m">
 <Profile sr="prof72" ve="2">
  <cdate>1353613002541</cdate>
  <clp>true</clp>
  <edate>1375490668033</edate>
  <id>72</id>
  <mid0>71</mid0>
  <nme>Emergency SMS</nme>
  <Event sr="con0" ve="2">
   <code>7</code>
   <pri>0</pri>
   <Int sr="arg0" val="0"/>
   <Str sr="arg1" ve="3"/>
   <Str sr="arg2" ve="3">WAKEUP!</Str>
  </Event>
 </Profile>
 <Task sr="task71">
  <cdate>1353612708197</cdate>
  <edate>1374917997002</edate>
  <id>71</id>
  <nme>Alarm!</nme>
  <pri>10</pri>
  <rty>2</rty>
  <Action sr="act0" ve="3">
   <code>192</code>
   <Int sr="arg0" val="0"/>
   <Str sr="arg1" ve="3">Ticktac alarm</Str>
   <Int sr="arg2" val="4"/>
  </Action>
 </Task>
</TaskerData>

4 comments:

  1. Do you know how i would do this to alarm if a specific SENDER would send me a text?

    ReplyDelete
    Replies
    1. Yes of course! When you create the profile "Received text", look for the field "Sender" in which you can specify the number.

      Delete
  2. what do i do with the text that comes from "import directly" to use it on my phone?

    ReplyDelete
    Replies
    1. Please watch this, before that copypaste the the appropriate code into a "*.xml" file:
      http://www.pocketables.com/2013/05/how-to-import-tasksprofilesscenesprojects-into-tasker.html

      Delete