They're free, but use at your own risk
The scripts in PHP and Perl referenced here are used in the operation of this weather station, and may be freely copied and used to support your station. Please note that you use these scripts at your own risk. No warranty is expressed or implied. I accept no liability for any damages that may ensue from their use.
You will need to configure them for your own particular station website.
A RSS Feed is available to help keep you informed on updates to the scripts.
A Version History is available -- check back from time to time to see if there are updates to scripts you have downloaded earlier. Announcements of version updates and new scripts are made on WXForum.net , Weather-Watch, Ambient and Weather-Matrix forums as they become available.
This page was updated
Sunday, 26-Nov-2006 3:47 PM
Perl Scripts (run on weather station)
Get WeatherUnderground and NWS forecasts Perl
For a couple of years, I'd run the weather website on Comcast homepages (which offer NO scripting with PHP nor Server-Side Includes). I wanted to offer a snapshot of the WeatherUnderground and NWS Point-forecast on the page, and the only way to do that was to have it be included as a JavaScript on the page. This Perl program now produces two XHTML 1.0-Strict files that have the WU/NWS summary forecast, and a second page with NWS forecast and text. These two files can be seen as forecast-inc.html and forecast-full-inc.html, and the JavaScript can be viewed as forecast.js (but is not used on the current website).
The Perl program uses LWP to fetch the HTML from WeatherUnderground and the NWS point forecast (from www.wrh.noaa.gov), then processes the HTML to make the JavaScript and the two XHTML 1.0-Strict html include files. (BTW.. neither Wunderground nor www.wrh.noaa.gov are XHTML 1.0-Strict in their native format, so the Perl program processes some of the tags to make it compliant).
The Perl program runs as a scheduled Windows-XP job once an hour, and the output .htx files are processed by WeatherLink for FTP upload to the website. If you are a Weather-Display user, you can have Weather-Display run the job and upload the files for you.
Here's the perl program for download [ see version history ] -- you WILL have to modify it to run for your area, and maybe make fairly extensive mods to work with a NOAA website other than www.wrh.noaa.gov.