Coder Social home page Coder Social logo

piholedisplay's Introduction

Pihole Display

Pi Hole stats

Hardware

  • Raspberry Pi 3B+ with pihole
  • Waveshare 2.13 inch ePaper display model B (3 colors: black, white and red)

Installation

Waveshare display drivers

  • 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
    

Final steps

  • Clone this repository onto a suitable forlder on your Pi.
    git clone https://github.com/Cerbrus/piholedisplay.git
    
  • Navigate to the /python folder
    cd piholedisplay/python/
    
  • Run the stats.py script using
    python stats.py
    

Running on startup

  • Lastly we just want to make this run at boot. This can be done in different ways:

a: Using rc.local:

  • 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 & before exit 0. Editing rc.local
  • Then save and you can reboot to test it out.

b: As a service:

  • 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
    

piholedisplay's People

Contributors

cerbrus avatar gsemet avatar aeonstrife avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.