Getting Healthy with Workflow

Shortcuts no longer supports shortcut file imports and links no longer function. Any links to shortcuts in this post have been updated to use iCloud links.

With the end of 2015 almost upon us, it’s time to make well-meaning new year resolutions about our health. Sticking to them, however, is easier said than done, so I thought I’d share some workflows that I created for Workflow which manipulate Health data, many of which I use on a daily basis.

Don’t forget, all of these workflows can be used as-is, but the real benefit comes from tinkering and changing them to best fit your own requirements.

Log Calories by Scanning a Barcode

This is one of my favourite workflows and really takes advantage of some of the features that makes Workflow such a joy to use. Using information from the Nutritionix USDA common foods database, you can scan the barcode of almost any US grocery item to find its calories and log them to Health. You can alter the serving size accordingly, which will adjust the calories calculated before logging them to Health. If no information can be found, or you don’t have a barcode handy, the workflow will ask you if you’d like to manually enter calorie information instead.

You’ll need to register for a free Nutritionix developer account and update the workflow with your API keys, and barcode scans are limited to 20 requests a day.

Calorie information for most US grocery items, along with the recommended serving size, can be determined

Manually Log Calories

Another favourite of mine can be run directly on your Apple Watch. Nutritionix only has widespread support for US grocery items, so anyone living outside the US will almost always have to log calories manually. To make this easier, this workflow can be run from either the Today Widget or Apple Watch to input the estimated calories consumed for a particular snack or meal, which is then logged to Health.

Apple Watch

Daily Health Report

This workflow can be run directly from the Today Widget and will display your total step count, flights climbed, walking + running distance, calories logged for the day and most recent weight. A great way to get some at-a-glance information about how you’re doing today.

A daily health report in the Today Widget

Monthly Weight Report

This workflow compares your most recent weight to that of 30 days ago and displays the results in a message. Just a quick way to see how your weight compares since last month.

Monthly Weight Report in the Today Widget

Monthly Weight Chart

While the Health app will display some basic chart information, it’s not very customisable and intuitive. This workflow is based upon my Create a Chart workflow and will create a chart of your weight based upon how many months you specify, output as an image.

I save the resulting chart into Day One each month so I can look back at my progress over the months (and, eventually, years).

Weight chart example for a 12 month period