Skip to content

pkshort/OpenWeatherAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenWeatherAPI

This application takes in a CSV file and retrieves information from the Open Weather Map API based on the cities given in the CSV and outputs a CSV file with the weather of those particular cities as well as displaying the results on the local host address: 'http://127.0.0.1:5000/'.

Getting Started

On Linux Terminal

After downloading or forking this project, you first want to download the libraries needed via the requirements.txt file then you can proceed to build the flask app by using the command 'export FLASK_APP=app.py' while in the same directory as weather.py (within /src). Before you can run the project, make sure to get an API key from Open Weather Map, and add the key to the config.json file under the variable name 'api_key'. Once an API key is added, you can run the app using the command 'python3 -m flask run' while in the directory /src.

Prerequisites

Make sure to have Python 3.x installed before running the source files, either free or paid for API key from Open Weather Map. The program will automatically create an 'output.csv' file in the source directory after the program is run. Also make sure to install all packages within the requirements.txt file.

Built With

About

Takes in a CSV file of locations by city, and outputs the current weather of those cities to a CSV file via the Open Weather Map API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages