Login About Gallery
Total Weather By Siri
Accepts
App Store Apps, Articles, Contacts, Dates, Email Addresses, Files, Images, iTunes Products, Locations, Map Links, Media, PDFs, Phone Numbers, Rich Text, Safari Web Pages, Text and URLs
DICTIONARY
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
21 items
<inline variable>
<inline variable>
COMMENT
This section sets options such as setting units of measurement to either Imperial or Metric and setting the option for the hearing impaired (read instead of hear Siri's weather report.) IMPORTANT: DO NOT EDIT QUESTIONS. DOING SO WILL CAUSE THE SHORTCUT TO NOT WORK PROPERLY. Setting the dictionary values below to "True", will switch: Text output instead of Siri. Precipitation from inches to millimeters. Wind Speed from miles per hour to kilometers per hour. Barometric Pressure from inches of mercury to hectopascals. Visibility from miles to kilometers. You may select temperature units (°F or °C) in your device settings. Go to General > Language & Region > Temperature Unit.
DICTIONARY
<inline variable>
False
<inline variable>
False
<inline variable>
False
<inline variable>
False
<inline variable>
False
SCRIPTING
Get dictionary from
Dictionary
VARIABLES
Set variable
OptionsDict
to
Dictionary
COMMENT
This section sets the rate and pitch of Siri's voice for consistency and a more natural speech.
NUMBER
0.45
VARIABLES
Set variable
SiriRate
to
Number
NUMBER
1
VARIABLES
Set variable
SiriPitch
to
Number
COMMENT
This section gets the weather data from www.weather.com for the user's current location and passes the name of the city on for use by Siri.
NOTIFICATIONS
Show notification
Input
Options Under Construction
LOCATION
Get current weather at
Current Location
VARIABLES
Set variable
WeatherConditions
to
Weather Conditions
LOCATION
Get
City
from
WeatherConditions
VARIABLES
Set variable
City
to
City
LOCATION
Get
Location
from
WeatherConditions
VARIABLES
Set variable
Location
to
Location
LOCATION
Get
Daily
forecast at
Location
VARIABLES
Set variable
WeatherForecast
to
Weather Forecast
COMMENT
This section gets the current date and time and sets the time period of the day (morning, afternoon, evening, or night.)
DICTIONARY
<inline variable>
4 items
<inline variable>
4 items
<inline variable>
4 items
<inline variable>
4 items
<inline variable>
4 items
<inline variable>
4 items
<inline variable>
4 items
<inline variable>
4 items
<inline variable>
4 items
<inline variable>
4 items
<inline variable>
4 items
<inline variable>
4 items
<inline variable>
4 items
<inline variable>
4 items
<inline variable>
4 items
<inline variable>
4 items
<inline variable>
4 items
<inline variable>
4 items
<inline variable>
4 items
<inline variable>
4 items
<inline variable>
4 items
<inline variable>
4 items
<inline variable>
4 items
<inline variable>
4 items
VARIABLES
Set variable
TimePeriods
to
Dictionary
DATE
Current Date
VARIABLES
Set variable
Now
to
Date
LOCATION
Get
Longitude
from
Location
LOCATION
Get
Latitude
from
Location
DICTIONARY
<inline variable>
Now
<inline variable>
<inline variable>
Location
<inline variable>
<inline variable>
COMMENT
If a remote weather location has been selected, an optional Total Weather Time Adjust module may be run by inserting a Run Shortcut action here. It will get the current day and time for the selected remote location from the TimeZoneDB.com API (requires a free API Key by registering.) Insert a Run Shortcut action below and set to run the Total Weather Time Adjust Module shortcut and set the Input to the above "Dictionary" (magic variable.) "Show While Running" should be switched off. Reset the variable RemoteDict below from "Dictionary" to "Shortcut Result".
VARIABLES
Set variable
RemoteDict
to
Dictionary
SCRIPTING
Get
Value
for
Now
in
RemoteDict
VARIABLES
Set variable
Now
to
Dictionary Value
CALENDAR
Format
Now
Options Under Construction
VARIABLES
Set variable
DateToday
to
Formatted Date
CALENDAR
Add
1
days
from
DateToday
CALENDAR
Options Under Construction
VARIABLES
Set variable
DateTomorrow
to
Formatted Date
CALENDAR
Subtract
1
days
from
DateToday
CALENDAR
Options Under Construction
VARIABLES
Set variable
DateYesterday
to
Formatted Date
CALENDAR
Format
Now
Options Under Construction
VARIABLES
Set variable
WeekDayNow
to
Formatted Date
CALENDAR
Format
Now
Options Under Construction
VARIABLES
Set variable
TimeNow
to
Formatted Date
CALENDAR
Format
Now
Options Under Construction
VARIABLES
Set variable
HourNow
to
Formatted Date
SCRIPTING
Get
Value
for
HourNow
.report
in
TimePeriods
VARIABLES
Set variable
TimeOfDay
to
Dictionary Value
CALENDAR
Get time between
Current Date
and
Now
in
Hours
VARIABLES
Set variable
TimeDiff
to
Time Between Dates
SCRIPTING
Get
Value
for
RemoteTimeDay
in
RemoteDict
VARIABLES
Set variable
RemoteTimeDay
to
Dictionary Value
COMMENT
This section creates a dictionary of phrases for Siri to use to improve grammar when describing current (0) and forecasted (1) weather conditions. The appropriate phrase is then selected to match current conditions. The dictionary below may need to be manually updated from time to time when a condition is added by weather.com that is not included.
DICTIONARY
<inline variable>
2 items
<inline variable>
2 items
<inline variable>
2 items
<inline variable>
2 items
<inline variable>
2 items
<inline variable>
2 items
<inline variable>
2 items
<inline variable>
2 items
<inline variable>
2 items
<inline variable>
2 items
<inline variable>
2 items
<inline variable>
2 items
<inline variable>
2 items
<inline variable>
2 items
<inline variable>
2 items
<inline variable>
2 items
<inline variable>
2 items
<inline variable>
2 items
<inline variable>
2 items
<inline variable>
2 items
<inline variable>
2 items
<inline variable>
2 items
<inline variable>
2 items
<inline variable>
2 items
<inline variable>
2 items
<inline variable>
2 items
<inline variable>
2 items
VARIABLES
Set variable
ConditionsDict
to
Condition Dictionary
SCRIPTING
Get
All Keys
in
ConditionsDict
SCRIPTING
If
Dictionary Value
contains
WeatherConditions
SCRIPTING
Get
Value
for
WeatherConditions
.0
in
ConditionsDict
VARIABLES
Set variable
ConditionPhrase
to
Text
Otherwise
TEXT
There are currently
WeatherConditions
conditions in
City
VARIABLES
Set variable
ConditionPhrase
to
Text
End If
COMMENT
This section determines and formats the wind direction and rounds off the wind speed. The dictionary of wind directions was designed by Joe Really.
DICTIONARY
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
VARIABLES
Set variable
WindDirDict
to
Dictionary
SCRIPTING
Count
Characters
in
WeatherConditions
SCRIPTING
If
Count
has any value
MATHS
WeatherConditions
÷
45
Options Under Construction
MATHS
Round
Calculation Result
to
Ones Place
Mode
Normal
SCRIPTING
Get
Value
for
Rounded Number
in
WindDirDict
VARIABLES
Set variable
WindDirection
to
Dictionary Value
SCRIPTING
Get
Value
for
Switch wind to km/h?
in
OptionsDict
SCRIPTING
VARIABLES
Get
WeatherConditions
MATHS
Round
WeatherConditions
to
Ones Place
Mode
Always Round Down
VARIABLES
Set variable
WindSpeed
to
Rounded Number
SCRIPTING
If
WindSpeed
is
1
TEXT
mile per hour
VARIABLES
Set variable
WindUnit
to
Text
Otherwise
TEXT
miles per hour
VARIABLES
Set variable
WindUnit
to
Text
End If
Otherwise
VARIABLES
Get
WeatherConditions
MATHS
Round
WeatherConditions
to
Ones Place
Mode
Always Round Down
VARIABLES
Set variable
WindSpeed
to
Rounded Number
SCRIPTING
If
WindSpeed
is
1
TEXT
kilometer per hour
VARIABLES
Set variable
WindUnit
to
Text
Otherwise
TEXT
kilometers per hour
VARIABLES
Set variable
WindUnit
to
Text
End If
End If
TEXT
There is a
WindDirection
wind blowing at
WindSpeed
WindUnit
.
VARIABLES
Set variable
WindPhrase
to
Text
Otherwise

Showcuts

Magic Vars

Screenshot

Submitted Anonymously 10 days ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0

536 more actions