Skip to content

GH-Jonny-PRG/Pi-Stats-screen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raspberry Pi Stats Dashboard

A professional monitoring dashboard for Raspberry Pi 4 that displays real-time system statistics including CPU temperature, CPU utilization, disk space for all mounted drives, and power usage approximation.

Features

  • Real-time updates every 2 seconds
  • Dark mode UI with white, pink, green, and light blue accents
  • Circular progress indicators for CPU stats and power
  • Bar charts for disk usage across all mounted partitions
  • Web-based interface accessible from any device
  • Optimized for display on Raspberry Pi connected screens

Installation

  1. Clone the repository:

    git clone https://github.com/GH-Jonny-PRG/Pi-Stats-screen.git
    cd Pi-Stats-screen
    
  2. Install dependencies:

    pip3 install -r requirements.txt
    

    (On Raspberry Pi, use pip3 instead of pip. If pip3 is not installed, run sudo apt update && sudo apt install python3-pip. You may need sudo for system-wide installation.)

  3. Run the application:

    python3 app.py
    
  4. Open your web browser and navigate to http://localhost:5000 (or http://<pi-ip>:5000 from another device).

Usage

  • For local display on Raspberry Pi: Open the URL in a fullscreen browser window.
  • Access remotely: Use the Pi's IP address and port 5000.

Auto Start on Boot

To automatically start the dashboard when the Raspberry Pi boots:

  1. Create a systemd service file:

    sudo nano /etc/systemd/system/pi-stats.service
    

    Add the following content (replace /path/to/Pi-Stats-screen with the actual path):

    [Unit]
    Description=Pi Stats Dashboard
    After=network.target
    
    [Service]
    ExecStart=/usr/bin/python3 /path/to/Pi-Stats-screen/app.py
    WorkingDirectory=/path/to/Pi-Stats-screen
    User=pi
    Restart=always
    
    [Install]
    WantedBy=multi-user.target
    
  2. Reload systemd and enable the service:

    sudo systemctl daemon-reload
    sudo systemctl enable pi-stats
    sudo systemctl start pi-stats
    
  3. Check status:

    sudo systemctl status pi-stats
    

Notes

  • CPU temperature is read from /sys/class/thermal/thermal_zone0/temp.
  • Power usage is approximated using CPU utilization as a proxy, since Raspberry Pi lacks a direct power sensor.
  • Disk space is shown for all mounted partitions.

Requirements

  • Python 3.7+
  • Flask
  • Flask-SocketIO
  • psutil

License

MIT License

About

A professional monitoring dashboard for Raspberry Pi 4 that displays real-time system statistics including CPU temperature, CPU utilization, disk space for all mounted drives, and power usage approximation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors