Shortcuts - Connect to Health
This is part of a series:
- Why numeric input
- Displaying result
- Getting numeric input
- Transfer to Apple Watch
- Connect to Health (this article)
Introduction
Getting a Shortcut to receive numeric input and displaying again is essential to knowing input is flowing into the system and out again.
Let’s have the Shortcut flow information into another system, say the Health app on iPhone, so you can record your favorite health information such as: weight, body fat, body temperature, blood pressure, etc. from a Shortcut instead of manually entering health details in the Health app.
Connect to Health
We start with the Get Input app from previous article - get a numeric input in and display an alert:
Add a Health sample in by “Search for apps and actions”, and search for: “Log Health Sample”
After adding the Log Health Sample, the Get Input Shortcut will look like:
Update the Log Health Sample to have:
- a Type - I selected “Weight” in the following screen.
- a Value - I selected “Value” in the following screen, which will ask for input.
- a Date - I selected “Current Date” in the following screen, which is the date you run the Shortcut.
Run and test out the Shortcut by pressing ▶️ button:
Validate the Shortcut worked by checking All Data for that particular health entry. In my case, the weight data appears:
Notice, health entries created by Shortcuts have the Shortcuts icon than the Health icon. This means the Get Input Shortcut works!