3 ms·
Oh, you can actually do that with Shortcuts and Apple Health, today! Mine has a bug for some reason so I can’t make it, but basically: 1. Get details of healt
by graeme 5y ago
Oh, you can actually do that with Shortcuts and Apple Health, today!
Mine has a bug for some reason so I can’t make it, but basically:
1. Get details of health sample, should be one for time asleep
2. Get the number, compare it to the total you want a warning at
3. Display a custom notification if below threshold
4. Set this to run as an automation at like 9 am or whenever, daily, without asking
My only point of doubt is whether you can get this week’s sleep as a health sample.
But you can definitely get last night’s sleep from the health app.
I also checked Autosleep. They have a sleep bank function in shortcuts. You can parse the dictionary output, extract sleep debt and hours sleep, compare both to a set level, and alert if either is beyond threshold.
Autosleep is a great, inexpensive app. Works best with apple watch but can function without.
Shortcuts has gotten extremely powerful in past few years. Anyone on HN with an iphone should check it out. You can automate all kinds of stuff.