This is the code for a personal dashboard on Pimoroni's Inky Frame e-paper display, which shows:
- your GitHub issues in a particular Project
- today's calendar events
- the temperature outside (coming soon)
It consists of:
-
the Exporter: a Python program that runs on your laptop, which fetches data from GitHub, formats it, and uploads it to a WebDAV server (I use Fastmail). This is designed to run as a cron job.
-
the Client: code that runs on the Inky Frame which downloads the data from WebDAV, and displays it beautifully on the e-paper screen.
Now you've no excuse not to know what's happening today. :)
graph LR
A[GitHub API] --> B[Exporter]
B --> C[WebDAV Server]
C --> D[Inky Frame Client]
D --> E[E-paper Display]
-
Install Thonny:
bash <(wget -O - https://thonny.org/installer-for-linux)
-
Connect the Inky Frame to the laptop using USB.
-
Launch Thonny.
-
Press Stop in Thonny to stop the Inky Frame from running its provided program.
-
Modify files on the Inky Frame using the Raspberry Pi Pico window in Thonny.
-
When you've changed a file, select
main.py
and press the Run button to start Inky Frame from scratch.
The exporter runs on your
- Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate
- Set up environment variables:
source .env
- Install dependencies and run:
pip install -r requirements.txt
python app.py
echo 'anthropic-api-key: KEY' > ~/.aider.conf.yml
aider client/work.py
- Sometimes Thonny doesn't recognise the Inky Frame at all. Try unplugging, plugging back in again, and then pressing the Stop/Reset button in Thonny.