summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--changelog.md2
-rw-r--r--readme.md6
-rw-r--r--src/Xmobar/Plugins/Monitors/Weather.hs2
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 `<weather>` 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