Auto Do Not Disturb (iOS 12)
Automatically sets Do Not Disturb based on your calendar events.
Description
iOS 13 Users should use Auto DND with Autocuts.
Auto Do Not Disturb is a shortcut that works with Cronios, the shortcut scheduler for iOS.
The shortcut looks at upcoming events in a specific calendar and automatically sets Do Not Disturb mode if the words “DND” appears in either the Title or Notes section of your event.
In Cronios, create a new cron job and assign Auto Do Not Disturb as the shortcut. Set the schedule according to your desired work day. You can import the following into Cronios:
#!# Cronios Crontab
# Automatically set Do Not Disturb
*/10 8-17 * * 1-5 Auto Do Not Disturb
to check every ten minutes from 8:00 am to 5:00 pm on Monday through Friday.
Get Cronios from: http://cronios.com
Feedback
Log in or sign up to leave feedback.
@cmagnuson
How do I use this shortcut without it notifying me every time it runs?: http://ca.mag.cm/51b4f0ecace6
I created a new cron job in Cronios and pointed it to this shortcut. For the schedule, I set Cronios to check this shortcut every minute from 9am to 9pm every day. My expectation is that this shortcut should only notify me when there is a change of state. Instead, I receive a new notification every minute regardless of whether the DND state changed.
· 1 year, 6 months ago
· 1 year, 6 months ago
@atow
Author
In the Auto Do Not Disturb shortcut itself, scroll to the end of the shortcut and remove the Show Notification action. Keep the one that says "Do Not Disturb On Until XXX".
You'll probably also want to adjust the cron job so that it's not running every minute. I would set it to every 10-15 minutes. You'll also want to tick the option "Exclude From Success Notifications". That will get rid of the Cronios success notification.
· 1 year, 6 months ago
· 1 year, 6 months ago
@atow
Author
Screenshot:
https://atow.files.wordpress.com/2019/01/Auto-Do-Not-Disturb.jpeg
· 1 year, 6 months ago
· 1 year, 6 months ago
@atow
Author
Delete action screenshot: https://atow.files.wordpress.com/2019/01/Auto-Do-Not-Disturb-Delete-Action.jpeg
· 1 year, 6 months ago
· 1 year, 6 months ago
@cmagnuson
Thank you for the suggestion. I had supposed that removing the notifications from the shortcut was the only way to disable them. I had to remove both of the notifications since I don't want to get a notification every minute during DND events. If a future version of this shortcut is developed, it would be neat if it could only display notifications when there is a state change rather than every time the shortcut is run.
· 1 year, 6 months ago
· 1 year, 6 months ago
@atow
Author
This would be nice, but there's no way to get the current DND status. While I could have written Auto Do Not Disturb's status to a file, I would not be able to detect if the user manually switched it off.
I'll update this shortcut in the future to give the user an option to turn off one or both notifications from the Customize Shortcut… page.
Hope Cronios is working well for you. I have some exciting updates planned for it in the coming weeks!
· 1 year, 6 months ago
· 1 year, 6 months ago