deformed-offering

Weather station scripts - NOAA Climate Report display

They're free, but use at your own risk

The scripts 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 weather station website.
RSS feed for Scripts Updates A RSS Feed is available to help keep you informed on updates to the scripts.

If you find one or more of the scripts useful to you, please consider making a donation to help offset the routine expenses of operation of this website.
Thanks for your kind support!

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 and Weather-Watch forums and saratogaWXPHP Twitter account as they become available.

This page was updated Sunday, 20-Feb-2011 4:22 PM

PHP Scripts (run on webserver)

These scripts have run on PHP 4.1.2, and PHP 4.4.1. I don't have access to PHP 3.x, so it is not known if they will work on versions below PHP 4.1.2. If you try them and they work (or not) on earlier versions of PHP, please send me a message at webmaster[at]saratoga-weather.org and let me know the results.

Display .TXT NOAA style forecasts PHP

I needed to safely display a series of .TXT files (NOAA style climate reports) using the overall style of the website. My WeatherLink software produces regular reports (NOAAMO.TXT, NOAAPRMO.TXT, NOAAYR.TXT, NOAAPRYR.TXT) as part of the 5-minute update. I've also produced reports and named them NOAAyyyy.TXT for yearly reports and NOAAyyyy-mm.TXT for monthly reports. These I've uploaded (monthly) to a sub-directory on the website /NOAA-reports.

Version 1.04 (01-Dec-2007) adds a new feature for WeatherLink users to create new NOAAyyyy-mm.TXT and NOAAyyyy.TXT files from the respective NOAAPRMO.TXT and NOAAPRYR.TXT files when the month/year rolls over. It will copy the appropriate file to the $NOAAdir and name it so you have no monthly maintenance to do (except to view the NOAA reports page on the first of each month).

The NOAA-reports.php will read the sub-directory, sort the filenames produce a menu of available names, and display the file requested. It automatically uses NOAAMO.TXT and NOAAYR.TXT (WeatherLink version) for the current monthly and current yearly files. The nice thing about the script is it strictly controls what can be displayed (existing files only, no directory browsing). The following is a live display of WeatherLink produced NOAA style reports for this station.

<?php $doInclude = true; require("NOAA-reports-test.php"); ?>
2015: Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec 
2014: Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec 
2013: Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec 
2012: Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec 
2011: Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec 
2010: Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec 
2009: Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec 
2008: Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec 
2007: Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec 
2006: Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec 
2005: Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec 
2004: Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec 

Report for 2015 05
MONTHLY CLIMATOLOGICAL SUMMARY for MAY. 2015 NAME: KCASARAT1 CITY: Saratoga STATE: CA ELEV: 375 ft LAT: 37 16' 28" N LONG: 122 01' 23" W TEMPERATURE (F), RAIN (in), WIND SPEED (mph) HEAT COOL AVG MEAN DEG DEG WIND DOM DAY TEMP HIGH TIME LOW TIME DAYS DAYS RAIN SPEED HIGH TIME DIR ------------------------------------------------------------------------------------ 1 70.6 91.4 12:55p 56.0 6:30a 2.5 8.1 0.00 0.6 13.0 1:30p N 2 64.7 82.0 1:20p 53.1 7:10a 4.6 4.2 0.00 0.6 12.0 2:40p N 3 61.2 77.6 1:15p 49.6 5:45a 6.6 2.9 0.00 0.6 14.0 1:45p NNE 4 58.6 72.3 1:00p 49.4 11:55p 7.3 1.0 0.00 0.6 11.0 1:50p NNE 5 58.8 76.0 4:15p 45.2 5:35a 8.8 2.7 0.00 0.6 12.0 7:45p W 6 59.3 76.1 5:35p 43.6 6:30a 8.3 2.6 0.00 0.6 13.0 4:10p N 7 53.3 62.4 10:50a 45.2 6:20a 11.7 0.0 0.05 0.1 8.0 10:55a ESE 8 59.9 77.9 2:00p 44.9 6:40a 7.6 2.5 0.00 0.6 13.0 2:35p NNE 9 60.5 73.9 1:55p 53.8 4:45a 6.2 1.7 0.00 0.7 11.0 2:30p NNE 10 60.9 74.9 12:50p 51.0 12:00m 6.0 1.9 0.00 0.7 12.0 1:35p N 11 57.4 73.3 2:50p 45.4 6:15a 9.1 1.5 0.00 0.7 13.0 4:20p W 12 57.4 73.2 2:45p 46.0 6:35a 8.9 1.3 0.00 0.8 16.0 11:20a WSW 13 58.2 71.3 12:40p 46.0 4:50a 7.8 1.0 0.00 0.6 14.0 2:15p N 14 57.2 69.8 10:50a 51.1 12:45a 8.1 0.3 0.02 0.3 12.0 2:30p ESE 15 59.6 75.3 3:05p 49.9 5:15a 7.0 1.7 0.00 0.7 16.0 4:20p NNW 16 59.6 76.7 2:05p 47.3 4:55a 7.6 2.2 0.00 0.5 11.0 4:35p NNW 17 58.4 68.3 3:30p 51.0 12:35a 7.1 0.5 0.00 0.9 13.0 5:40p NNW 18 58.6 72.3 3:20p 51.3 2:10a 7.2 0.8 0.00 0.5 11.0 5:05a NNW 19 59.5 73.7 4:50p 53.1 10:10p 6.8 1.2 0.00 0.4 11.0 3:10p NW 20 61.2 75.8 2:10p 53.1 6:00a 5.7 1.9 0.00 0.6 12.0 12:00p NNW 21 60.7 71.5 11:45a 54.1 3:55a 4.9 0.7 0.00 0.3 10.0 5:10p WSW 22 59.4 74.6 2:35p 49.8 3:15a 6.9 1.4 0.00 0.4 14.0 4:45p W 23 61.2 72.5 1:45p 53.1 11:45p 5.5 1.8 0.00 0.6 14.0 2:35p W 24 60.5 76.8 12:50p 47.0 5:50a 7.0 2.4 0.00 0.8 13.0 1:05p NE 25 61.7 74.0 1:15p 55.3 5:35a 5.0 1.7 0.00 0.8 11.0 1:10p N 26 62.9 75.6 1:05p 55.7 6:30a 4.4 2.3 0.00 0.8 12.0 3:15p NE 27 63.3 77.7 12:55p 54.8 5:50a 4.5 2.8 0.00 0.9 13.0 5:00p NNE 28 63.0 74.2 4:05p 54.8 6:00a 3.3 1.9 0.00 0.8 12.0 1:30p N 29 30 31 ------------------------------------------------------------------------------------- 60.3 91.4 1 43.6 6 186.4 55.0 0.07 0.6 16.0 12 N Max >= 90.0: 1 Max <= 32.0: 0 Min <= 32.0: 0 Min <= 0.0: 0 Max Rain: 0.05 ON 05/07/15 Days of Rain: 2 (>.01 in) 0 (>.1 in) 0 (>1 in) Heat Base: 65.0 Cool Base: 65.0 Method: Integration

Downloads .. please customize for your directory and file naming convention ( WL or VWS).
Download WeatherLink/ VWS version (V1.06 - 03-Oct-2008) [ see version history ]

deformed-offering