Skip to content

Dhiman-Ajay/Technical-Assignment-SYMB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Weather Report Service

This project provides a simple web service to fetch, store, and export weather data for a given location using the Open-Meteo API.

How to Run Locally

Option 1: Using Python

  1. Make sure you have Python 3 installed.
  2. Install required packages:
    pip install flask requests pandas matplotlib fpdf openpyxl
  3. Start the server:
    python app.py
  4. The service will run at http://localhost:5000.

Endpoints

  • /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.

Example Output Files

  • 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages