About the Apple Shortcuts app.
The Shortcuts app lets you create your own shortcuts with multiple steps that you can use with AutoSleep and many other apps and system services. You can use scripting so that the shortcut you create does different things based on your sleep data. This can includes all sorts of things, from playing selected music to setting a reminder to sending you a tailored notification. There's a good introduction to Shortcuts here.
You can get it for free by clicking this link. There are some fantastic resources about shortcuts on the web. We think the best you will find is from Federico Vittici & his team at MacStories. They also provide an in depth coverage of new apps with Shortcuts support and lots of Shortcuts news. Highly recommended! Each of the four main AutoSleep Siri shortcuts allows you to write a dictionary of key metrics to the clipboard. The Shortcuts app can then read the dictionary and you can use these metrics in your shortcut scripts. Time Asleep shortcut The Time Asleep shortcut includes the following:
Latest Bedtime shortcut The Latest Bedtime shortcut includes the following:
Sleep Rings shortcut The Sleep Rings shortcut is based on the 4 AutoSleep rings and includes the following:
Readiness shortcut The Readiness shortcut is based on the daily readiness star rating, which considers waking HRV and waking pulse:
Step 1: Create a new shortcut and add your chosen AutoSleep shortcut. In this example we will use Time Asleep. Turn off the show when run switch if you do not want the sleep graphics to display. Step 2: Add Get Clipboard. Step 3: In the Scripting option, add Get Dictionary From Input. Step 4: Now do something with the dictionary. In this example, lets display a local notification. So we will add Show Notification. When you touch the body of the notification, this will display your keyboard. Just above this is a row of things that you can select. You will notice one called Dictionary. Oddly enough, this lets you select and include values from the dictionary. Let's type a message for our notification and include a value from the dictionary. So, in this case we typed "Today I slept" and then pressed the Dictionary button. Now we just need to touch the Get Value for Key option. So lets enter the "Sleep" key. From above you'll remember that's the number of hours we slept last night. Once we press OK you can see that the dictionary value has been placed in the notification. Let's add the word "hours" to round out the body of our notification message. Now we just need to press Done. Now lets press the Play button to test our shortcut. Here's the result. Just like that. A notification of how many hours we slept.
Now let's give this shortcut a name and decide how we want to run it. We do this by touching the icon below. Here we can give our shortcut a name, change it's icon add it to Siri, show it in the Today View widget and much more. |