wunderground v0.0.3 Wunderground

Wunderground, a basic API wrapper for talking to the Weather Underground HTTP API.

Link to this section Summary

Functions

Gets the current conditions for the given location

Link to this section Types

Link to this section Functions

Gets the current conditions for the given location.

Usage

# For the US using {:us, state, city} or {:us_zip, zipcode}
{:ok, conditions} = Wunderground.conditions({:us, "CA", "San_Francisco"})
{:ok, conditions} = Wunderground.conditions({:us_zip, 60290})

# International using {:international, country, city}
{:ok, conditions} = Wunderground.conditions({:international, "Australia", "Sydney"})

# Via coordinates using {:geo, lat, lng}
{:ok, conditions} = Wunderground.conditions({:geo, 37.8, -122.4})

# For an airport using {:airport, airport_code}
{:ok, conditions} = Wunderground.conditions({:airport, "KJFK"})

# For a specific personal weather station using {:pws, pws_id}
{:ok, conditions} = Wunderground.conditions({:pws, "KCASANFR70"})

# For the GeoIP location of the running machine using {:auto_ip}
# or any IP address using {:auto_ip, ip_adress}
{:ok, conditions} = Wunderground.conditions({:auto_ip})
{:ok, conditions} = Wunderground.conditions({:auto_ip, {185, 1, 74, 1}})