This is a very basic personal weather website using Flask. Pulls weather from NOAA API while using MapBox to locate Latitude and Longitude coordinates. I plan to keep working on this site as I learn other skills.
The config.yaml file holds the MapBox API key that needs to be provided. The file should be formatted like so:
---
# Configuration File for weather-app.py
mapbox_api:
key: "<your-api-key-here>"
openweather_api:
key: "<your-openweather.org-api-key>
The file should be in the top level directory of the project.
- clone git repo
- Create a config.yaml file. You will need a free API key from mapbox.com
- pipenv install
- pipenv shell
- source env_setup.sh (this just sets environment variables)
- flask run
If you open your browser to http://127.0.0.1:5000 you should get the webpage