From a652991bcb7d76626f1bc5a1f8c732e55dc1bbd4 Mon Sep 17 00:00:00 2001 From: slotThe Date: Thu, 2 Jan 2020 22:30:21 +0100 Subject: Update readme and changelog --- changelog.md | 2 ++ readme.md | 6 +++++- src/Xmobar/Plugins/Monitors/Weather.hs | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index b36b1e2..4221004 100644 --- a/changelog.md +++ b/changelog.md @@ -5,6 +5,8 @@ _New features_ - New template parameter `` for the `Weather` plugin, potentially displaying specific weather conditions that are occurring near the station (thanks to *slotThe*). + - New option `--weathers`, for `Weather` to display a default string in + case the `weather` field is not reported. ## Version 0.32 (December, 2019) diff --git a/readme.md b/readme.md index dd247e2..22a94f6 100644 --- a/readme.md +++ b/readme.md @@ -735,7 +735,11 @@ something like: - Aliases to the Station ID: so `Weather "LIPB" []` can be used in template as `%LIPB%` - Thresholds refer to temperature in the selected units -- Args: default monitor arguments +- Args: default monitor arguments, plus: + - `--weathers` _string_ : display a default string when the `weather` + monitor is not reported. + - short option: `-w` + - Default: "" - Variables that can be used with the `-t`/`--template` argument: `station`, `stationState`, `year`, `month`, `day`, `hour`, `windCardinal`, `windAzimuth`, `windMph`, `windKnots`, `windMs`, `windKmh` diff --git a/src/Xmobar/Plugins/Monitors/Weather.hs b/src/Xmobar/Plugins/Monitors/Weather.hs index e31c3c6..0cf1c54 100644 --- a/src/Xmobar/Plugins/Monitors/Weather.hs +++ b/src/Xmobar/Plugins/Monitors/Weather.hs @@ -37,7 +37,7 @@ import System.Console.GetOpt -- | Options the user may specify. data WeatherOpts = WeatherOpts { weatherString :: String - } deriving Show + } -- | Default values for options. defaultOpts :: WeatherOpts -- cgit v1.2.3