Using terminal to get weather updates...


Joshua Bell's Gravatar

Joshua Bell
published April 14, 2016, 1:41 p.m.


Over at http://www.webupd8.org/ they have shown us how to get a 3-day weather forecast, moon phases and some other features. Using the terminal and curl.

Essentially it boils down to making sure you have curl installed.

sudo apt-get install curl

And running a simple command line:

sudo curl wttr.in

If it complains about not being able to find your location you can manually input a location:

curl wttr.in/"Chicago"

To get the moon phases use the following command:

curl wttr.in/moon

You will be presented with an easy to read screen that looks similar to the following:

weather

It is a pretty quick and dirty way to get fast weather updates, and I imagine you could probably write a script or use it in a kiosk situation in an office if you wanted to get really fancy.

You can read the Web Upd8 original post here for greater detail and options.