/noaa-daisi

A Daisi for fetching data from the NOAA Weather API

Primary LanguagePython

NOAA Weather Data API with Daisies

How to Call

First, we simply load the PyDaisi package:

import pydaisi as pyd

Next, we connect to the Daisi:

noaa = pyd.Daisi("erichare/NOAA Weather")

Now, all we have to do is call one of the endpoints, passing in the country_code and postal_code:

available_vars = noaa.available_wx_data(country_code="US", postal_code="77001").value
available_vars

noaa.forecast(country_code="US", postal_code="77001", vars=["temperature", "dewpoint"]).value
noaa.observations(country_code="US", postal_code="77001", vars=["temperature", "dewpoint"]).value

Running the Streamlit App

Or, we can automate everything by just Running the Streamlit App