Skip to content

nwang57/WeatherApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WeatherApi

An wrapper for WeatherUnderground API

Overview

The weather api uses the history endpoint of the WeatherUnderground API to query the historical weather condition for a given perid of time and zip code for the location.

Configuration

To use the WeatherUnderground API, one needs to get an api key to make requests. Don't worry its free. You can get it here

Setup Prerequisites

  1. Set WEATHER_API_KEY environment variable as your api key.
  2. Install all the requirements in the requirements.txt pip install -r requirements.txt

Usage Example

from weather.weather_api import WeatherApi

\#this will automatically get your api key from the environment variable WEATHER_API_KEY
client = WeatherApi()
cient.search_day(datetime.datetime(2015,11,30), "21202")

About

An wrapper for WeatherUnderground API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages