diff options
author | jao <jao@gnu.org> | 2019-06-29 23:16:49 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2019-06-29 23:16:49 +0100 |
commit | a160cc25ba27b17e798f9d0eadd2c9576473ae9a (patch) | |
tree | 3ff90d9fea66ce3ec32d86495b40eaa1e0894141 /readme.md | |
parent | 7aeb01c7dc010bd621d22bf342c599b4df9a1392 (diff) | |
download | xmobar-a160cc25ba27b17e798f9d0eadd2c9576473ae9a.tar.gz xmobar-a160cc25ba27b17e798f9d0eadd2c9576473ae9a.tar.bz2 |
New WeatherX variant with sky conditions translations
Diffstat (limited to 'readme.md')
-rw-r--r-- | readme.md | 33 |
1 files changed, 33 insertions, 0 deletions
@@ -739,6 +739,39 @@ something like: - Default template: `<station>: <tempC>C, rh <rh>% (<hour>)` - Retrieves weather information from http://tgftp.nws.noaa.gov. +### `WeatherX StationID SkyConditions Args RefreshRate` + +- Works in the same way as `Weather`, but takes an additional + argument, a list of pairs from sky conditions to their replacement + (typically a unicode string or an icon specification). +- Use the variable `skyConditionS` to display the replacement of the + corresponding sky condition. All other `Weather` template variables + are available as well. + +For example: + +```haskell + WeatherX "LEBL" + [ ("clear", "🌣") + , ("sunny", "🌣") + , ("mostly clear", "🌤") + , ("mostly sunny", "🌤") + , ("partly sunny", "⛅") + , ("fair", "🌑") + , ("cloudy","☁") + , ("overcast","☁") + , ("partly cloudy", "⛅") + , ("mostly cloudy", "🌧") + , ("considerable cloudiness", "⛈")] + ["-t", "<fn=2><skyConditionS></fn> <tempC>° <rh>% <windKmh> (<hour>)" + , "-L","10", "-H", "25", "--normal", "black" + , "--high", "lightgoldenrod4", "--low", "darkseagreen4"] + 18000 +``` + +As mentioned, the replacement string can also be an icon +specification, such as `("clear", "<icon=weather-clear.xbm/>")`. + ### `Network Interface Args RefreshRate` - Aliases to the interface name: so `Network "eth0" []` can be used as |