Scan with your iPhone to install
Un atajo con el que añadiremos a Salud nuestro peso e IMC al mismo tiempo.
What's New
Version 1.0
First release
What it does
12 actions-
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
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#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()
Open in Cherri Playground
Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.
Ratings & Reviews
Write a Review–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Advertisement
More by pelocho
You Might Also Like
Advertisement