Print my Todo List (from Todoist).
I like paper, but updating (and keeping track of) a paper todo list isn't easy.
So ive hooked up a thermal printer to a raspberry pi, and now i can print a new list whenever i want!
The Pi pinout outlines the "software names" of the pins on the pi. I chose to put some buttons in the section opposite the pins used for the printer (near BCM pin 26), because of their easy access to a Ground pin.
This script requires that the python todoist api client be installed:
pip install todoist-python
todolist.py can be run with either
--config options to provide a todoist api token.
--config, provide a valid yaml file like the following:
For help with tokens, see the ToDoist developer site
The script also takes a
--query option. Unfortunately, for Free users like me,
the queries accepted are extremely limited, and dont support most of the filter
operations. The following seem to work:
todolist.py -c config.yml -q 'viewall'
The included script
gpio_listener.py can be used to take actions based on
inputs on the Pi's GPIO pins (e.g. pressing a physical button). The script
itself is pretty basic, but should be configurable enough for reuse in other
debian/ folder contains the necessary configuration to build a debian
package which will run the GPIO Listener as a service, via systemd.
- templates for todolist output, prettier output.