ShareShortcuts

Wake Me Up In Time

shahd-s
„Wake Me Up In Time“ 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 shahd-s 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
68K
Gesichert
1
Aktionen
22
Kategorie
Routines
Version
1.0
Sprache
EN

This shortcut asks you where you need to be, when, and how long you take to get ready, then sets two alarms. One to wake you up to start getting ready, and another to tell you to leave your house so you can get to your destination on time.

Neue Funktionen

Version 1.0

First release

Versionsverlauf
1.0 25. Jun 2019

First release

Was er macht

22 Aktionen
  1. Ask for Input
    How long do you need to get ready in minutes?
  2. Set Variable
    Gettingreadytime
  3. Ask for Input
    Where do you need to be?
  4. Set Variable
    Desination
  5. Gettraveltime
  6. Format Date
  7. Set Variable
    Dist
  8. Get Time Between Dates
  9. Set Variable
    Traveltine
  10. Ask for Input
    When do you need to be there?
  11. Format Date
  12. Set Variable
    Class
  13. Adjust Date
  14. Format Date
  15. Set Variable
    leavingTimeDrive
  16. Adjust Date
  17. Format Date
  18. Set Variable
    Getreadytime
  19. Nothing
  20. Show Alert
  21. Create Alarm
  22. Create Alarm

Als Code ansehen
Beta

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

#define color pink
#define glyph alarmClock

prompt("How long do you need to get ready in minutes?", "Number")
@Gettingreadytime = nil
prompt("Where do you need to be?")
@Desination = nil
rawAction("is.workflow.actions.gettraveltime", {
	"WFGetDirectionsCustomLocation": "",
	"WFGetDirectionsFrom": "Current Location"
})
formatDate("", "None")
@Dist = nil
rawAction("is.workflow.actions.gettimebetweendates", {
	"WFTimeUntilUnit": "Minutes"
})
@Traveltine = nil
prompt("When do you need to be there?", "Date")
formatDate("", "None")
@Class = nil
adjustDate("", "")
formatDate("", "None")
@leavingTimeDrive = nil
adjustDate("", "")
formatDate("", "None")
@Getreadytime = nil
nothing()
confirm("If you wanna be in {@Desination} at {@Class}, you need to start getting ready at {@Getreadytime} and you need to leave at {@leavingTimeDrive}. I'm setting an alarm for {@Getreadytime}. \n\nThe drive is gonna take {@Traveltine} minutes. ")
rawAction("is.workflow.actions.alarm.create", {
	"WFLabel": "Get ready",
	"WFTime": "{@Getreadytime}"
})
rawAction("is.workflow.actions.alarm.create", {
	"WFLabel": "Leave house",
	"WFTime": "{@leavingTimeDrive}"
})
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 shahd-s

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung