Mit dem iPhone scannen, um zu installieren
Vorschau
Record your weight into the health app in either pounds or kilos. Results will be displayed in the health app default measure.
Neue Funktionen
Version 1.0
First release
Was er macht
21 Aktionen-
Get Device Details
-
If
-
Show Alert
-
Stop This Shortcut
-
If
-
Choose from MenuPounds / Kilos?
-
Choose from MenuPounds?
-
Ask for InputWeight in lbs?
-
Log Health Sample
-
Show Notification… lbs added Ok
-
Vibrate Device
-
Find Health Samples
-
Choose from MenuKilos?
-
Ask for InputWeight in kilos?
-
Log Health Sample
-
Vibrate Device
-
Show Notification… kilos added Ok
-
Find Health Samples
-
Show AlertBody Weight last 5 days
-
Show AlertBody Weight Details in health app default units
-
Continue Activity
Als Code ansehen
Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.
#define mac false
#include 'actions/device'
#define color darkorange
#define glyph stethoscope
const DeviceModel = getDeviceDetail("Device Model")
if DeviceModel !contains "iPhone" {
confirm("This shortcut needs the iPhone Health app.")
stop()
} else {
menu "Pounds / Kilos?" {
item "Pounds?":
const ProvidedInput = prompt("Weight in lbs?", "Number")
rawAction("is.workflow.actions.health.quantity.log", {
"WFQuantitySampleAdditionalQuantity": "",
"WFQuantitySampleDate": "{CurrentDate}",
"WFQuantitySampleQuantity": "",
"WFQuantitySampleType": "Weight"
})
showNotification("{ProvidedInput} lbs added Ok", "Body Weight", false)
vibrate()
rawAction("is.workflow.actions.filter.health.quantity", {
"WFContentItemFilter": "",
"WFContentItemLimitEnabled": false,
"WFContentItemSortOrder": "Latest First",
"WFContentItemSortProperty": "Start Date",
"WFHKSampleFilteringFillMissing": false
})
item "Kilos? ":
const ProvidedInput = prompt("Weight in kilos?", "Number")
rawAction("is.workflow.actions.health.quantity.log", {
"WFQuantitySampleAdditionalQuantity": "",
"WFQuantitySampleDate": "{CurrentDate}",
"WFQuantitySampleQuantity": "",
"WFQuantitySampleType": "Weight"
})
vibrate()
showNotification("{ProvidedInput} kilos added Ok", "Body Weight", false)
rawAction("is.workflow.actions.filter.health.quantity", {
"WFContentItemFilter": "",
"WFContentItemLimitEnabled": false,
"WFContentItemSortOrder": "Latest First",
"WFContentItemSortProperty": "Start Date",
"WFHKSampleFilteringFillMissing": false,
"WFHKSampleFilteringUnit": "kg"
})
}
alert(, "Body Weight last 5 days")
alert("Open Health App?", "Body Weight Details in health app default units")
rawAction("is.workflow.actions.useractivity.open", {
"AppBundleIdentifier": "com.apple.Health",
"UserActivityData": "YnBsaXN0MDDUAQIDBAUGBwpYJHZlcnNpb25ZJGFyY2hpdmVyVCR0b3BYJG9iamVjdHMSAAGGoF8QD05TS2V5ZWRBcmNoaXZlctEICVRyb290gAGvEBELDElPVVZXW15fZWZnam5vclUkbnVsbN8QHg0ODxAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKissLS0tMDEyLS0tLS04MToyLT0+MUAtLS0tRS1HMVxyZXF1aXJlZEtleXNVdGl0bGVad2VicGFnZVVSTF8QE2R5bmFtaWNBY3Rpdml0eVR5cGVfEBRwZXJzaXN0ZW50SWRlbnRpZmllcldvcHRpb25zXxAZZWxpZ2libGVGb3JQdWJsaWNJbmRleGluZ18QFWVsaWdpYmxlRm9yUHJlZGljdGlvbl8QEGJ1bmRsZUlkZW50aWZpZXJeZXhwaXJhdGlvbkRhdGVccGF5bG9hZEVycm9yVHV1aWRYa2V5d29yZHNcYWN0aXZpdHlUeXBlWGlzQWN0aXZlV3ZlcnNpb25fEBJlbGlnaWJsZUZvckhhbmRvZmZedGVhbUlkZW50aWZpZXJUdHlwZVYkY2xhc3NfEBRlbGlnaWJsZUZvclJlbWluZGVyc1dwYXlsb2FkW3JlZmVycmVyVVJMXxAXdGFyZ2V0Q29udGVudElkZW50aWZpZXJecGVlckRldmljZVR5cGVacGVlckRldmljZVR3aGVuXWNvbnRlbnRBY3Rpb25YcGF5bG9hZHNfEBFlbGlnaWJsZUZvclNlYXJjaIANgASAAIAAgACAAggJgACAAIAAgACAAIAFCBAB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AAAAAAAAAAAAAEjA=="
})
}
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 gramps
Das gefällt dir vielleicht auch
Werbung