summaryrefslogtreecommitdiff
path: root/wrocwttr
diff options
context:
space:
mode:
authorfilip <“filip.rabiega@gmail.com”>2026-01-18 11:44:26 +0100
committerfilip <“filip.rabiega@gmail.com”>2026-01-18 11:44:26 +0100
commit83954961af8b6337da100e038561f2fd975ac1fe (patch)
tree33a45dbf91cc4c0b8975287b9537db8aa272505f /wrocwttr
parentafd02bfcce54e3252d356f34c25a155c855f3612 (diff)
downloadchadscripts-83954961af8b6337da100e038561f2fd975ac1fe.tar.gz
chadscripts-83954961af8b6337da100e038561f2fd975ac1fe.tar.bz2
chadscripts-83954961af8b6337da100e038561f2fd975ac1fe.zip
huge changesHEADmaster
Diffstat (limited to 'wrocwttr')
-rwxr-xr-xwrocwttr10
1 files changed, 6 insertions, 4 deletions
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."