TEXT
Home address

Text
VARIABLES
Set variable
Home Address
to
Home address
TEXT
Home City

Text
VARIABLES
Set variable
Home city
to
Home city
TEXT
Work Address

Text
VARIABLES
Set variable
Work Address
to
Work Address
TEXT
Work City

Text
VARIABLES
Set variable
Work City
to
My Name
TEXT
My Name

Text
VARIABLES
Set variable
My Name
to
My Name
TEXT
Try not to drive too fast.
May I recommend sport mode?
Drive safely.
Have a safe drive.
Don't forget to turn on Eco Mode, gas is expensive!
Let's go!
Vroom-vroom! Here we go!

Text
TEXT
Split
Text
by
New Lines

Split Text
SCRIPTING
Get
Random Item
from
Split Text

Item from List
VARIABLES
Set variable
Generic Quip
to
Item from List
COMMENT
Choose a random quip from the defined list and set it as a variable.
DATE
Current Date

Date
LOCATION
Get current location

Current Location
LOCATION
Get current weather at
Current Location

Weather Conditions
NUMBER
Weather Conditions

Number
MATHS
Round
Current Temp.
to
Ones Place

Rounded Number
VARIABLES
Set variable
Current Temperature
to
Rounded Number
COMMENT
Get the weather at current location, format the temperature as a number, round it to the ones place, and set it as a variable.
SCRIPTING
Get battery level

Battery Level
NUMBER
Battery Level

Number
MATHS
Round
Number
to
Ones Place

Rounded Number
VARIABLES
Set variable
Battery Percent
to
Rounded Number
COMMENT
Get current battery level, format as a number, round to the tens place, and set it as a variable.
NUMBER
Date

Number
COMMENT
Gets the current time and formats it as 24-hour time with no colon.
SCRIPTING
If
Current Time (Hmm)
is between
0
and
1200
TEXT
morning

Text
VARIABLES
Set variable
Greeting
to
Text
SCRIPTING
Otherwise
SCRIPTING
If
Current Time (Hmm)
is between
1201
and
1700
TEXT
afternoon

Text
VARIABLES
Set variable
Greeting
to
Text
SCRIPTING
Otherwise
SCRIPTING
If
Current Time (Hmm)
is between
1701
and
2359
TEXT
evening

Text
VARIABLES
Set variable
Greeting
to
Text
SCRIPTING
End If

If Result
SCRIPTING
End If

If Result
SCRIPTING
End If

If Result
SCRIPTING
If
Current Temperature
is less than
50
TEXT
I've turned on your heated seat and steering wheel.

Text
VARIABLES
Set variable
Weather Quip
to
Text
SCRIPTING
Otherwise
TEXT
Text

Text
VARIABLES
Set variable
Weather Quip
to
Text
SCRIPTING
End If

If Result

Text
VARIABLES
Set variable
Generic Speech
to
Text
COMMENT
Create a variable for generic speech to speak when other set conditions are not met.
NUMBER
Date

Number
COMMENT
Get the current day of the week and format it as a number between 1 and 7, where 1 is Monday and 7 is Sunday.
SCRIPTING
If
Day # in week
is less than
6
SCRIPTING
If
Current Time (Hmm)
is between
600
and
800
SCRIPTING
If
Current Location
contains
Home city
MAPS
Get
Driving
time from
Current Location
to
Work Address

Travel Time
MAPS
Show
Driving
directions to
Work Address
DOCUMENTS
COMMENT
If the current day of the week is a weekday, the current time is between 6 AM and 8 AM, and the current city is <home city>, assume I am leaving for work from home. Get driving directions and speak a greeting.
SCRIPTING
Otherwise
DOCUMENTS
Speak
Generic Speech
Language
English (United States)
COMMENT
If the current day is a weekday and the current time is between 6AM and 8 AM, but the city is not <home city>, speak a greeting.
SCRIPTING
End If

If Result
SCRIPTING
Otherwise
SCRIPTING
If
Current Time (Hmm)
is between
1400
and
1800
SCRIPTING
If
Current Location
contains
Work City
MAPS
Get
Driving
time from
Current Location
to
Home Address

Travel Time
MAPS
Show
Driving
directions to
Home Address
MESSAGES
Send "
On my way home, see you in
Travel Time
!
" to
Recipients
DOCUMENTS
COMMENT
If the current day of the week is a weekday, the current time is between 2 PM and 6 PM, and the current city is <work city>, assume I am leaving for home from work. Get driving directions, and speak a greeting, and tell <wife> I’m on my way with my travel time.
SCRIPTING
Otherwise
DOCUMENTS
Speak
Generic Speech
Language
English (United States)
COMMENT
If the current day is a weekday and the current time is between 2 PM and 6 PM, but the city is not <work city>, speak a greeting.
SCRIPTING
End If

If Result
SCRIPTING
Otherwise
DOCUMENTS
Speak
Generic Speech
Language
English (United States)
COMMENT
If the current day of the week is a weekday and the current time isn’t between those already specified, then speak a greeting.
SCRIPTING
End If

If Result
SCRIPTING
End If

If Result
SCRIPTING
Otherwise
DOCUMENTS
Speak
Generic Speech
Language
English (United States)
COMMENT
If the current day of the week isn’t a weekday, then speak a greeting.
SCRIPTING
End If

If Result