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 carefully curated directory of recommended free and open source software, covering every major software category.The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more. Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form. |


Please read our Comment Policy before commenting.