03/06/14 19:00:00

Geeking Meditation Timers 2nd Edition (Drafts, Due, Day One)

After my endeavors with Launch Center Pro I also wanted to have meditation timers in Drafts, because I thought it’s better equipped for the job (and also just out of pure “why the heck not”).

This is a Drafts action that uses Due to set the end of a meditation session. At the end Day One will be opened to create a new diary entry, as meditation log. Here’s the action:

drafts://x-callback-url/import_action?type=URL&name=Meditate&url=due%3A%2F%2Fx-callback-url%2Fadd%3Ftitle%3DMeditate%2520dayone%253A%252F%252Fpost%253Fentry%253D%7B%7B%2523%2523%2523%2520Meditation%2520Log%2520dtstamp%2520%2523%2523%2523%250A%250A%7D%7D%5B%5Bdraft%5D%5D%7B%7B%2520minutes.%250A%250A%7D%7D%26minslater%3D%5B%5Bdraft%5D%5D

The URL action basically looks like this:

due://x-callback-url/add?title=Meditate%20dayone%3A%2F%2Fpost%3Fentry%3D{{%23%23%23%20Meditation%20Log%20dtstamp%20%23%23%23%0A%0A}}[[draft]]{{%20minutes.%0A%0A}}&minslater=[[draft]]

Essentially a new timer is added to Due with a URL that creates a new diary entry in Day One with the following content:

### Meditation Log ###

[[title]] minutes

%|

The URL also uses the &minslater option for Due to set the alarm.

There are actually two new lines at the end, which you wouldn’t see in this post, so I wrote %| to indicate where the cursor will be after the URL is launched.

What I really like about this method is that I can set meditation timer to any time I want and the time is still going to be recorded in Day One.