summaryrefslogtreecommitdiffstats
path: root/.local/bin/status/sb-forecast
diff options
context:
space:
mode:
authorjoe <rbo@gmx.us>2025-10-02 11:14:43 +0200
committerjoe <rbo@gmx.us>2025-10-02 11:14:43 +0200
commita190993b0579dfaacd5fe75a49fcb3214e2cb1bf (patch)
tree128708ae1ca9f6e5ab433e73542d7b52125357df /.local/bin/status/sb-forecast
parentup (diff)
downloaddotfiles-bsd-a190993b0579dfaacd5fe75a49fcb3214e2cb1bf.tar.gz
dotfiles-bsd-a190993b0579dfaacd5fe75a49fcb3214e2cb1bf.tar.bz2
dotfiles-bsd-a190993b0579dfaacd5fe75a49fcb3214e2cb1bf.tar.xz
dotfiles-bsd-a190993b0579dfaacd5fe75a49fcb3214e2cb1bf.tar.zst
dotfiles-bsd-a190993b0579dfaacd5fe75a49fcb3214e2cb1bf.zip
up
Diffstat (limited to '.local/bin/status/sb-forecast')
-rwxr-xr-x.local/bin/status/sb-forecast17
1 files changed, 0 insertions, 17 deletions
diff --git a/.local/bin/status/sb-forecast b/.local/bin/status/sb-forecast
deleted file mode 100755
index e3c8f0d..0000000
--- a/.local/bin/status/sb-forecast
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-# weatherreport="/tmp/weatherreport"
-# weatherglyph="/tmp/weatherglyph"
-# moonglyph="/tmp/moonglyph"
-
-weatherreport=$(curl -sf "wttr.in/Lyon" 2>&1 || exit 1) # >$weatherreport || (rm -f $weatherreport && exit 1)
-weatherglyph=$(curl -sf "wttr.in/Lyon?format=%c" 2>&1 || exit 1) # >$weatherglyph || exit 1
-moonglyph=$(curl -sf "wttr.in/?format=%m" 2>&1 || exit 1) # >$moonglyph || exit 1
-
-printf "^c#83a598^%s%s" \
- "$(echo "$weatherglyph")" \
- "$(echo "$weatherreport" | sed '16q;d' | grep -wo "[0-9]*%" | sort -rn | sed "s/^/ /g;1q" | tr -d '\n')"
-
-echo "$weatherreport" | sed '13q;d' | grep -o "m\\([-+]\\)*[0-9]\\+" | sed 's/+//g' |
- sort -n -t 'm' -k 2n | sed -e 1b -e '$!d' | tr '\n|m' ' ' |
- awk -v moon="$(echo "$moonglyph")" '{print "  " $1 "/" $2 "°C " moon}'