Week 406 was posted by Charanjit Chana on 2025-08-08.
Now that I figured out how best to pull health samples in a Shortcut on my iPhone, here's my water logging shortcut. Feel free to take it and use it as it is, adapt it to specific measurements or units or to extend/reduce it's functionality as you see fit.
You do need to grant it health permissions once you open it in the Shortcuts app, but overall it's pretty simple:
- Prompts for the amount of water you've just drunk
- Logs the sample in the health app
- Retrieves how much water you've drunk today
- Alerts with the value retrieved
It originally used the notification action but that presents a button so I switched to an alert instead. It still needs manual dismissal but if you're on the lock screen it doesn't add clutter to the notification list.
My water intake has definitely improved and it didn't require an additional app to make it happen. Something I considered building for myself, but deep down I knew that I could achieve what I wanted to achieve with the Shortcuts app so I'm glad I spent the time digging in.
Tags: