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.
Что нового
Версия 1.0
First release
Что делает
Действий: 34-
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
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#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()
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Ещё от tonydudley
Вам также может понравиться
Реклама