xmobar-0.33: A Minimalistic Text Based Status Bar
Copyright(c) Andrea Rossato
LicenseBSD-style (see LICENSE)
MaintainerJose A. Ortega Ruiz <jao@gnu.org>
Stabilityunstable
Portabilityunportable
Safe HaskellNone
LanguageHaskell98

Xmobar.Plugins.Monitors.Weather

Description

A weather monitor for Xmobar

Synopsis

Documentation

data WeatherOpts Source #

Options the user may specify.

Constructors

WeatherOpts 

defaultOpts :: WeatherOpts Source #

Default values for options.

data WindInfo Source #

Instances

Instances details
Show WindInfo Source # 
Instance details

Defined in Xmobar.Plugins.Monitors.Weather

getData :: Maybe Manager -> String -> IO String Source #

Get the decoded weather data from the given station.

formatSk :: Eq p => [(p, p)] -> p -> p Source #

formatWeather Source #

Arguments

:: WeatherOpts

Formatting options from the cfg file

-> [(String, String)]

SkyConditionS for WeatherX

-> [WeatherInfo]

The actual weather info

-> Monitor String 

showWeather :: String -> String -> String Source #

Show the weather field with a default string in case it was empty.

startWeather' Source #

Arguments

:: [(String, String)]

SkyConditionS replacement strings

-> String

Weather station

-> [String]

User supplied arguments

-> Int

Update rate

-> (String -> IO ()) 
-> IO () 

Start a weather monitor, create a new 'Maybe Manager', should the user have chosen to use one.

startWeather :: String -> [String] -> Int -> (String -> IO ()) -> IO () Source #

Same as startWeather', only for Weather instead of WeatherX, meaning no SkyConditionS.

runWeather Source #

Arguments

:: [(String, String)]

SkyConditionS replacement strings

-> Maybe Manager

Whether to use a Manager

-> WeatherOpts

Weather specific options

-> [String]

User supplied arguments

-> Monitor String 

Run a weather monitor.

weatherReady :: [String] -> Monitor Bool Source #

tryMakeManager :: WeatherOpts -> IO (Maybe Manager) Source #

Possibly create a new Manager, based upon the users preference. If one is created, this Manager will be used throughout the monitor.

mkManager :: IO Manager Source #

Create a new Manager for managing network connections.