Skip to content

arthurgassner/time-teller

Repository files navigation

🕙 Time Teller


🚀 Detailed write-up 🚀



This repo contains the code powering the Time Teller, a literature clock driven by a Raspberry Pi Zero 2W.


How to install

Important

This script is meant to be run on a RPi Zero 2W hooked to a Waveshare’s 7.5inch e-Paper screen. To prepare the RPi correctly, please follow the detailed write-up.

  1. Install uv
  2. Create a virtual environment with uv venv --system-site-packages

Important

The --system-site-packages gives our virtual environment access to system-wide packages. This is necessary because this script relies on the RPi's GPIO, and hence on gpiozero -- a system-wide package.

  1. Install the necessary libraries with
uv pip install -r requirements.txt
  1. Ensure you're able to print to the screen by running uv run hello_world.py

Content

├── data/ # Where the fonts & quotes are stored, sourced from https://github.com/JohannesNE/literature-clock and https://fonts.google.com/
├── 3d-models/ # 3D models of the cases
├── notebooks/ # Notebooks used to prepare the data and develop
├── utils/ # Utils for the script to run
├── tests/ # pytest
├── main.py # Main script
├── hello_world.py # Script displaying "Hello World" on the screen
├── full_refresh.py # Script performing a full refresh on the screen (see https://time-teller.arthurgassner.ch/#step-3-display-something-on-the-screen)
├── partial_refresh.py # Script performing a partial refresh on the screen (see https://time-teller.arthurgassner.ch/#step-3-display-something-on-the-screen)
├── clear_screen.py # Script clearing the screen
└── README.md 

About

A literature clock displaying a literary quote every minute, powered by a Raspberry Pi Zero 2W and an e-ink screen.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published