A small Flask backend service that fetches time-series weather data from the Open-Meteo API and generates:
- π An interactive web dashboard with a chart
- π An Excel export (
.xlsx) - π A PDF report with chart
- Fetch last 48 hours of hourly temperature & humidity data
- Save results to SQLite database
- Web dashboard (
/) with:- Fetch Weather Data button (AJAX, no page reload)
- Auto-updating chart (temperature & humidity vs time)
- Export buttons (Excel + PDF)
- REST API endpoints for programmatic access:
GET /weather-report?lat={lat}&lon={lon}GET /export/excelGET /export/pdf
git clone https://github.com/snehab-1/weather-report-system.git
cd weather-report-system
or download the zip file to your local
pip install -r requirements.txtRun below command in command prompt or terminal
python app.py