Weather-0.1.0.1: Library for interacting with the Weather Underground JSON API.

Safe HaskellNone
LanguageHaskell2010

Net.Weather

Synopsis

Documentation

data Observation Source

Observation data.

Constructors

Observation 

Fields

obsTime :: String

The time the observation was taken.

obsWeather :: String

Description of the weather.

obsTemp :: Float

Temperature (F).

obsRelHumidity :: String

Relative humidity (%).

obsWind :: String

Wind condition.

obsFeelsLike :: String

What it feels like.

type APIKey = String Source

API key. Obtain yours at http://wunderground.com.

getConditions :: APIKey -> String -> String -> IO (Maybe Observation) Source

Get the current weather conditions of a city.