sqlalchemy-challenge

Hawaii Vacation Analysis

SQLAlchemy and Flask

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.

PART I - SQLAlchemy

This section of the project is saved in the Jupyter Notebook file: sqlalqemy_hawaai

Uses: Python, Pandas, Matplotlib, and SQLAlchemy

Queries include:

rbd

tf

tt

PART II - Flask

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.

Available Routes:

    <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