ShareShortcuts
„Daylight Hours“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit tonydudley die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
67K
Gesichert
0
Aktionen
34
Kategorie
Utilities
Version
1.0
Sprache
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.

Neue Funktionen

Version 1.0

First release

Versionsverlauf
1.0 1. Aug 2019

First release

Was er macht

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

Als Code ansehen
Beta

Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.

#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()
In Cherri Playground öffnen Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.

Bewertungen und Rezensionen

Rezension schreiben
–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Werbung

Mehr von tonydudley

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung