Weatherman: weather from command line

I have found a nice piece of software that can provide current weather data and nice forecast for 7 days from command line. It is the Weatherman and it is a bash script which uses data from the Of course it uses external program (the curl) for the actual download of the data.

Trees on Smrk 3

The use is very simple:

weatherman -x budapest,hungary                    

Extended Forecast for budapest, Hungary

TUE       2 C  50% Chance of Light Snow    -2 C  windy
WED       1 C  Mostly Cloudy               -2 C  Mostly Cloudy
THU       4 C  30% Chance of Frozen Mix    -1 C  50% Chance of Rain
FRI       4 C  Rain                        -1 C  Mostly Cloudy
SAT       6 C  Partly Cloudy               -1 C  Rain
SUN       6 C  Rain                         0 C  windy
MON       9 C  Partly Cloudy

Data provided by

If the -x is not used then the current situation is shown:

Current Conditions for budapest, Hungary
Reported by Budapest (Ferihegy) @ Mar 25, 2013 9:30 PM

Temp: -2 C
Today: 50% Chance of Light Snow
Tonight: windy

High: 2 C          Wind Speed: NNE 13    Rain: 0.00mm
Low: -2 C          Gust: E 29            Rain/Month: 0.00mm
Feels Like: -6 C   Avg Wind: NNE 13      Sunrise: 5:36 AM
Humidity: 100%     Pressure: 1007.12mb   Sunset: 6:02 PM
Dew Point: -2 C                          Moonphase: Full

Data provided by

One can save the default site with the -S parameter. An it is possible to customize the output (the details can be found in the manual page).

I think that it’s a very nice tool.

Weatherman: weather from command line

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s