metar is a simple utility to find weather stations and get METAR reports. Most METAR stations are airports.
This is free and open source software.
Actions available:
- Get – gets the most recent weather report from the selected METAR station. The first line in the report will contain the station’s name, country, ICAO station identifier, and location. There are however some station there this information is missing.
- Print – Print the ICAO station identifier of the selected METAR station, the station from which weather reports are retrieved.
- Set station – Stores the station as the METAR station from which weather reports shall be retrieved. station shall be the stations’s ICAO station identifier.
- List – Print all METAR stations. This can take a very long time. To speed up the listing process, you can filter the output by selecting the prefix of the ICAO station identifiers.
- Closest – Given a latitude and longitude in decimal format, print the ICAO station identifier of the closest METAR station. If you have already created a list of all stations using the action list, specify the filename of that list as the list argument. If latitude and longitude are omitted, ~/.config/geolocation, or /etc/geolocation, is used.
Website: codeberg.org/maandree/metar
Support:
Developer: Mattias Andrée
License: ISC License

metar is written in Bash. Learn Bash with our recommended free books and free tutorials.
Related Software
| Terminal-Based Weather Tools | |
|---|---|
| wttr.in | Curl the weather |
| Wego | ASCII weather app for the terminal written in Go |
| AnsiWeather | Current weather conditions in your terminal |
| girouette | Sources its data from OpenWeather |
| wthrr | Weather companion for the terminal |
| weather | Quick access to current weather conditions and forecasts |
| tempy | Visually pleasing weather report |
| stormy | neofetch-like weather CLI |
| rainy | neofetch-like, minimalistic, and customizable weather-fetching tool |
| wevva | Terminal-based weather application built with Textua |
| weather-cli | Uses the Open-Meteo API |
| starlit | Minimal and customizable weather CLI |
| outside | Multi-purpose weather client |
| metar | Weather report tool |
| rustormy | neofetch-like weather CLI |
| termrain | Combines detailed forecasts with an interactive rain radar |
| linecast | Weather, radar, solar and tide visualisations |
| terminal-weather | Animated terminal weather dashboard |
| weather | Go-based tool |
Read our verdict in the software roundup.
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |


Please read our Comment Policy before commenting.