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 01
MONTHLY CLIMATOLOGICAL SUMMARY for JAN. 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 41.3 55.1 2:30p 30.7 7:20a 23.7 0.0 0.00 0.4 8.0 2:00p W 2 40.1 54.2 2:35p 31.0 7:35a 24.9 0.0 0.00 0.3 7.0 11:15a NNW 3 42.3 57.6 2:05p 31.8 6:30a 22.7 0.0 0.00 0.2 6.0 12:30p NNW 4 44.2 58.6 1:25p 35.3 4:05a 20.8 0.0 0.00 0.2 10.0 9:55a N 5 47.1 60.5 2:35p 36.5 7:15a 17.9 0.0 0.01 0.4 11.0 1:50p NW 6 49.5 67.1 2:40p 38.6 6:40a 15.6 0.1 0.00 0.1 6.0 1:45p NNW 7 52.6 72.8 2:25p 39.9 7:15a 13.6 1.2 0.00 0.1 5.0 11:35a NNW 8 53.0 64.8 4:00p 44.1 6:30a 12.0 0.0 0.00 0.0 3.0 10:25a N 9 54.7 68.4 3:05p 48.2 7:25a 10.5 0.2 0.00 0.0 5.0 12:30p N 10 51.8 64.8 2:45p 42.3 5:40a 13.2 0.0 0.00 0.2 7.0 1:45p N 11 49.2 59.0 2:20p 42.2 7:35a 15.8 0.0 0.01 0.2 7.0 12:35p N 12 49.9 65.3 3:20p 41.9 5:30a 15.1 0.0 0.01 0.4 11.0 1:45p NNW 13 51.3 64.5 2:35p 42.2 3:30a 13.7 0.0 0.01 0.8 13.0 1:00p NW 14 49.1 65.6 3:20p 37.6 6:15a 15.9 0.0 0.00 0.1 6.0 12:00p NNW 15 50.8 66.8 2:40p 38.2 7:00a 14.2 0.1 0.00 0.2 7.0 3:50p NNW 16 52.9 66.3 3:35p 41.5 5:30a 12.1 0.0 0.00 0.1 6.0 4:35p NW 17 53.4 63.7 3:10p 47.3 2:15a 11.6 0.0 0.00 0.0 6.0 12:50p NNW 18 55.6 67.3 1:15p 47.1 7:25a 9.6 0.2 0.01 0.0 1.0 1:30p N 19 54.2 60.7 4:10p 44.9 11:45p 10.8 0.0 0.01 0.4 10.0 1:50p NNW 20 49.5 62.6 3:05p 42.5 12:00m 15.4 0.0 0.01 0.4 11.0 2:15p NNW 21 50.3 65.5 2:10p 39.3 6:40a 14.7 0.0 0.00 0.6 13.0 1:10p NW 22 46.6 59.0 2:25p 38.8 3:30a 18.4 0.0 0.00 0.3 11.0 10:10a NW 23 52.3 70.1 3:50p 38.6 6:45a 13.3 0.6 0.00 0.4 14.0 11:10a NW 24 57.4 72.7 2:05p 43.1 7:00a 8.9 1.2 0.00 0.6 13.0 10:00a NW 25 51.3 66.4 2:45p 38.9 7:45a 13.7 0.1 0.00 0.0 7.0 1:00p NW 26 52.5 65.6 2:25p 39.9 6:30a 12.5 0.0 0.00 0.1 7.0 11:45a N 27 61.9 70.9 3:00p 50.5 12:00m 4.1 1.1 0.00 1.0 30.0 3:00a S 28 55.4 68.6 3:45p 44.2 6:50a 8.4 0.3 0.00 0.5 10.0 12:45p NNW 29 30 31 ------------------------------------------------------------------------------------- 50.7 72.8 7 30.7 1 403.1 5.1 0.07 0.3 30.0 27 NNW Max >= 90.0: 0 Max <= 32.0: 0 Min <= 32.0: 3 Min <= 0.0: 0 Max Rain: 0.01 ON 01/05/15 Days of Rain: 0 (>.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