Mit dem iPhone scannen, um zu installieren
Un atajo con el que añadiremos a Salud nuestro peso e IMC al mismo tiempo.
Neue Funktionen
Version 1.0
First release
Was er macht
12 Aktionen-
Ask for InputPeso (kg)
-
Set Variablepeso (kg)
-
Find Health Samples
-
Set VariableAltura (m)
-
Calculate
-
Set Variablem^2
-
Get Variable
-
Calculate
-
Set VariableIMC
-
Log Health Sample
-
Log Health Sample
-
Stop This Shortcut
Als Code ansehen
Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.
#define color pink
#define glyph person2
prompt("Peso (kg)", "Number")
@Pesokg = nil
rawAction("is.workflow.actions.filter.health.quantity", {
"WFContentItemFilter": "",
"WFContentItemLimitEnabled": true,
"WFContentItemLimitNumber": 1,
"WFHKSampleFilteringUnit": "m"
})
@Alturam = nil
@m2 = nil … nil
// TODO: Get Variable not supported: Assign variable here to '@Pesokg'.
@IMC = nil / @m2
rawAction("is.workflow.actions.health.quantity.log", {
"WFQuantitySampleAdditionalQuantity": "",
"WFQuantitySampleDate": "",
"WFQuantitySampleQuantity": "",
"WFQuantitySampleType": "Weight"
})
rawAction("is.workflow.actions.health.quantity.log", {
"WFQuantitySampleAdditionalQuantity": "",
"WFQuantitySampleQuantity": "",
"WFQuantitySampleType": "Body Mass Index"
})
stop()
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 pelocho
Das gefällt dir vielleicht auch
Werbung