summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorslotThe <soliditsallgood@tuta.io>2020-01-02 22:30:21 +0100
committerslotThe <soliditsallgood@tuta.io>2020-01-04 19:31:05 +0100
commita652991bcb7d76626f1bc5a1f8c732e55dc1bbd4 (patch)
tree64f3367751215539596eb0fc38e2dea99dd8a8f8
parentd843df76d2fbf6c4dcdcb044d91fc3b94e0341a7 (diff)
downloadxmobar-a652991bcb7d76626f1bc5a1f8c732e55dc1bbd4.tar.gz
xmobar-a652991bcb7d76626f1bc5a1f8c732e55dc1bbd4.tar.bz2
Update readme and changelog
-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