- Raspberry Pi 3B+ with pihole
- Waveshare 2.13 inch ePaper display model B (3 colors: black, white and red)
-
Install the libraries mentioned here.
-
Enable spi, i2c and edit the modules config file as given here
-
[Optional] Download demo code from here and run it to make sure everything is working
-
also install the requests library and dotmap libraries (needs pip to be installed)
sudo pip install requests pip3 install dotmap
- If you downloaded the demo code, just place the stats.py inside the 2.13inch_e-Paper_HAT-code/raspberrypi/python folder
- If you didnot download the demo code, copy the python folder from this repo into your pi folder.
- run the stats.py script using
./start-pihole-stat.sh
- Lastly we just want to make this run at boot. This can be done in different ways:
- This can be done by editing
/etc/rc.local
- Open
rc.local
:sudo nano /etc/rc.local
- Add
/home/pi/piholedisplay/start-pihole-stat.sh &
beforeexit 0
. - Then save and you can reboot to test it out.
- Another option is to run it as a service:
sudo cp pihole-stats.service /etc/systemd/system sudo systemctl daemon-reload sudo systemctl enable pihole-stats.service