Re: PHPWeather: METARs not available?
Brought to you by:
iridium
From: Nick B. <nic...@ya...> - 2003-08-20 10:02:04
|
Hi Guys, MG Wrote: > I'm not aware of any mirror site, sorry :-(. But it would be a cool > thing to have... > I get data by parsing web pages from www.aro.lfv.se The pages are asp generated and you can build your own query strings to get the blocks of METARS or TAFs you require. I have a perl script to get data for UK civil airports as the data is updated a lot faster than NOAA's.You can browse the weather pages freely from www.lfv.se and following the links. The urls are of the form: http://www.aro.lfv.se/metais/MetInfo.asp?TextFile=metar.eg.list.txt&TextFile=metar.ed.list.txt&TextFile=metar.benelux.list.txt&TextFile=metar.alps.list.txt&TextFile=metar.lf.list.txt&TextFile=metar.le.list.txt&TextFile=metar.lp.list.txt&TextFile=metar.li.list.txt&TextFile=metar.baltic.list.txt&TextFile=metar.others.list.txt&SubTitle=United%A0Kingdom&Subtitle=Germany&Subtitle=Benelux&Subtitle=Austria,%A0Switzerland&Subtitle=France&Subtitle=Spain&Subtitle=Portugal&Subtitle=Italy&Subtitle=Baltic&Subtitle=Other%A0Countries&T=METAR%A0Europe&Frequency=30 But from that you can build a shortened query that works(and saves bandwidth). For the UK METARS I use: http://www.aro.lfv.se/metais/MetInfo.asp?TextFile=metar.eg.list.txt&SubTitle=United%A0Kingdom&T=METAR%A0Europe&Frequency=30 Then I parse the data for the required airport METAR, start of required string is the ICAO code eg EGNX. End of sting is the = character. Martin - if you want a copy of the routine (it's written in perl and a part of a perl decoder I wrote) the let me know and I'd be happy to upload it somewhere. > We've seen problems with NOAA's site before, but they're usually gone > in a matter of hours. I have seen probs with NOAA recently, getting a lot of http 403 errors. (server overloaded or noa available?) last week but for the past few days it seems OK. -- Nick B. Nottingham/UK ICQ9247450 |