The script makes uses the curl command to retrieve data from the wttr.in service in a neat manner.
Ouput when we run the script
Command Usedbash weather
Changes made:
Added the location name i.e IIIT_Lucknow at the end of url like this wttr.in/IIIT_Lucknow so curl command fetches the data from this url and displays it in the terminal.
Fixes #2 Added Weather Script
The script makes uses the
curl
command to retrieve data from thewttr.in
service in a neat manner.Ouput when we run the script Command Used
bash weather
Changes made: Added the location name i.e IIIT_Lucknow at the end of url like this
wttr.in/IIIT_Lucknow
so curl command fetches the data from this url and displays it in the terminal.