Snow Day Detector
COMMENT
This shortcut is only effective via an automation.
URL
https://www.10tv.com/closings

URL
NETWORK
Get contents of
URL
Options Under Construction

Contents of URL
DOCUMENTS
Make rich text from
Contents of URL

Rich Text from HTML
TEXT
Match
Westerville City Schools
in
Columbus City Schools

Matches
SCRIPTING
Count
Items
in
Matches

Count
CLOCK
Get all alarms
SCRIPTING
Count
Items
in
Alarms

Count
SCRIPTING
If
Found School on Website
is greater than or equal to
1
SCRIPTING
Repeat with each item in
Alarms

Repeat Results
CLOCK
Turn
alarm "
Alarm
"
SCRIPTING
End Repeat

Repeat Results
NUMBER
1

Number
SCRIPTING
If
NotifyParents
is
1
MESSAGES
Send "
(this message is automated)
Siri has detected that there is a snow day or a delay for school, and has disabled all alarms. Please wake me up for school if this was a mistake.
" to
Recipients
SCRIPTING
End If

If Result
SCRIPTING
Turn Do Not Disturb
On
until
Turned Off
SCRIPTING
If
NotifyParents
is
1
SCRIPTING
If
Alarms Count
is greater than
1
NOTIFICATIONS
Show notification
Input
Options Under Construction
SCRIPTING
Otherwise
NOTIFICATIONS
Show notification
Input
Options Under Construction
SCRIPTING
End If

If Result
SCRIPTING
Otherwise
SCRIPTING
If
Alarms Count
is greater than
1
NOTIFICATIONS
Show notification
Input
Options Under Construction
SCRIPTING
Otherwise
NOTIFICATIONS
Show notification
Input
Options Under Construction
SCRIPTING
End If

If Result
SCRIPTING
End If

If Result
SCRIPTING
Otherwise
SCRIPTING
If
Alarms Count
is greater than
1
NOTIFICATIONS
Show notification
Input
Options Under Construction
SCRIPTING
Otherwise
NOTIFICATIONS
Show notification
Alarms Count
Options Under Construction
SCRIPTING
End If

If Result
SCRIPTING
End If

If Result
NUMBER
1

Number
COMMENT
Please create an automation that runs this shortcut a few minutes before your ealiest alarm. You MUST select “run immediately” on the automation options, it will not work if you select “run after confirmation”
Showcuts