Thread: New weather site
Brought to you by:
iridium
From: Tom C. <to...@to...> - 2002-05-27 19:23:27
|
Ive been developing a weather site based around PHP weather, the aim in the long run is to have a fast updating database, that other webmasters can use to access up to date weather reports quickly and easily. Im still working on the code for the other web masters bit, but if you go to http://www.sanddesign.co.uk/weather/ youll find a weather reports site for the world. Database info: the database is updated every 15 minutes by the update_metars_db() function, every 15 minutes by a script that searches for stations with no data (and marks them ND) and every hour by the get_metar() function. This last hourly check makes sure that metars are stored in the metar database table and are ready to be cached by the update_metars_db() function. Ive been in email conversation with Martin, he suggested I make an output plug in for PHP Weather 2, The site is based around v1.6, when I have some time Ill have a look through the v2 code and (probably) make an output plug in if its not too difficult! What do you think about the site and the speed of the reports? -- ( Tom Corser to...@to... ) ( http://www.tomcorser.com ) ( http://www.capegig.org.uk ) |
From: Martin G. <gim...@gi...> - 2002-05-28 14:54:08
|
"Tom Corser" <to...@to...> writes: > Ive been developing a weather site based around PHP weather, the aim > in the long run is to have a fast updating database, that other > webmasters can use to access up to date weather reports quickly and > easily. So, should you site work as a kind of mirror or the data at the NWS? I've thought about that too, but it gives rise to a whole bunch of new (interesting) problems... =20 > Database info: the database is updated every 15 minutes by the > update_metars_db() function, Apropos your database: I've merged the data you gave me with the data I already had and the result is a list of 5131 stations. I can send it to you as a SQL dump if you like. I don't know how many of the new stations actually produce METARs, but it seams that there are many dead stations... We should probably ask the NWS for their list of active stations so that we can provide an accurate list. > Ive been in email conversation with Martin, he suggested I make an > output plug in for PHP Weather 2, The site is based around v1.6, > when I have some time Ill have a look through the v2 code and > (probably) make an output plug in if its not too difficult! Well, I think it's easy, but that's probably because I'm the one who made the system ;-) Ask here for help if you get stuck. > What do you think about the site and the speed of the reports? I think the speed is great! =2D-=20 Martin Geisler My GnuPG Key: 0xF7F6B57B See my homepage at http://www.gimpster.com/ for: PHP Weather =3D> Shows the current weather on your webpage. PHP Shell =3D> A telnet-connection (almost :-) in a PHP page. |
From: Martin G. <gim...@gi...> - 2002-05-29 10:22:51
|
Martin Geisler <gim...@gi...> writes: > I don't know how many of the new stations actually produce METARs, > but it seams that there are many dead stations... We should probably > ask the NWS for their list of active stations so that we can provide > an accurate list. I've now retrieved a directory-listing of=20 ftp://weather.noaa.gov/data/observations/metar/stations/ which is where the METARs are stored by the NWS. There are 4518 files in that directory. Some of the files are quite old - they haven't been modified this year! After those files are removed there's still 4203 METARs left. I then compared the ICAOs with the ICAOs in stations.csv and found that we know the names of 3429 of those stations. In other words: there are 774 METARs from unknown stations at the NWS. How is it going with your refreshing of your locations database, Tom? With 10,000 ICAOs, then we ought to be able to find our missing 774 ICAOs there...=20 =2D-=20 Martin Geisler My GnuPG Key: 0xF7F6B57B See my homepage at http://www.gimpster.com/ for: PHP Weather =3D> Shows the current weather on your webpage. PHP Shell =3D> A telnet-connection (almost :-) in a PHP page. |
From: Tom C. <to...@to...> - 2002-05-29 11:10:25
|
Quoting Martin Geisler <gim...@gi...>: > How is it going with your refreshing of your locations database, Tom? > With 10,000 ICAOs, then we ought to be able to find our missing 774 > ICAOs there... It hasnt proved all that successful - out of the 10,000 on the database only 3009 have been identified as active. Im trying to modify the caching, so that locations that have not returned any data recently (i.e. last 24 hours) get marked as "old". For example ( http://www.sanddesign.co.uk/weather/index.php? location=NZCM&action=report&country=Antarcitca%20(New%20Zealand) ) McMurdo sound hasnt returned any data in the last 27 days, but it is still set as "current data". Ive still got the problem of different country names, plus many of the locations in the 10,000 database I downloaded are spelt incorrectly! Cheers Tom Corser |
From: Martin G. <gim...@gi...> - 2002-05-29 21:48:38
|
Tom Corser <to...@to...> writes: > Quoting Martin Geisler <gim...@gi...>: >=20 >> How is it going with your refreshing of your locations database, >> Tom? With 10,000 ICAOs, then we ought to be able to find our >> missing 774 ICAOs there... >=20 > It hasnt proved all that successful - out of the 10,000 on the > database only 3009 have been identified as active. I'm sorry to hear that... I asked the NWS for a list of active stations, and was directed to this page: http://tgsv5.nws.noaa.gov/oso/site.shtml There I downloaded a list of all stations that have an ICAO - there's 6257 stations in that list, but I'm still missing information about 187 stations! It's a bit strange: the list has been updated last week and it says that all stations that have a location identifier assigned by the ICAO (I now know that ICAO is an abbreviation for International Civil Aviation Organization, see www.icao.int). =2D-=20 Martin Geisler My GnuPG Key: 0xF7F6B57B See my homepage at http://www.gimpster.com/ for: PHP Weather =3D> Shows the current weather on your webpage. PHP Shell =3D> A telnet-connection (almost :-) in a PHP page. |
From: Tom C. <to...@to...> - 2002-05-30 17:13:09
|
Quoting Martin Geisler <gim...@gi...>: >http://tgsv5.nws.noaa.gov/oso/site.shtml > >There I downloaded a list of all stations that have an ICAO - there's >6257 stations in that list, but I'm still missing information about >187 stations! Ive downloaded the list from NWS - but out of all the locations, including my 10,000 locations, only about 3000 seem to want to return any data! -- ( Tom Corser to...@to... ) ( http://www.tomcorser.com ) ( http://www.capegig.org.uk ) |
From: Martin G. <gim...@gi...> - 2002-05-30 20:34:13
|
"Tom Corser" <to...@to...> writes: > Quoting Martin Geisler <gim...@gi...>: >>http://tgsv5.nws.noaa.gov/oso/site.shtml >> >>There I downloaded a list of all stations that have an ICAO - there's >>6257 stations in that list, but I'm still missing information about >>187 stations! >=20 > Ive downloaded the list from NWS - but out of all the locations, > including my 10,000 locations, only about 3000 seem to want to > return any data! I know... but you should only expect to have about 4500 stations reporting data - there was 4518 METAR reports available from the NWS yesterday when I checked. With 'available' I mean that you could download a report from the station here: ftp://weather.noaa.gov/data/observations/metar/ =2D-=20 Martin Geisler My GnuPG Key: 0xF7F6B57B See my homepage at http://www.gimpster.com/ for: PHP Weather =3D> Shows the current weather on your webpage. PHP Shell =3D> A telnet-connection (almost :-) in a PHP page. |