Linux Tool To Know Weather in your City from Terminal

weather-util is a nice command-line utility to obtain weather conditions and forecasts directly from the terminal. Where does this tool get the information? It retrieves and processes METAR data from the National Oceanic and Atmospheric Administration and forecasts from the National Weather Service.

Install weather-util in Ubuntu and Debian with the following command.

sudo apt-get install weather-util

how to get information about weather from the terminal

After the installation is finished, you can find out the version of the weather-util by using the --version option like shown in the following screenshot. As you can see, I am running the 1.5 version.

weather-util --version

how to get weather information from the terminal

To find weather information about your city, there is one condition that is a must, your city should have an airport. I live in Tirana, the capital city of Albania. The international Civil Aviation Organization airport code of Tirana International Airport is LATI. How to use the ICAO code with the weather-util command-line utility?

weather-util -i LATI

how to get weather information from the terminal

how to get weather information from the terminal

Oltjano Terpollari 11:08 am

About Oltjano Terpollari

Oltjano Terpollari is a very passionate computer geek studying python, linux, netcat power tools and living a binary life. He goes by the nickname Ambition and is very happy living a science life. He also loves technical blogging and sharing his knowledge with others.

Author Archive Page

Have anything to say?

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

All comments are subject to moderation.