fix weather module

This commit is contained in:
speedie 2022-11-01 23:20:11 +01:00
parent 93e38687e1
commit 64c3a43165

View file

@ -63,7 +63,7 @@ PRINT() {
if [ -e "/tmp/itest" ]; then
if [ -e "/tmp/wstatus" ]; then
grep -q "Unknown location" /tmp/wstatus && exit
grep -q "<html>" /tmp/wstatus || exit
grep -q "<html>" /tmp/wstatus && exit
echo "$SEPARATOR $ITEM5_ICON $(cat /tmp/wstatus)"
else
echo "$(curl -s wttr.in/?format="%C"), $(curl -s wttr.in/?format=3 | sed 's/.* //; s/.*\(.....\)/\1/')" > /tmp/wstatus