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.
Nyheder
Version 1.0
First release
Hvad den gør
22 handlinger-
Ask for InputHow long do you need to get ready in minutes?
-
Set VariableGettingreadytime
-
Ask for InputWhere do you need to be?
-
Set VariableDesination
-
Gettraveltime
-
Format Date
-
Set VariableDist
-
Get Time Between Dates
-
Set VariableTraveltine
-
Ask for InputWhen do you need to be there?
-
Format Date
-
Set VariableClass
-
Adjust Date
-
Format Date
-
Set VariableleavingTimeDrive
-
Adjust Date
-
Format Date
-
Set VariableGetreadytime
-
Nothing
-
Show Alert
-
Create Alarm
-
Create Alarm
Vis som kode
Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.
#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}"
})
Åbn i Cherri Playground
Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.
Bedømmelser og anmeldelser
Skriv en anmeldelse–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ingen anmeldelser endnu. Vær den første!
Annonce
Mere fra shahd-s
Du vil måske også kunne lide
Annonce