From 9a579eacfdbeca5e9f4ff9e115b13a84391f08c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Wed, 24 May 2023 19:43:34 +0200 Subject: [PATCH 1/3] Improve WeeChat commands Changes: - use /mute command to remove changes on option - use /item command to create a custom item - refresh item in the alias - add spacer in status bar so the item is right-aligned - run command /wttr immediately --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 52e4878..c0aa6c9 100644 --- a/README.md +++ b/README.md @@ -227,17 +227,19 @@ set -g status-right "$WEATHER ..." ``` ![wttr.in in tmux status bar](https://wttr.in/files/example-tmux-status-line.png) -### Weechat +### WeeChat -To embed in to an IRC ([Weechat](https://github.com/weechat/weechat)) client's existing status bar: +To embed in to an IRC ([WeeChat](https://github.com/weechat/weechat)) client's existing status bar: ``` -/alias add wttr /exec -pipe "/set plugins.var.python.text_item.wttr all" url:wttr.in/Montreal?format=%l:+%c+%f+%h+%p+%P+%m+%w+%S+%s +/alias add wttr /exec -pipe "/mute /set plugins.var.wttr" url:wttr.in/Montreal?format=%l:+%c+%f+%h+%p+%P+%m+%w+%S+%s;/wait 3 /item refresh wttr /trigger add wttr timer 60000;0;0 "" "" "/wttr" -/eval /set weechat.bar.status.items ${weechat.bar.status.items},wttr +/item add wttr "" "${plugins.var.wttr}" +/eval /set weechat.bar.status.items ${weechat.bar.status.items},spacer,wttr /eval /set weechat.startup.command_after_plugins ${weechat.startup.command_after_plugins};/wttr +/wttr ``` -![wttr.in in weechat status bar](https://i.imgur.com/IyvbxjL.png) +![wttr.in in WeeChat status bar](https://i.imgur.com/XkYiRU7.png) ### conky From dd6337fb605e07db45187425ec8c132090375f05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Wed, 24 May 2023 19:44:09 +0200 Subject: [PATCH 2/3] Fix description of conky image --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c0aa6c9..7064823 100644 --- a/README.md +++ b/README.md @@ -252,7 +252,7 @@ ${texeci 1800 curl wttr.in/kyiv_0pq_lang=uk.png ${image $HOME/.config/conky/out.png -p 0,0} ``` -![wttr.in in weechat status bar](https://user-images.githubusercontent.com/3875145/172178453-9e9ed9e3-9815-426a-9a21-afdd6e279fc8.png) +![wttr.in in conky](https://user-images.githubusercontent.com/3875145/172178453-9e9ed9e3-9815-426a-9a21-afdd6e279fc8.png) ### Emojis support From 779fed36a78f90ad01b4704b39c7683661788e35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Wed, 24 May 2023 19:44:57 +0200 Subject: [PATCH 3/3] Remove trailing whitespace --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 7064823..407d1b6 100644 --- a/README.md +++ b/README.md @@ -21,10 +21,10 @@ You can access the service from a shell or from a Web browser like this: Weather for City: Paris, France \ / Clear - .-. 10 – 11 °C - ― ( ) ― ↑ 11 km/h - `-’ 10 km - / \ 0.0 mm + .-. 10 – 11 °C + ― ( ) ― ↑ 11 km/h + `-’ 10 km + / \ 0.0 mm Here is an actual weather report for your location (it's live!): @@ -247,7 +247,7 @@ To embed in to an IRC ([WeeChat](https://github.com/weechat/weechat)) client's e Conky usage example: ``` -${texeci 1800 curl wttr.in/kyiv_0pq_lang=uk.png +${texeci 1800 curl wttr.in/kyiv_0pq_lang=uk.png | convert - -transparent black $HOME/.config/conky/out.png} ${image $HOME/.config/conky/out.png -p 0,0} ``` @@ -445,7 +445,7 @@ Most of these values are self-explanatory, aside from `weatherCode`. The `weathe ### Prometheus Metrics Output -The [Prometheus](https://github.com/prometheus/prometheus) Metrics format is a feature providing access to *wttr.in* data through an easy-to-parse format for monitoring systems, without requiring the user to create a complex script to reinterpret wttr.in's graphical output. +The [Prometheus](https://github.com/prometheus/prometheus) Metrics format is a feature providing access to *wttr.in* data through an easy-to-parse format for monitoring systems, without requiring the user to create a complex script to reinterpret wttr.in's graphical output. To fetch information in Prometheus format, use the following syntax: