opench-meteo-0.2.0.0: A Haskell implementation of the Swiss Meteo Net data API

Safe HaskellNone
LanguageHaskell2010

Data.Meteo.Swiss

Contents

Description

A Haskell implementation of the Swiss Meteo Net data API

OpenData SMN is a REST API for SwissMetNet data. It's developed in the open supporting the OpenData.ch initiative. Free OpenData hosting is provided by Netcetera at http://data.netcetera.com/smn.

The actual data for 10 min intervals is provided by opendata.swiss, the Swiss open government data portal.

Synopsis

Types

data SmnRecord Source #

A Swiss Meteo Network data SmnRecord. It contains the meteo information of a 10 min interval of a Swiss meteo station.

Note: All Text fields may contain empty strings.

Constructors

SmnRecord 

Fields

data SmnStation Source #

A Swiss Meteo Network data station.

Note: All Text fields may contain empty strings.

Constructors

SmnStation 

Fields

Functions that return URLs

urlDataAll :: Text Source #

Return the URL to retrieve all meteo data from all stations for the last 10 minutes.

urlDataStat Source #

Arguments

:: Text

3-char all upper-case station code

-> Text 

Return the URL to retrieve the meteo data for a given station for the last 10 minutes.

urlDocuStat Source #

Arguments

:: Text

3-char all upper-case station code

-> Text 

Return the URL to retrieve the documentation sheet for a given station