ShareShortcuts

Record Weight

Record your weight into the health app in either pounds or kilos

gramps
„Record Weight“ 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 gramps 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
59K
Gesichert
0
Aktionen
21
Kategorie
Utilities
Version
1.0
Sprache
EN

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

Versionsverlauf
1.0 12. Mai 2020

First release

Was er macht

21 Aktionen
  1. Get Device Details
  2. If
  3. Show Alert
  4. Stop This Shortcut
  5. If
  6. Choose from Menu
    Pounds / Kilos?
  7. Choose from Menu
    Pounds?
  8. Ask for Input
    Weight in lbs?
  9. Log Health Sample
  10. Show Notification
    … lbs added Ok
  11. Vibrate Device
  12. Find Health Samples
  13. Choose from Menu
    Kilos?
  14. Ask for Input
    Weight in kilos?
  15. Log Health Sample
  16. Vibrate Device
  17. Show Notification
    … kilos added Ok
  18. Find Health Samples
  19. Show Alert
    Body Weight last 5 days
  20. Show Alert
    Body Weight Details in health app default units
  21. Continue Activity

Als Code ansehen
Beta

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+MUAtLS0tRS1HMVxyZXF1aXJlZEtleXNVdGl0bGVad2VicGFnZVVSTF8QE2R5bmFtaWNBY3Rpdml0eVR5cGVfEBRwZXJ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9JQUWhpXxATTlNNdXRhYmxlRGljdGlvbmFyeaNoUlTSSyBrbaFsgA6AD1xkYXRhVHlwZUNvZGXSUFFwcVVOU1NldKJwVNJQUXN0XxASVUFVc2VyQWN0aXZpdHlJbmZvonVUXxASVUFVc2VyQWN0aXZpdHlJbmZvAAgAEQAaACQAKQAyADcASQBMAFEAUwBnAG0ArAC5AL8AygDgAPcA/wEbATMBRgFVAWIBZwFwAX0BhgGOAaMBsgG3Ab4B1QHdAekCAwISAh0CIgIwAjkCTQJPAlECUwJVAlcCWQJaAlsCXQJfAmECYwJlAmcCaAJqAmsCbQJvAnECcgJ0AnYCeAJ6AnwCfgKAAoICgwKKApICnQKeAp8CoQKmArECugLHAsoC0wLaAvcC/AMEAw0DDwMUAxsDHgM0AzsDPQM/A0EDQwNFA2IEFQQaBDAENAQ5BDsEPQQ/BEwEUQRXBFoEXwR0BHcAAAAAAAACAQAAAAAAAAB2AAAAAAAAAAAAAAAAAAAEjA=="
	})
}
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

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung