Skip to content
AyanMulla09Public

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Raspberry Pi Stats Dashboard

A real-time system monitoring dashboard for Raspberry Pi with privacy protection and beautiful visualizations.

Features

  • Real-time Monitoring: CPU, Memory, Disk, Network, and Process statistics
  • Privacy Protected: IP addresses and MAC addresses are anonymized for public deployment
  • Beautiful UI: Modern dashboard with gradient animations and responsive design
  • Secure Public Access: Deployed via Cloudflare Tunnel with HTTPS

Live Dashboard

Public URL: https://ayanmulla.site/pi-stats/

Architecture

Frontend (Next.js)

  • Framework: Next.js 15.4.2 with App Router
  • Styling: Tailwind CSS 4.0
  • Deployment: Static export served by nginx
  • Location: /var/www/ayanmulla.site/pi-stats/

Backend (Python Flask)

  • Server: pi-stats-server/stats_server.py
  • Port: 3000 (local)
  • API Endpoint: /api/stats
  • Privacy Features: IP/MAC anonymization

Web Server (Nginx)

  • Port: 8080 (to avoid Pi-hole conflict on port 80)
  • Config: /etc/nginx/sites-available/ayanmulla.site
  • API Proxy: /api/ → localhost:3000/api/

Public Access (Cloudflare Tunnel)

  • Service: cloudflared.service
  • Protocol: HTTPS
  • Domain: ayanmulla.site

Privacy Protection

All sensitive information is anonymized when displayed publicly:

  • Private IPs: 10.x.x.x
  • Public IPs: 203.xxx.xxx.xxx
  • MAC Addresses: 2c:cf:67:xx:xx:xx

Development

Start the API Server

cd pi-stats-server
python3 stats_server.py

Build the Dashboard

npm run build
sudo cp -r out/* /var/www/ayanmulla.site/pi-stats/

Requirements

pip install psutil flask flask-cors
npm install

Monitoring Metrics

  • CPU: Usage percentage, cores, load averages
  • Memory: RAM usage, available memory
  • Storage: Disk usage, free space
  • Network: Interface statistics, traffic data
  • Processes: Top CPU-consuming processes
  • System: Temperature, uptime

Security Notes

  • SSH access IP is anonymized in public dashboard
  • No sensitive system paths or credentials exposed
  • All network topology information is abstracted
  • Process information shows only basic resource usage

Deployed: July 22, 2025
Status: Active and Monitoring

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages