diff options
Diffstat (limited to 'wrocwttr')
| -rwxr-xr-x | wrocwttr | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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." |
