From 347b8b1d1c77d92be143de3ba409c03aa0f9439d Mon Sep 17 00:00:00 2001 From: steven Date: Mon, 21 Apr 2025 00:06:44 -0400 Subject: [PATCH] better weather --- waybar/config.jsonc | 1 - waybar/scripts/wttr.sh | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/waybar/config.jsonc b/waybar/config.jsonc index ba948fc..0e09878 100644 --- a/waybar/config.jsonc +++ b/waybar/config.jsonc @@ -27,7 +27,6 @@ }, "custom/weather":{ "interval":600, - "return-type":"json", "exec":"~/.config/waybar/scripts/wttr.sh" }, "network#warp":{ diff --git a/waybar/scripts/wttr.sh b/waybar/scripts/wttr.sh index 9f91d2b..cb0b772 100755 --- a/waybar/scripts/wttr.sh +++ b/waybar/scripts/wttr.sh @@ -1,3 +1,3 @@ -wttr=$(curl -s "https://wttr.in/Louisville?m&format=%t") -tooltip=$(curl -s "https://wttr.in/Louisville?m&format=%C:RealFeel+%f:UV+Index+%u:Precip.+%p:Wind+%w"|sed 's/:/\\n/g') -echo -E "{\"text\":\"$wttr\",\"tooltip\":\"$tooltip\"}" +echo "Weather " +curl -s "https://wttr.in/Louisville?m0dQT"|tr '\n' '\r' +printf "Last Updated ";date +%T