Weather In Your Linux Terminal
- 0
- Add a Comment
Weather info in your command line terminal? You bet, thanks to the efforts of Mike @ The Linux and Unix Menagerie. The script is fairly straight forward - give the command for it to run, then enter the zip code you would like to get the forecast from.
As you can see from the video below, utilizing the script is very easy. All you need to do is use the following command:
./weather enter-zip-code
Please understand that I simply took the script and pasted it into a text file I named “weather”. So whatever you run needs to reflect the name of file you have created.
So what kind of out put can you expect? Here is what I got for 98225:
Your Forecast: For Bellingham, WA 98225
Tonight
Lo: 52 °F
Rain. Lows in the lower 50s. East wind 10 to 15 mph…. more
Saturday
Hi: 58 °F
Lo: 48 °F
Showers and becoming windy. Highs in the upper 50s. South wind 10 to 15 mph increasing to 20 to 30 m… more
Pretty cool, huh? Want to do something like this yourself? The API is available from WeatherBug. All you need to do is get out there and use it.
And if you are interested in a GUI weather app for Linux, take a look at WeatherBug for Linux.

