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:
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!