Daylight Hours note for iOS 13 only
Gives you fundamental information about today
Such as Sunrise and Sunset
Nothing great about that? But it also calculates the hours of Daylight and Hours of Darkness too.
Plus the weather where you are.
What's New
Version 1.0
First release
What it does
34 actions-
Get Current Weather
-
Get Details of Weather
-
Set VariableSun Up
-
Adjust Date
-
Set VariableUptomorrow
-
Get Details of Weather
-
Set VariableSun Down
-
Get Time Between Dates
-
Set VariableHoursDaylight
-
Get Time Between Dates
-
Set VariableDarkness
-
Nothing
-
Date
-
Get Time Between Dates
-
Set VariableTo Dark
-
Nothing
-
Adjust Date
-
Set VariableGolden hour
-
Nothing
-
Adjust Date
-
Set VariableBlue
-
Nothing
-
Get Details of Weather
-
Set VariableCondition
-
Get Details of Weather
-
Set VariableFeeling Like
-
Nothing
-
Get Time Between Dates
-
Set VariableTonight
-
If
-
Text
-
If
-
Text
-
Show Result
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#include 'actions/location'
#define color yellow
#define glyph sun
const WeatherConditions = getCurrentWeather()
getWeatherDetail(WeatherConditions, "Sunrise Time")
@SunUp
adjustDate(@SunUp, "")
@Uptomorrow
getWeatherDetail(WeatherConditions, "Sunset Time")
@SunDown
rawAction("is.workflow.actions.gettimebetweendates", {
"WFInput": "{@SunDown}",
"WFTimeUntilFromDate": "{@SunUp}",
"WFTimeUntilUnit": "Total Time"
})
@HoursDaylight
rawAction("is.workflow.actions.gettimebetweendates", {
"WFInput": "{@SunUp}",
"WFTimeUntilFromDate": "{@SunDown}",
"WFTimeUntilUnit": "Total Time"
})
@Darkness
nothing()
currentDate()
rawAction("is.workflow.actions.gettimebetweendates", {
"WFInput": "{@SunDown}",
"WFTimeUntilFromDate": "{}",
"WFTimeUntilUnit": "Total Time"
})
@ToDark
nothing()
adjustDate(@SunUp, "")
@GoldenHour
nothing()
adjustDate(@SunDown, "")
@Blue
nothing()
getWeatherDetail(WeatherConditions, "Condition")
@Condition
getWeatherDetail(WeatherConditions, "Feels Like")
@FeelingLike
nothing()
rawAction("is.workflow.actions.gettimebetweendates", {
"WFInput": "{@Uptomorrow}",
"WFTimeUntilFromDate": "{@SunDown}",
"WFTimeUntilUnit": "Total Time"
})
@Tonight
if CurrentDate contains "am" {
} else {
}
show()
Open in Cherri Playground
Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.
Ratings & Reviews
Write a Review–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Advertisement
More by tonydudley
You Might Also Like
Advertisement