Archive

Articles taggués ‘weather report’

Get Weather Reports from the Command Line with finger

29/02/2016 Comments off
weather-forecast-command-line-finger-graph-no2-610x433

weather-forecast-command-line-finger-graph

 

Checking weather: purpose of the command

There’s no shortage of methods to retrieve a weather report, the web is full of weather resources, everyones iPhone, Apple Watch, and smartphone has a weather app, Siri can tell you the weather, and you can even get the current weather in the menu bar of OS X or from Spotlight on the Mac too.

But for command line users, none of those options are particularly ideal, since it means leaving the command line and the task at hand.

Thanks to an interesting usage of the finger utility, you can quickly retrieve a weather report and weather forecast for virtually any city in the world, right from the command line.

With this trick you’ll see the temperature forecast (in celsius) for the day, wind direction and wind speed, precipitation and precipitation type (rain, showers, sleet, snow, etc), depth of precipitation, and more. This works with any command line that has the finger tool, whether you’re in Mac OS X, linux, BSD, Windows, it doesn’t matter, it will work the same.

To try this out yourself on the Mac, launch the OS X Terminal found in /Applications/Utilities/ and type the following command syntax:

finger (city name)@graph.no

For example, to get the weather forecast for Montreal Canada, you would use the following syntax at the command line:

finger montreal@graph.no

Lire la suite…