remove log since it's not needed

This commit is contained in:
Simon Belmont 2025-04-16 21:01:07 -04:00
parent 24b6464d0b
commit ae9a611ea6
47 changed files with 0 additions and 8388 deletions

View file

@ -1,19 +0,0 @@
#!/usr/bin/env bash
# weather.sh
for i in {1..5}
do
text=$(curl -s "https://v2.wttr.in/$1?format=1&m")
if [[ $? == 0 ]]
then
text=$(echo "$text" | sed -E "s/\s+/ /g")
tooltip=$(echo -ne "Santo Domingo, Dominican Republic:";curl -s "https://wttr.in/$1?format=2&m")
if [[ $? == 0 ]]
then
tooltip=$(echo "$tooltip" | sed -E "s/\s+/ /g")
echo "{\"text\":\"$text\", \"tooltip\":\"$tooltip\"}"
exit
fi
fi
sleep 2
done
echo "{\"text\":\"error\", \"tooltip\":\"error\"}"