From 83954961af8b6337da100e038561f2fd975ac1fe Mon Sep 17 00:00:00 2001 From: filip <“filip.rabiega@gmail.com”> Date: Sun, 18 Jan 2026 11:44:26 +0100 Subject: huge changes --- wrocwttr | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'wrocwttr') diff --git a/wrocwttr b/wrocwttr index b1bb3af..4aa5b3a 100755 --- a/wrocwttr +++ b/wrocwttr @@ -1,10 +1,12 @@ #!/bin/sh -export DISPLAY=:0.0 -export HOME=/home/filipek +# export DISPLAY=:0.0 +# export HOME=/home/filipek -temp=$(curl wttr.in/Wrocław?format=1 | awk '{print $2}') +# ł is URL-encoded +temp=$(curl "wttr.in/Wroc%C5%82aw?format=1" | awk '{print $2}') file="$HOME/.cache/weather/wroc.txt" +[ -z "$temp" ] && exit 1 echo "$temp" > "$file" -notify-send "Temperature updated." +# notify-send "Temperature updated." -- cgit v1.2.3