Short Bytes: If you are a coder who is in love with his/her work, then outside weather doesn’t matter much to you. However, if you’re heading for a walk to refresh your mind, just type this command in Terminal and get the weather report instantly ;)
With the advent of multiple weather reporting services and their integration with your phone’s digital assistants, receiving weather updates on the go is now easier than ever. However, if you’re a developer, you must use a more geeky way to do the same.
Today, I discovered this cool way to read the weather forecast with a single command and I’m going to share it with you. All you need to do is open the terminal and paste the following command with the name of the desired city:
curl -4 https://wttr.in/CityName
As soon as you enter the command, a beautiful forecast of the whole week’s weather is presented inside your Terminal window. It’s actually an ASCII-rendering of the online frontend of the a console weather application Wego. You can access it directly at https://wttr.in
Apart from the weather of cities, you can use 3-letter airport codes and IP-addresses or domain names prefixed with @ for specifying location:
curl -4 https://wttr.in/@fossbytes.com
To see this extra information online, you can run this command to access help:
curl -4 https://wttr.in/:help
Did you like this command for getting the weather updates inside the terminal? Do you know some more geeky Terminal commands? Share your views in the comments below.
Choose your own Learn To Code Bundle at fossBytes Store.
0 thoughts on “Run This Single Command In Terminal To Get Geeky Weather Reports”
nice one (y)
like :D
good one. Thanks
Annnnnd you’ll probably need to download cURL also…. https://curl.haxx.se/download.html
Good post. Thanks
I will definitely use this. I can get the weather, and look like a real nerd @ the same time
cool man.. :)
perfect
No Farenheit?
2 thumbs up
Thanks : )
doesn’t work on windows 8.1 command
cool!
Please how do I open a terminal? or what is the meaning of a terminal? Urgent response please
445128875486695845512745846659821546625312548557845885458754001249587542215486215493364851