summaryrefslogtreecommitdiff
path: root/wrocwttr
diff options
context:
space:
mode:
authorunknown <“filip.rabiega@gmail.com”>2026-08-07 10:37:14 +0200
committerunknown <“filip.rabiega@gmail.com”>2026-08-07 10:37:14 +0200
commit9f9a57cf255c58fe44bb343b4a150a6a8f7fdc31 (patch)
tree16503e36498e5c4866d59b627e4b77a51a181017 /wrocwttr
parent940118eba8178d177eec73ab100ceacdb2526715 (diff)
downloadchadscripts-9f9a57cf255c58fe44bb343b4a150a6a8f7fdc31.tar.gz
chadscripts-9f9a57cf255c58fe44bb343b4a150a6a8f7fdc31.tar.bz2
chadscripts-9f9a57cf255c58fe44bb343b4a150a6a8f7fdc31.zip
add dfm and linkhandlerHEADmaster
Diffstat (limited to 'wrocwttr')
-rwxr-xr-xwrocwttr5
1 files changed, 3 insertions, 2 deletions
diff --git a/wrocwttr b/wrocwttr
index 9f29f48..f43fdfb 100755
--- a/wrocwttr
+++ b/wrocwttr
@@ -1,14 +1,15 @@
#!/bin/sh
# Check the temperature in Wrocław, Poland
-CITY="Wroc%C5%82aw"
+CITY="Wroclaw"
CACHE_DIR="${XDG_CACHE_HOME:-$HOME/.cache}/weather"
FILE="$CACHE_DIR/wroc.txt"
mkdir -p "$CACHE_DIR"
-temp="$(curl -fsS --max-time 5 -A "wrocwttr/1.0" \
+temp="$(curl -fsS --max-time 10 -A "wrocwttr/1.0" \
"https://wttr.in/$CITY?format=%t")" || exit 1
[ -z "$temp" ] && exit 1
echo "$temp" >"$FILE"
+# notify-send "Weather updated."