Re: Getting Data from Personal Weather Stations
Brought to you by:
iridium
From: Martin G. <gim...@gi...> - 2003-01-16 11:47:24
|
"Jake Ortman" <ja...@or...> writes: Hi Jake > I've got a simple implementation of PHPWeather 2.x running here: > http://www.sunrayinc.com/sunriver/weather/ > > Nothing fancy, just shows the current conditions (cached in a MySQL > database). Good. > I recently found out that the local public works department has a > weather station > http://www.sunriverowners.org/05_departments/public_works/pw_frame.html) > that's also available on Weather Underground: > http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=KORSUNRI1. > Would there be an easy way to pull that data to use on my site? Not with PhpWeather... PhpWeather knows how to parse a METAR report, but you're trying to parse a webpage :-) You could try to extract the information from the website with the help of regular expressions, but it would be a mess, and you would violate the copyright of the page too. I think your best bet is to contact the maintainer (Steve Runner?) and ask him how he collects the data. Perhaps you could get access to the data in a comma separated file or something like that. -- Martin Geisler My GnuPG Key: 0xF7F6B57B See http://gimpster.com/ and http://phpweather.net/ for: PHP Weather => Shows the current weather on your webpage and PHP Shell => A telnet-connection (almost :-) in a PHP page. |