Skip to content

dhruvalpatel/weather_data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather Data API

A Dockerized Python-Flask-PostgreSQL application for fetching weather data from Meteostat API

Installation in local environment

Install docker

Install docker-compose

Run the following command in the root directory

docker-compose up

If some changes are made to file; please run following command first

docker-compose build

Documentation

Please refer the documentation published here to learn to use this API.

Contributing

Pull requests are more than welcome. For major changes, please open an issue first to discuss what you would like to change.

App contains three endpoints to pull data from Meteostat API

Historical data fetches all the available data and stores into db

  1. /load_historical_data/<stationID=10382>

Load daily data loads data into db for a given station id and only of oneday once

  1. /load_daily_data/<stationID=10382>

This will give JSON response of the average air temperature for the month of February for the "Berlin / Tegel"

weather station across all available years

  1. /berlin_tegel_station_data/

Note:

This endpoints will run on port 90. e.g //localhost:90/berlin_tegel_station_data/ Hope you find this helpful

License

MIT

About

This repo consist of flask API calls to fetch data from Meteostat API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors