Below is a screenshot of the running web interface:
This Python-based project processes 67,000+ historical weather records (1840–2025) and generates dynamic HTML-based statistical reports hosted on a Raspberry Pi NGINX server.
- Parses historical weather data year-by-year.
- Calculates monthly high/low temperatures and precipitation summaries.
- Displays results using CGI-generated HTML tables.
- Color-coded KPI dashboard with real-time weather statistics.
- Python 3
- Pandas
- NumPy
- HTML/CSS
- NGINX (Raspberry Pi server hosting)
-
Install required Python packages:
pip install -r requirements.txt
-
Run the CSV creation script:
python create_all_csv_files.py
-
Deploy the CGI script:
- Place
display_weatherstats.py
inside/usr/lib/cgi-bin/
on Raspberry Pi. - Ensure the script is executable.
- Place
-
Access the dashboard by visiting:
http://<your-raspberrypi-ip>:8080/cgi-bin/display_weatherstats.py
Saket Chahal