A boring rainy saturday afternoon, the passion for flight simulation and programming, slightly interest for looking at worldwide meteo condition from the shell. WHAT
METAR stands for METeorological Aerodrome Report, see wikipedia for more COMPILE
Install maven, (Tried to compile on a Macosx Leopard machine [maven version 3.0.3 - java 1.6]and on a debian 6 machine [maven version 2.2.1 - java 1.7.0_03], all ok). Of course you need a JDK installed on your system. After maven installation, go on metget directory, and issue the command
mvn assembly:assembly
Maven will start to download a lot of things (don't worry) , at the end you'll find a compiled jar including dependencies inside project target directory. USE
java -jar metgetter-jar-with-dependencies.jar Alghero 'New york'
ICAO codes are searched querying this site. Doesn't know if it will work forever. Drop me a line if stops working. METARs are downloaded from NOAA web site. For more info you could check this page. (Obviously this software doesn't pretend to be bugfree or -whoa- perfect, keep in mind that is been written for fun.) NOTES2
Sorry for my English.