Copyright © 2016 Hail Science

Hail Science

Run This Single Command In Terminal To Get Geeky Weather Reports

Technology

Run This Single Command In Terminal To Get Geeky Weather Reports

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 http://wttr.in/CityName

1

curl-4http://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 http://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 http://wttr.in/@fossbytes.com

1

curl-4http://wttr.in/@fossbytes.com

To see this extra information online, you can run this command to access help:

curl -4 http://wttr.in/:help

1

curl-4http://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.
Also read: Nativefier Instantly Converts Any Website Into a Desktop Program Using Command Line

Continue Reading

More in Technology

- Advertisement -

Most Popular





To Top