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.
Nouveautés
Version 1.0
First release
Ce qu’il fait
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
Afficher en tant que code
Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.
#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()
Ouvrir dans Cherri Playground
Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.
Notes et avis
Écrire un avis–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Aucun avis pour le moment. Sois le premier à partager ton avis !
Publicité
Plus de tonydudley
Ça pourrait aussi te plaire
Publicité