tasker auto mph bis

Tasker Auto-Respond to SMS

I’ve used Tasker for a while, but just recently I decided to try out some profiles from others.   One cool profile that I found is the profile to automatically reply to an SMS message when driving.   But it requires a little bit of work to get it to actually function.   So here’s the steps I took to get it to work.  Keep in mind that I’m currently running the Cyanogen mod, so some of these steps may work out of the box for you if you’re running a stock ROM.

  1. Download the profile from the Tasker Wiki here: http://tasker.wikidot.com/autorespondwhiledriving
  2. Notice that this profile is looking for a task called “Convert_LOCSPD_MPH”.  This task basically sets the variable that converts the speed to MPH.  So we’ll have to create that.
  3. Click “Tasks”
  4. Click “New Task +”
  5. Give your task a name.  For mine, I used “ConvertMPH” just because it’s simple to know that’s what it does.
  6. Click the “+” in the task to add a new action.
  7. Click “Variable”
  8. Click “Variable Set”
  9. In the “Name” field, type %LOCSPDMPH
  10. In the “To” field, type %LOCSPD * 2.23693629
  11. Check the “Do Maths” checkbox
  12. Click “Done” to save changes to the action
  13. Click “Done” to save your task
  14. OK, now the task is created.  Let’s go plug it into the profile.
  15. Open the “Received Text” profile
  16. Click the “Auto Respond (If Driving)” task
  17. Click “Edit”
  18. For whatever reason, simply re-linking the “Perform Task” action didn’t work for me.  I kept getting an error that said the task doesn’t exist when trying to test it.  So I had to delete it and re-create it to get it to work.
  19. Long-click on the “Perform Task” with the name “Convert_LOCSPD_MPH” and then drag it to the trash can.   This will delete that action, but we’ll want to recreate it.
  20. Click the “+” icon to add a new action.
  21. Click “Tasker”
  22. Click “Perform Task”
  23. Above the “Name” field you’ll see a magnifying glass.  Click this and then choose the task you just created a little bit ago.   For me, it was the “ConvertMPH” task.
  24. Click “Done” to save your action.
  25. Now long-click on the “Perform Task” action and then move it above the “Send SMS” actions.
  26. So the final order of the actions are: 1) Goto Action 2) GPS 3) Get Location 4) Perform Task 5) Send SMS
  27. Click “Done” to save your task

OK so the task is all set up.  Now to test it.  How can you test it without actually driving, though?  Well, we can actually take out the variable that checks the speed to test it.  Before you do this, though, send yourself a text message because this task will automatically reply to whomever the last person who text’d you.  So if you don’t send yourself a text message then whomever sent you a text message last will get an auto-reply from you.
Once you’ve sent yourself a text message, go back to Tasker and open up the “Auto Respond (If Driving)” task under the “Received Text” profile.

Open up the “Send SMS” action (should be number 5).  Scroll down and you’ll find an IF statement that says %LOCSPDMPH > 5.  Basically that means that this will only send an SMS if the GPS reports that you’re going greater than 5 MPH.  So to test this, simply uncheck the checkbox to the right of “If” to turn off that if statement.   Note: In here is where you can choose to store the SMS in your messaging app (if you want to see it in your sent folder of your SMS application as well as change the text of the actual SMS message as well.  But if you’re running a test, don’t make any changes yet.  Make sure it works first and then come back and change the text if that’s what you want to do.
Once the “If” statement is disabled, click “Done” to save the action.  Then click the “Test” button on the task.  Once you click “Test” you’ll notice a “Kill All” button that shows up to the left of “Test”.  That means Tasker is working to run the task.   Wait for the “Kill All” button to go away.  Once it goes away, click “Cancel” to close out of the task.   If you click “Done” it will save your changes and you’ll have to go back in to add the if statement again.
That’s it!  You should now have a new text message that says something to the effect of:

(Auto) Texting and driving is dangerous.  I’m currently driving (at 0 MPH).  Will respond to you when I can safely.

By the way, the 0 MPH isn’t anything to worry about since this is just a test and quite obviously as you’re testing this you’re not going to be actually driving.  🙂

Tasker auto mph

I pulled this profile setup from the Wiki [http://tasker.wikidot.com/
autorespondwhiledriving] and I couldn’t figure out exactly how to
setup the MPH conversion–I finally did:

Auto Respond While Driving
Download

This profile will automatically respond to any received SMS when you
are driving (or moving).

How it works.
Upon receiving a text the phone will check if it is near WiFi, this
prevents the phone from grabbing GPS Locations if you are sitting at
home/office, the task checks to see if your GPS is enabled (if not, it
will enable it) then grabs your current location. It will only respond
to the text if your speed is faster than 5 mph. There is an additional
task to convert the %LOCSPD from m/s to MPH and sets variable
%LOCSPDMPH.

Need to create an additional task.
This profile calls another task called « Convert_LOCSPD_MPH. » You will
need to create that. The task is simply a « Variable Set » of variable
%LOCSPDMPH, set that to %LOCSPD * 2.23693629. Select the « Do Maths »
option. This makes it easier to know how fast you are going.

Near WiFi
One of the conditions for the profile is to see if you are close to
your home/office WiFi. This prevents unnecessary GPS Location lookups
if you are sitting at home. THIS IS SET TO MY HOME’S SSID You should
modify (for your home/office) or remove the condition.

SMS to Send
This is currently set to: « (Auto) Texting and driving is dangerous.
I’m currently driving (at %LOCSPDMPH MPH). Will respond to you when I
can safely. »

You can modify if you like. Watch out if you are a speeder!

After you import this profile from the Tasker Wiki, all you have to do
is this:

Open Tasker and press the Tasks button at the bottom of the screen.
Select New Task at the top of the popup.
Name the new task « Convert_LOCSPD_MPH » (without quotations)
Select the « + » to enter an action
Select Variable
Select Variable Set
Name the Variable Set: %LOCSPDMPH
In the « To » field enter: %LOCSPD*2.23693629 (there should be no
spaces)
Put a check mark in the « Do Maths » box
Select « Done » to save your action
You should be done. Now to test:

Send yourself an SMS Message so the following test applies to you and
not the last person who texted you.
Open your imported Tasker profile and edit the Auto Respond (If
Driving) task.
Select action number 5, the Send SMS action.
Uncheck the « If » condition at the bottom of the action and select Done
to close the window.
On the next screen, select Test, wait for the Kill All button to
disappear, then hit cancel (so you don’t have to go back and check the
if condition–it’ll already be checked because you cancelled instead
of saved).
Wait for your message to appear–your message should state you’re
traveling at 0 MPH.

Tasket auto

Auto Respond While Driving

Download

This profile will automatically respond to any received SMS when you are driving (or moving).

How it works.
Upon receiving a text the phone will check if it is near WiFi, this prevents the phone from doing grabbing GPS Locations if you are sitting at home/office, the task checks to see if your GPS is enabled (if not, it will enable it) then grabs your current location. It will only respond to the text if your speed is faster than 5 mph. There is an additional task to convert the %LOCSPD from m/s to MPH and sets variable %LOCSPDMPH.

Need to create an additional task.
This profile calls another task called « Convert_LOCSPD_MPH. » You will need to create that. The task is simply a « Variable Set » of variable %LOCSPDMPH, set that to %LOCSPD*2.23693629. Select the « Do Maths » option. This makes it easier to know how fast you are going. There should be no spaces in the formula.

Options
Near WiFi
One of the conditions for the profile is to see if you are close to your home/office WiFi. This prevents unnecessary GPS Location lookups if you are sitting at home. THIS IS SET TO MY HOME’S SSID You should modify (for your home/office) or remove the condition.

SMS to Send
This is currently set to: « (Auto) Texting and driving is dangerous. I’m currently driving (at %LOCSPDMPH MPH). Will respond to you when I can safely. »

You can modify if you like. Watch out if you are a speeder! 🙂

Question How can I stop this profile from replying to Facebook notifications?

One way is to change the « Received Text » from « Any » to « Any Favorite Contact »

– Any (phone book) contact rather than any favourite contact C:ANY

– Manage a list of exceptions: %EXCEPTIONS = 111/222/333/444/555
Reply to SMS *IF %CNUM DOESN’T MATCH %EXCEPTIONS

– Facebook messages come from special numbers so only reply to SMS *IF %CNUM MATCHES 07*/+44* (for mobile numbers in the UK)

I have tried this setup and have found an issue with it not registering your correct speed, it always comes in at 0mph for the first few scans, then is gets the correct speed, I have tried all sorts of methods to correct this with no luck Galaxy S3

– The only way this profile worked for me was to edit the included action ‘auto respond (if driving)’ as such:
1 Get location
2 Variable Set — MPH conversion (see above)
3 Send SMSRF
In other words, rather than create a new task as stated above, insert the Variable Set into included task called ‘auto respond (if driving)’.

I also removed the check whether GPS is on as I leave mine on.

– Is it possible to show my speed without decimals? i.e. ‘57.989 MPH’ which looks odd?

http://tasker.wikidot.com/autorespondwhiledriving