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 302356Z 23006KT 10SM FEW065TCU SCT090 SCT140 BKN200 31/13 A3007
KCLL 302353Z 18008KT 10SM CLR 35/19 A2992
KMIA 302353Z 17009KT 9SM -RA BKN042 BKN050 BKN250 28/25 A2991
KPSM 302355Z 35006KT 10SM FEW080 22/07 A2989
KRFD 302354Z 15006KT 10SM SCT035 OVC095 23/19 A2994
KTCL 302353Z 07004KT 10SM CLR 34/23 A2986
PANC 302353Z 16003KT 10SM FEW040 BKN090 OVC130 16/11 A2999
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.