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!


      Download

       
  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:

    start:5:30

    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

    Outstanding!
     
  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


     
Loading...
Similar Threads - Tasker Set Alarm
  1. startac4
    Replies:
    2
    Views:
    318
  2. Hannibal 99
    Replies:
    4
    Views:
    258
  3. Supernova nsp
    Replies:
    1
    Views:
    273
  4. John Klug
    Replies:
    2
    Views:
    891
  5. Dankees
    Replies:
    0
    Views:
    1,516
  6. Kenneedshelpty
    Replies:
    5
    Views:
    2,121
  7. Anmalong60
    Replies:
    2
    Views:
    2,204
  8. OM2
    Replies:
    3
    Views:
    1,860
  9. OM2
    Replies:
    1
    Views:
    740
  10. Pvswie001
    Replies:
    0
    Views:
    1,132

Share This Page

Loading...