Skip to content

Outputs the result of pihole chronometer to a Waveshare 2.7 inch e-Paper hat

License

Notifications You must be signed in to change notification settings

ca0abinary/raspi_pihole_epd

Repository files navigation

PiHole e-Paper Display

e-paper hat image

Outputs the result of pihole chronometer to a Waveshare 2.7 inch e-Paper hat.

Enable SPI Interface on the Raspberry Pi

Before connecting the e-paper display to the Raspberry Pi the SPI interface needs to be enabled. This can be accomplished by using the raspi-config command and selecting Interfacing options -> SPI -> Yes

enable interface

Installation

sudo apt update -y && sudo apt install -y python3 python3-pil
git clone https://github.com/ca0abinary/raspi_pihole_epd.git

To make it run on a schedule:

cd raspi_pihole_epd
crontab -l > cronjobs
echo "* * * * * $(pwd)/display.py" >> cronjobs
crontab cronjobs

Files

  • display.py
    • Main application, parses the output of pihole chronometer and displays on the result to the e-paper hat
  • display-web.py
    • Displays the website graph using selenium, webdriver, and imagemagick
    • 4gray.png
  • EPD support files
    • epd2in7.py - if you have another type of display this file can be swapped out
    • epdconfig.py - config file from waveshare
    • FiraCore-Regular.ttf - mono-space font from the excellent FiraCode project. This can be swapped out for a standard font such as Roboto if the strings running off-screen bothers you. A mono-space font makes the chronometer output look nicer.

About

Outputs the result of pihole chronometer to a Waveshare 2.7 inch e-Paper hat

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages