metar fetches aerodrome routine meteorological reports (METAR) which contain information about current weather conditions of specified weather observation stations and decodes it into more easily readable format.
For reference, the weather phenomena reporting codes this tool understands are listed in PHENOMENA.md.
libcurl with development headers, eg. libcurl4-openssl-dev
on Debian.
Running make
and make install
should suffice. What it
does is basically
gcc -o metar -lcurl main.c metar.c
and installs the executable and manpage to /usr/local
.
Tested on FreeBSD with the curl port: /usr/ports/ftp/curl;
mv Makefile.bsd Makefile
, then run make
and make install
.
Alternatively, compile with:
cc -o metar -I/usr/local/include -L/usr/local/lib -lcurl main.c metar.c
In case of problems, man page can manually be formatted and viewed by:
groff -Tascii -man metar.1 | less
- Add automatic mapping between ICAO codes and station name.
- Add timezone support or relative time support ("n minutes ago")
This software is modified from standard Debian package metar
.
Original code by Kees Leune 2004-2005, improved by Antti Louko antti@may.fi
2010, 2013, 2016.
Published under GNU General Public License.