This is my version of a popular PHP METAR decoder (see the inspiration at http://phpweather.sourceforge.net/ ). The logic I used was simple because all I want is the METAR for another application:
The NOAA data comes from http://weather.noaa.gov/pub/data/observations/metar/stations/XXXX.TXT. Where XXXX is the ICAO identifier of the weather station (airport).
This page also works well on web enabled cell phones.
KABQ 201852Z VRB06KT 10SM FEW075 24/03 A3023
KCLL 201853Z 15009KT 10SM FEW050 30/16 A3009
KMIA 201853Z 13008KT 10SM FEW035 SCT060 BKN090 28/20 A2995
KPSM 201855Z 12009KT 10SM FEW250 25/08 A3027
KRFD 201854Z 20019G25KT 10SM SCT080 BKN250 31/14 A2996
KTCL 201853Z 01007KT 9SM FEW055 SCT100 31/16 A3009
PANC 201853Z 00000KT 10SM SCT055 BKN075 OVC090 09/02 A2982
Red means a new db record was saved.
Black means db record is within our time range.
Blue means db metar was out of our time range.