Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
×
The Internet Technology

Integrating Weather Reports into a Webserver? 61

meteorologist asks: "I work at a small college (300 students) in a small town (1500 people), and on our website we have a weather section. The problem is that it can only get weather information from a town 40 miles away. There is one local reporting station, but it reports exclusively to weatherbug, which slows down computers, and inevitably leads to spyware infections. How do I go about setting up a weather meter (temperature, humidity, wind velocity, and so forth) so that its results can be integrated into an already established website?"
This discussion has been archived. No new comments can be posted.

Integrating Weather Reports into a Webserver?

Comments Filter:
  • roll your own? (Score:5, Informative)

    by way2trivial ( 601132 ) on Wednesday September 28, 2005 @07:48PM (#13671838) Homepage Journal
    http://wx200.planetfall.com/ [planetfall.com]

    good luck...
  • How funny, I'm working on this today.

    I use a weather station made by La Crosse [lacrossetechnology.com].

    The station measures temperature, rain, humidity, wind speed and even calculates the dew point. It also functions as an atomic clock receiver.

    The sensors are outside, and connect to a base station inside the house through a wired or wireless (433 MHz) connection. The base station connects to a PC over a serial connection. The sensors are battery powered. Mine have been running for 6 months off of NiMH batteries.

    The stations come with software for Windows, but you can also use connect via Linux using the Open2300 [lavrsen.dk] project.

    2300 includes most everything you need: The C programs read from the device via a serial port and write the information to a flat file or to an optional MySQL database.

    Using a set of PHP scripts, you can host the data on any Apache webserver. As an alternative, you can upload the data to Weather Underground [wunderground.com], or even broadcast it over a HAM radio (Citizens Weather-- but I know nothing about this).

    The weather stations also listens to the NIST Atomic Clock in Boulder, Colorado. I'm looking at ways of using my weather station to set the time for my NTP service.

    It's all pretty straightforward, and requires very little technical knowledge if you use the vendor-supplied versions of MySQL, PHP (With GD) & Apache.

    My station for Berkeley [wunderground.com] has been setup for a month, but I need to remount the temperature sensors to a location that doesn't collect as much heat. It's not really 85F in Berkeley right now-- it's 85F right outside the office door, and a cool 80F inside.
  • Wrong way (Score:5, Informative)

    by Solder Fumes ( 797270 ) on Wednesday September 28, 2005 @07:55PM (#13671896)
    See if NOAA has forecasts for your area. Then hunt down PHP code, or develop your own, to process METARs for current conditions and TAFs for weather forecasts. This stuff can be pulled straight from NOAA. I know there's a PHP Services_Weather class out there.

    If you try to simply display data from a cheap weather sensor kit, you won't get forecasts or anything.
  • Easy Answer! (Score:5, Informative)

    by cjsnell ( 5825 ) on Wednesday September 28, 2005 @08:35PM (#13672146) Journal
    Wow, I've been waiting for this topic to show up for, what, six years now? :)

    What you want is a Davis Instruments [davisnet.com] station. These stations hook up, via serial cable, to any PC. If you're running some form of *nix, I highly recommend the Device::WxM2 [cpan.org] Perl module. I've written various collection daemons that use WxM2 to pull weather data from the station and store it in RRD [rrdtool.org] format or in a PostgreSQL database [postgresql.org]. I even wrote an AGI script that allows people calling my Asterisk [asterisk.org] PBX to hear the latest weather data. I also wrote a handy widget [chrissnell.com] for Konfabulator [konfabulator.org] that lets you watch the weather on your Mac/PC desktop in real-time.

    Shameless plug: if you decide that the Davis station is right for you, stop by my employer's website [weathertools.com], where we have a variety [weathertools.com] of Davis Instruments choices.

    One word of advice: we sell cheaper stations than the Davis models but if you are planning on putting this up on a roof and leaving it for 5+ years, you really want to go with a quality peice of equipment, not a Radio Shack toy that will disintegrate after a year in the sun.

    Questions? Ask and I'll be glad to answer.

    Chris
  • by snopes ( 27370 ) on Wednesday September 28, 2005 @08:42PM (#13672198) Journal
    Weather station and accessories based on the Dallas 1-Wire and iButton components:
    http://www.aagelectronica.com/aag/index.html [aagelectronica.com]

    Linux software:
    http://oww.sourceforge.net/index.html [sourceforge.net]

    I'll be honest. I bought the kit, got the basics running with the software, couldn't get the wind vane calibrated, and ran out of time (new home, new baby, etc.). However, it all seems to work just fine and lots of people that report into wunderground.org seem to use this kit. I just haven't gotten it fully going myself.

    Just saw the the guy that maintains the unix/linux/risc os s/w has it running on a Linksys NSLU2. Cool.
  • Re:Wrong way (Score:5, Informative)

    by bergeron76 ( 176351 ) * on Wednesday September 28, 2005 @09:00PM (#13672317) Homepage
    You might want to check out weatherunderground.com

    They have some useful weather info there, and I think it's contributed to by individuals as well.

    Perhaps you have a neighbor that's reporting to it.

  • A few more... (Score:4, Informative)

    by cjsnell ( 5825 ) on Wednesday September 28, 2005 @09:01PM (#13672321) Journal
    Digging through my bookmarks, I found a few more. There is Meteo [othello.ch], which does data collection with a C program, storage using MySQL and delivery via PHP (and, apparently, RRDtool).

    Here's another neat one: Joe Jaworski's vproweather [joejaworski.com] uses a C-based program to pull the data from the Davis VantagePro stations, and some Bourne shell scripting to glue it all together. One neat thing about his approach: he is using SerialEthernet converters [troygroup.com] and a little program called remserial [lpccomp.bc.ca] to tie his stations to his computer. This costs more than my method of using the Davis station's wireless capability to transmit the data, but is capable of sending the data over much longer distances--even around the world, I suppose.

    Finally, these guys [earlham.edu] are using C, PostgreSQL, and Perl for their Davis-based station.
  • by Anonymous Coward on Wednesday September 28, 2005 @10:16PM (#13672672)
    I've been running the above combo for my weatherstation a few years now. Works real well.

    You don't have to spend big bucks, either. You can do quite a bit with just a few hundred dollars.
  • If you use Zope... (Score:2, Informative)

    by jalet ( 36114 ) <alet@librelogiciel.com> on Thursday September 29, 2005 @01:02AM (#13673508) Homepage
    Then download and install my ZWeatherApplet [librelogiciel.com] Zope Product.
  • Re:Wrong way (Score:2, Informative)

    by lbmouse ( 473316 ) on Thursday September 29, 2005 @09:27AM (#13675255) Homepage
    I was thinking the same thing. FYI, here is the link directly to the Weather Underground Personal Weather Station (PWS) page:
    http://www.wunderground.com/weatherstation/index.a sp [wunderground.com]
  • phpWeather (Score:2, Informative)

    by kcornwell ( 555464 ) <deduction@gmaiNETBSDl.com minus bsd> on Thursday September 29, 2005 @10:09AM (#13675631) Homepage
    I wrote this hack some time ago. It uses the weatherbug data from several thousand weather stations around the country. I also did it in VB 6.0. Both are found here... http://www.munchfoot.com/forums/index.php?dlcatego ry=3 [munchfoot.com]
  • by Anonymous Coward on Thursday September 29, 2005 @04:31PM (#13679488)
    Try http://www.ambientweather.com/ [ambientweather.com]. The Weather Exchange program is virus / adware free, no networking fees, and you can create your own website.

A morsel of genuine history is a thing so rare as to be always valuable. -- Thomas Jefferson

Working...