This project uses SQLAlchemy to query historical weather data to plan a Hawaiian vacation and uses Flask to set up an API call to retrieve relevant weather data.
This section of the project is saved in the Jupyter Notebook file: sqlalqemy_hawaai
Uses: Python, Pandas, Matplotlib, and SQLAlchemy
Retrieve the most recent 12 months of precipitation data from the database, load into a Panda dataframe.
Determine the most active weather stations recording climate data in Hawaii.
Using the most active weather station (the station with the highest count of observations), retrieve the temperature data (tobs) for the most recent 12 months in the database.
Queries to help with vacation planning:
This section of the project is saved in the Python file: app
Uses: Python, Flask
This app is uses Flask to create an API to query the same Hawaii weather database and return a JSON of the results.
<strong>/api/v1.0/precipitation</strong><br>
- - - - - Returns the most recent 12 months of precipitation data (2016-08-23 thru 2017-08-23)<br>
<br>
<strong>/api/v1.0/stations</strong><br>
- - - - - Returns all stations and observation count for each station<br>
<br>
<strong>/api/v1.0/tobs</strong><br>
- - - - - Returns the Min, Max, and Avg temperature recorded in the most recent 12 months by the most active station<br>
<br>
<strong>/api/v1.0/yyyy-mm-dd</strong><br>
- - - - - Returns the Min, Max, and Avg temperature recorded between the starting date <strong>yyyy-mm-dd</strong> and 2017-08-23<br>
<br>
<strong>/api/v1.0/yyyy-mm-dd/yyyy-mm-dd</strong><br>
- - - - - Returns the Min, Max, and Avg temperature recorded between the starting date <strong>yyyy-mm-dd</strong> and end date <strong>yyyy-mm-dd</strong><br>
- - - - - Date range for available data: 2010-01-01 thru 2017-08-23