Prerequisites
- Llama installed
- Locations set up
- Locale SMS plug-in installed (it is free)
My setup
I travel from Manchester to Stafford. My missus leaves the house about 15 mins before I am due to arrive. The train stop before Stafford is Crewe and the time difference is about 22 mins… perfect timing to message her if late.
So for my example I did the following…
- Set up an Area called “Crewe
- Set up an Event called “Arrive at Crewe”
- Added a Condition for Day of the week = Mon, Tue, Wed, Thur or Fri
- Added a Condition for Time Between = 16:00 – 19:00
- Added a Condition for Enter Area = Crewe
- Added a Condition for Llama variable = When ‘ArrivedAtCrewe’ has a value of ‘False’
- Set up an Action of Set Llama variable ‘ArrivedAtCrewe’ to ‘True’
- Set up an Event called “Late to Crewe”
- Added a Condition for Day of the week = Mon, Tue, Wed, Thur or Fri
- Added a Condition for Time Between = 18:05 and 18:06
- Added a Condition for Llama variable ‘ArrivedAtCrewe’ has a value of ‘False’
- Added a Condition for Llama variable ‘LateToCreweSentSMS’ has a value of ‘False’
- Added an Action of run Locale plugin ‘SMS: <number>’ with a message of “I’m late, not arrived at Crewe yet!” (also checking the setting to prevent multiple SMS’s in one hour)
- Added an Action of Set Llama variable ‘LateToCreweSentSMS’ to ‘True’
- Set up an Event called Arrive at work
- Added a Condition for Day of the week = Mon, Tue, Wed, Thur or Fri
- Added a Condition for Time Between = 09:30 – 09:45
- Added a Condition for Enter Area = Work
- Set up an Action of Set Llama variable ‘ArrivedAtCrewe’ to ‘False’
- Set up an Action of Set Llama variable ‘LateToCreweSentSMS’ to ‘False’
A further extension to this would be to create another Event which detects Entering Crewe and if the LateToCreweSentSMS is set to True then send another text to say that I have just arrived at Crewe and should be around 22 mins.
EDIT: This isn’t working brilliantly at the moment, as if the train hangs around just outside the station waiting for a platform, then Llama thinks that it has arrived. I’m working on some logic to detect that it has arrived and then left the area for 5 mins before texting.