diff options
author | slotThe <soliditsallgood@tuta.io> | 2020-01-02 22:30:21 +0100 |
---|---|---|
committer | slotThe <soliditsallgood@tuta.io> | 2020-01-04 19:31:05 +0100 |
commit | a652991bcb7d76626f1bc5a1f8c732e55dc1bbd4 (patch) | |
tree | 64f3367751215539596eb0fc38e2dea99dd8a8f8 | |
parent | d843df76d2fbf6c4dcdcb044d91fc3b94e0341a7 (diff) | |
download | xmobar-a652991bcb7d76626f1bc5a1f8c732e55dc1bbd4.tar.gz xmobar-a652991bcb7d76626f1bc5a1f8c732e55dc1bbd4.tar.bz2 |
Update readme and changelog
-rw-r--r-- | changelog.md | 2 | ||||
-rw-r--r-- | readme.md | 6 | ||||
-rw-r--r-- | 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 `<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) @@ -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 |