ShareShortcuts

Record Weight

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

gramps
Bifurcar “Record Weight”

¿Creaste algo nuevo a partir de este atajo? Compártelo como bifurcación: se convierte en un atajo tuyo, que tú administras, y ambas páginas se enlazan entre sí para que gramps reciba el crédito.

  1. 1Obtén el atajo y modifícalo en la app Atajos. Ponle un nombre propio.
  2. 2Compártelo desde la app Atajos y copia el enlace de iCloud.
  3. 3Vuelve aquí, pega el enlace y describe qué es diferente, p. ej., “Se añadió un paso que usa Apple Intelligence para personalizar el texto”.
Descargas
59K
Guardado
0
Acciones
21
Categoría
Utilities
Versión
1.0
Idioma
EN

Vista previa

Record your weight into the health app in either pounds or kilos. Results will be displayed in the health app default measure.

Novedades

Versión 1.0

First release

Historial de versiones
1.0 12 de may. de 2020

First release

Qué hace

21 acciones
  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

Ver como código
Beta

Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.

#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+MUAtLS0tRS1HMVxyZXF1aXJlZEtleXNVdGl0bGVad2VicGFnZVVSTF8QE2R5bmFtaWNBY3Rpdml0eVR5cGVfEBRwZXJzaXN0ZW50SWRlbnRpZmllcldvcHRpb25zXxAZZWxpZ2libGVGb3JQdWJsaWNJbmRleGluZ18QFWVsaWdpYmxlRm9yUHJlZGljdGlvb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0XxASVUFVc2VyQWN0aXZpdHlJbmZvonVUXxASVUFVc2VyQWN0aXZpdHlJbmZvAAgAEQAaACQAKQAyADcASQBMAFEAUwBnAG0ArAC5AL8AygDgAPcA/wEbATMBRgFVAWIBZwFwAX0BhgGOAaMBsgG3Ab4B1QHdAekCAwISAh0CIgIwAjkCTQJPAlECUwJVAlcCWQJaAlsCXQJfAmECYwJlAmcCaAJqAmsCbQJvAnECcgJ0AnYCeAJ6AnwCfgKAAoICgwKKApICnQKeAp8CoQKmArECugLHAsoC0wLaAvcC/AMEAw0DDwMUAxsDHgM0AzsDPQM/A0EDQwNFA2IEFQQaBDAENAQ5BDsEPQQ/BEwEUQRXBFoEXwR0BHcAAAAAAAACAQAAAAAAAAB2AAAAAAAAAAAAAAAAAAAEjA=="
	})
}
Abrir en Cherri Playground Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.

Valoraciones y reseñas

Escribe una reseña
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!

Publicidad

Más de gramps

Ver todo

También te puede gustar

Ver todo
Publicidad