A simple project that displays the status of a pregnancy using 2.7 inch e-Paper HAT by Waveshare. Meant to be run on a Raspberry Pi.
- Configure your Raspberry Pi according to the docs provided by Waveshare.
- Clone this repo:
git clone https://github.com/grappeq/e-ink-pregnancy-tracker.git - Install dependencies:
pip3 install -r requirements.txt - Install libopenjp2 required by Pillow:
sudo apt-get install libopenjp2-7 - Copy the
config.json.examplefile asconfig.jsonand set the expected birth date. - Configure cron to run the
main.pyfile on a schedule (e.g. every 30 mins).
If you wish to try out the package locally, you can run the local_test.py file. The script generates the image and displays it on your screen without the need of relying on packages that are available only on Raspberry Pi.
- 2.7 inch e-Paper HAT docs
- Model of the case for the display and Raspberry Pi Zero (visible on the photo above)