summaryrefslogtreecommitdiffhomepage
path: root/readme.md
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2019-06-29 23:16:49 +0100
committerjao <jao@gnu.org>2019-06-29 23:16:49 +0100
commita160cc25ba27b17e798f9d0eadd2c9576473ae9a (patch)
tree3ff90d9fea66ce3ec32d86495b40eaa1e0894141 /readme.md
parent7aeb01c7dc010bd621d22bf342c599b4df9a1392 (diff)
downloadxmobar-a160cc25ba27b17e798f9d0eadd2c9576473ae9a.tar.gz
xmobar-a160cc25ba27b17e798f9d0eadd2c9576473ae9a.tar.bz2
New WeatherX variant with sky conditions translations
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md33
1 files changed, 33 insertions, 0 deletions
diff --git a/readme.md b/readme.md
index 6834eaf..2214bda 100644
--- a/readme.md
+++ b/readme.md
@@ -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