ShareShortcuts

Daylight Hours

tonydudley
Dupliquer « Daylight Hours »

Tu as créé quelque chose de nouveau à partir de ce raccourci ? Partage-le comme version dérivée : il devient un raccourci à toi, que tu gères, et les deux pages renvoient l’une vers l’autre pour que tonydudley soit crédité.

  1. 1Obtenez le raccourci et modifiez-le dans l’app Raccourcis. Donnez-lui un nom bien à lui.
  2. 2Partage-le depuis l’app Raccourcis et copie le lien iCloud.
  3. 3Reviens ici, colle le lien et décris ce qui change, par exemple : « Ajout d’une étape qui utilise Apple Intelligence pour personnaliser le texte. »
Créer mon fork
Téléchargements
67K
Enregistré
0
Actions
34
Catégorie
Utilities
Version
1.0
Langue
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.

Nouveautés

Version 1.0

First release

Historique des versions
1.0 1 août 2019

First release

Ce qu’il fait

34 actions
  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

Afficher en tant que code
Bêta

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

Tout afficher

Ça pourrait aussi te plaire

Tout afficher
Publicité