Schedule Recurring Tasks on Trello

I use Trello a lot.  It plays a key role in how I Get Things Done.  It’s easy to use, snappy and lightweight.  There’s been one feature missing for me, though: recurring tasks.  There are tasks I need to do every week.  Laundry, my weekly review, whatever.  I can add them manually of course, but it would be nice not to have to.  So I wrote a quick little script that does it for me.  If you’re interested, feel free to clone the repo.

There’s a bit of setup required.  You need to install py-trello, the trello API wrapper I used.  I should add a requirements file so you can install it with pip, but I haven’t yet.  You’ll probably want to clone the py-trello repository anyway, since it simplifies the process of getting tokens.  Copy the two config.example files over and remove the “.example” suffix.  Get your Trello API key and secret.  Get your OAuth token and secret (py-trello provides a handy utility to do this, see their docs).  Replace the placeholder values in auth.config with your real values.  Edit schedule.config with the recurring tasks you want.  Next edit lines 19 and 24 of schedule_trello.py and replace “/absolute/path/to/” with the actual absolute path.  The last step is adding a line to your crontab so that this script will be run daily.  I wanted mine to run early in the morning so I set it to run at 5 AM every day.  More information on cron can be found on the Ubuntu community site. Fire up your terminal and run:

crontab -e

This will put you in a text editor editing your crontab file. At the bottom add:

0 5 * * * /full/path/to/schedule_trello.py

And you’re all set! Pull requests, comments and questions are welcome!

Advertisements

2 Responses to “Schedule Recurring Tasks on Trello”


  1. 1 jgraham February 17, 2016 at 9:52 PM

    I’m a newb at python, and just started using trello today… So I am really looking forward to trying this out!
    Thanks!
    JMG


  1. 1 2014 in review | A Stranger's Sojourn Trackback on January 1, 2015 at 10:03 AM

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




Pages

Categories

October 2014
M T W T F S S
« Sep   Nov »
 12345
6789101112
13141516171819
20212223242526
2728293031  

%d bloggers like this: