weatherman: weather from Linux console

weather_compThe author must have named the tool intentionally after the 2005 Nicholas Cage movie. weatherman is a handy Linux shell script to get the weather of any location from the console. It fetches the data from WeatherBug. Console addicts like me should be overjoyed to find a tiny tool which can get the weather in a single command.

Installation

weatherman needs curl to work. It is very easy to use. You have to get the weatherman source code from GitHub. Run:

$ sudo apt-get install curl
$ git clone https://github.com/subrosa2/weatherman
$ cd weatherman
$ chmod +x weatherman

Usage

To get the weather of Paris, run

$ ./weatherman "Paris, France" //city, country
Current Conditions for Paris, France
Reported by American School of Paris (FRA) @ Apr 9, 2014 9:45 PM

Temp: 10 C
Today: Mostly Sunny
Tonight: Mostly Clear

High: 16 C Wind Speed: NW 0 Rain: 0.00mm
Low: 3 C Gust: S 19 Rain/Month: 0.25mm
Feels Like: 10 C Avg Wind: NW 0 Sunrise: 7:13 AM
Humidity: 67% Pressure: 1025.06mb Sunset: 8:33 PM
Dew Point: 4 C Moonphase: Waxing Gibbous

Data provided by WeatherBug.com

Use the -x switch for an extended forecast.

$ ./weatherman -x "Paris, France"
Extended Forecast for Paris, France

THU 18 C Mostly Sunny 5 C Mostly Clear
FRI 16 C Partly Cloudy 4 C Partly Cloudy
SAT 15 C Partly Cloudy 4 C Partly Cloudy
SUN 15 C Mostly Cloudy 5 C Mostly Cloudy
MON 16 C Partly Cloudy 5 C Mostly Cloudy
TUE 19 C Partly Cloudy 6 C Mostly Cloudy
WED 13 C Rain

Data provided by WeatherBug.com

Add an alias in your .bashrc and you can get the weather quickly anytime you need it.

Webpage: weatherman

One thought on “weatherman: weather from Linux console”

Leave a Reply

Your email address will not be published. Required fields are marked *