update module_weather

This commit is contained in:
speedie 2022-11-28 20:32:25 +01:00
parent 2e752c2a2e
commit 6dce7cfe0f

View file

@ -8,7 +8,7 @@ module_config
command -v curl > /dev/null || exit
WEATHER_FULL="$(echo "$(curl -s wttr.in/?format="%C" || exit), $(curl -s wttr.in/?format=3 | sed 's/.* //; s/.*\(.....\)/\1/')")"
echo "$WEATHER_FULL" | grep -qE "Unknown location|<html>" && exit
echo "$WEATHER_FULL" | grep -qE "Unknown location|<html>| ," && exit
# clicking
CLICK() {