E-Mail:
Get our new Windows 7 eBook (PDF) for $7 with 70+ Tips. Download Now!

WeatherTrac - WeatherBug API Entry

As programming languages go, Perl is for me at least, is one of the great ones. And it is in this spirit that I was thrilled to see that we we have a Perl entry to the WeatherBug API contest. This bundle of Perl programs is known as WeatherTrac.

WeatherTrac is at its heart, a series of programs to provide a proof of concept using Perl. These programs are as follows:

  • liststations.pl - As it sounds, this is a program that provides you with a list of the nearest weather stations to your local area. It does this by using latitude and longitude.
  • compactweather.pl - Another program that shares responsibility with the liststatons.pl script as it is used to verify the selected stations previously, are in fact providing actual data as desired.
  • temps.pl -According to the program’s creator, “This program explored retrieving the temperation data on separate threads,calculating the weighted averages and writing a simple, human-readable version of the report I would eventually need.”
  • rrdtemps.pl - According to the program’s creator, “The final program was intended to be run from a cron job on a regular basis to retrieve data from the weather stations and populate the RRDtool database.

And as you might suspect by now, the idea behind this project in the first place was to take the RRDtool for data logging and the WeatherBug API for the data to be logged.

Interested in viewing the source code? You can take a look at it from this zipped folder.

What Do You Think?

You must be logged in to post a comment.

Posted Recently

44 queries / 0.201 seconds.