1. Are you ready for the Galaxy S20? Here is everything we know so far!

Tasker - Set Alarm from time sent in an SMS

Discussion in 'Android Apps & Games' started by rahulsamuel, Feb 4, 2011.

  1. rahulsamuel

    rahulsamuel Newbie
    Thread Starter

    I hope this is the right place for my question. Please help me move it to the right place incase this should not be here, and im sorry in advance :) I also did try to search for an answer but could not find, hence the new thread.

    I have a Galaxy GTI5500 running on Froyo with tasker 1.0.12

    I was trying to create a task that can read time from an sms and set
    my alarm or play an audio file at that time to wake me. I didnt even get close.

    I have very early work timings which most of the time get decided very
    late the same night. So i usually have to stay awake long and receive
    a phone call or sms with the time for next morning and then set my
    alarm, I barely get any sleep that way.

    Could someone help me with this, i am fairly new to tasker and would
    love to have my phone doing this automatically. I can ask my colleague
    to send me the time over sms in any format I want. That way i can
    sleep the few hours at night :)

    I hope I was able to explain my query. Thanks a lot.

    1. Download the Forums for Android™ app!


  2. UncleMike

    UncleMike Android Expert

    First, I would recommend updating Tasker to the current version as a lot of new functionality has been added since 1.0.12.

    Take a look at the Tasker Wiki. There are some profiles that work as an alarm clock. You may be able to modify one of those to do what you want.

    If you can get the time sent in any format, I would have it sent as something like:


    If you then do a Variable Split, like this:

    Variable Split %SMSRB :

    You should end up with:

    %SMSRB1 = start
    %SMSRB2 = 5
    %SMSRB3 = 30

    You can then use the values of %SMSRB2 and %SMSRB3 to setup your alarm time.
    rahulsamuel likes this.
  3. rahulsamuel

    rahulsamuel Newbie
    Thread Starter

    I am really amazed at myself and tasker :) Thank you UncleMike, that really helped.

    Now incase anyone wants to know how i did it, here it goes... I have set my sms format to "Alarm:05:30", this is how i will get time to set the sms (5:30am in this case)

    1. New Profile "SMS Alarm"> Context> Event "Received Text" (You can choose to specify senders if you know the number you always will get the msg from, leave content blank/optional)

    2. Add Actions in this order,
    1. Variable Split > Name: %SMSRB , Splitter ":"
    2. Stop "If %SMSRB1 !~ Alarm" (Doesnt Match)
    3. Wait Until "%TIME = %SMSRB2.%SMSRB3
    4. Perform Task "Alarm"

    Now for the alarm task as suggested by UncleMike you can visit the site and chose what kind of an alarm you want.

    Hope this helps. Let me know you need more explanation on this.
  4. razer

    razer Newbie

  5. rahulsamuel

    rahulsamuel Newbie
    Thread Starter

  6. thahim

    thahim Android Enthusiast

    How can you have condition in Wait? like you did

    Wait Until "%TIME = %SMSRB2.%SMSRB3


Share This Page