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.
- 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
-
Clone the repository:
git clone https://github.com/GH-Jonny-PRG/Pi-Stats-screen.git cd Pi-Stats-screen -
Install dependencies:
pip3 install -r requirements.txt(On Raspberry Pi, use
pip3instead ofpip. If pip3 is not installed, runsudo apt update && sudo apt install python3-pip. You may needsudofor system-wide installation.) -
Run the application:
python3 app.py -
Open your web browser and navigate to
http://localhost:5000(orhttp://<pi-ip>:5000from another device).
- 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.
To automatically start the dashboard when the Raspberry Pi boots:
-
Create a systemd service file:
sudo nano /etc/systemd/system/pi-stats.serviceAdd the following content (replace
/path/to/Pi-Stats-screenwith 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 -
Reload systemd and enable the service:
sudo systemctl daemon-reload sudo systemctl enable pi-stats sudo systemctl start pi-stats -
Check status:
sudo systemctl status pi-stats
- 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.
- Python 3.7+
- Flask
- Flask-SocketIO
- psutil
MIT License