ShareShortcuts
Создать форк «Daylight Hours»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы tonydudley получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
67K
Сохранено
0
Действия
34
Категория
Utilities
Версия
1.0
Язык
EN

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

История версий
1.0 1 авг 2019 г.

First release

Что делает

Действий: 34
  1. Get Current Weather
  2. Get Details of Weather
  3. Set Variable
    Sun Up
  4. Adjust Date
  5. Set Variable
    Uptomorrow
  6. Get Details of Weather
  7. Set Variable
    Sun Down
  8. Get Time Between Dates
  9. Set Variable
    HoursDaylight
  10. Get Time Between Dates
  11. Set Variable
    Darkness
  12. Nothing
  13. Date
  14. Get Time Between Dates
  15. Set Variable
    To Dark
  16. Nothing
  17. Adjust Date
  18. Set Variable
    Golden hour
  19. Nothing
  20. Adjust Date
  21. Set Variable
    Blue
  22. Nothing
  23. Get Details of Weather
  24. Set Variable
    Condition
  25. Get Details of Weather
  26. Set Variable
    Feeling Like
  27. Nothing
  28. Get Time Between Dates
  29. Set Variable
    Tonight
  30. If
  31. Text
  32. If
  33. Text
  34. 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

См. все

Вам также может понравиться

См. все
Реклама