Working on historical Health App data (Weight -> BMI)

Hi,

I’ve been measuring my weight for the last three years, with measurements every 3 or 4 days. Recently I purchased a scale that also calculates BMI automatically and realised I never recorded BMI in the past. Since this is a normal calculation I though I could create a Siri Shortcut to read historical data of the weight, take the date the measurement happened, then calculate the BMI and log it into the health app on the same date.

So far I have been unsuccessful as I am having trouble with the loops and recursion.

Anyone can provide help?

Here’s something to get you started:
https://www.icloud.com/shortcuts/80d1e4885d5d4687b5b487d634389d32

You’ll need to do the BMI calculation yourself, but adding it back to to Health has already been done - with the date of the weight entry.

This was so simple! How could I have been getting it wrong? :man_facepalming:

Thanks @RosemaryOrchard

1 Like

It’s easy to overcomplicate things! Glad you got it working :slight_smile:

1 Like

Still a work in progress but this Shortcut includes the calculation of the BMI when you record your weight

https://www.icloud.com/shortcuts/71df4096be434f0796223266d3fa90f3

2 Likes

Nice work! I added it to this list

I had this one just for the weight/BMI daily measurement but not for historical data.

Thanks everyone for the help.

https://www.icloud.com/shortcuts/d035e7be108e47959c2b15790d6bd4b1