Set alarm by sunrise

Gets the sunrise time from tomorrow’s forecast and sets the alarm 8.5 hours before.

Actions

shortcuts-action-icon-get-weather-forecast.webp
Get Weather Forecast
Gets an hourly or daily weather forecast at the specified location.
shortcuts-action-icon-get-item-from-list.webp
Get Item from List
Returns one or more items from the list passed as input. You can get the first item, the last item, a random item, the item at a particular index, or items in a range of indexes.
shortcuts-action-icon-get-details-of-weather-conditions.webp
Get Details of Weather Conditions
Gets a specific piece of information from the weather conditions passed into the action.
shortcuts-action-icon-text.webp
Text
Passes the specified text to the next action.
shortcuts-action-icon-dictionary.webp
Dictionary
Passes the specified list of key-value pairs to the next action as a dictionary.
shortcuts-action-icon-set-variable.webp
Set Variable
Sets the value of the specified variable to the input of this action.
Get All Alarms
Gets all the alarms in the Clock app.
shortcuts-action-icon-repeat-with-each.webp
Repeat with Each
Takes a list of items as input, and runs the contained actions once for each item in the list.
shortcuts-action-icon-get-dictionary-value.webp
Get Dictionary Value
Gets the value for the specified key in the dictionary passed into the action.
Format Date
Formats a date and time into text.
shortcuts-action-icon-set-dictionary-value.webp
Set Dictionary Value
Sets a value in the dictionary passed into the action.
shortcuts-action-icon-choose-from-list.webp
Choose from List
Presents a menu of the items passed as input to the action and outputs the user’s selection. Prompt The instruction provided when the list is presented. Select Multiple When enabled, multiple items may be chosen from the list.
shortcuts-action-icon-if.webp
If
Tests if a condition is true, and if so, runs the actions inside. Otherwise, the actions under “Otherwise” are run.
Create Alarm
Creates an alarm in the Clock app
shortcuts-action-icon-file.webp
Filter Files
Given a list of files, this action returns the files that match the given criteria. Allows for sorting, changing the order, and limiting the number passed as a result.
Toggle Alarm
Enables or disables an alarm in the Clock app.
Adjust Date
Adds or subtracts an amount of time from the date passed into the action.
shortcuts-action-icon-show-result.webp
Show Result
Shows the specified text in Siri or in an alert.

More From This Folder

Extra Details

Link to Run Shortcut
shortcuts://run-shortcut?name=Set%20alarm%20by%20sunrise
Link to Open Shortcut
shortcuts://open-shortcut?name=Set%20alarm%20by%20sunrise
AppleScript code
tell application “Shortcuts Events” run shortcut “Set alarm by sunrise” end tell

More From The Library

Add Basic spreadsheet

Adds a template from the Basic category in Numbers, including blank, dark mode, table and chart, pivot table, charting basics, checklist, checklist total, and categories.

Get Shortcut »


Get way deeper into Shortcuts – become a member.

Browse more