This project provides a simple web service to fetch, store, and export weather data for a given location using the Open-Meteo API.
- Make sure you have Python 3 installed.
- Install required packages:
pip install flask requests pandas matplotlib fpdf openpyxl
- Start the server:
python app.py
- The service will run at
http://localhost:5000.
/weather-report?lat=<latitude>&lon=<longitude>: Fetches and stores weather data for the given location./export/excel?lat=<latitude>&lon=<longitude>: Downloads weather data as an Excel file./export/pdf?lat=<latitude>&lon=<longitude>: Downloads a PDF weather report with a chart.
weather_data_lat47.37_lon8.55.xlsx: Excel file containing weather data.weather_report_lat47.37_lon8.55.pdf: PDF report with weather chart and summary.