nano getweather.sh
-----------------------------------------
while [ 1 ]
do
weather=$(curl -Ss 'https://wttr.in/Arjundhara?0&T&Q&format=1')
echo "$weather"
sleep 60
done
-----------------------------------------------------------------------------------------------------------------------
src
https://github.com/chubin/wttr.in
powershell
Invoke-RestMethod https://wttr.in
HELP
curl wttr.in/:help
v2.wttr.in for data rich format
Comments
Post a Comment