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 Friday, 11-Aug-2017 10:11 AM

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"); ?>
2018: Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec 
2017: Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec 
2016: Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec 
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 2006 11
MONTHLY CLIMATOLOGICAL SUMMARY for NOV. 2006 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 55.8 70.9 2:35p 43.3 12:05a 9.8 0.6 0.01 0.2 8.0 2:50p NW 2 61.1 69.4 1:55p 54.7 12:05a 4.2 0.3 0.06 1.3 18.0 12:40p ESE 3 60.9 69.9 2:00p 55.0 10:50p 4.4 0.3 0.05 0.2 10.0 3:10p NNW 4 58.7 68.8 1:40p 50.2 11:55p 6.7 0.4 0.00 0.3 10.0 2:35p NNW 5 58.2 72.0 1:30p 47.6 5:00a 8.0 1.2 0.00 0.6 11.0 1:05p NW 6 62.2 77.2 1:35p 52.0 6:40a 5.6 2.8 0.00 0.3 8.0 11:55a NNW 7 62.2 74.7 11:50a 53.3 4:45a 5.0 2.2 0.01 0.5 10.0 2:25p NNE 8 60.3 67.6 12:25p 53.9 10:25p 4.9 0.2 0.00 1.8 19.0 8:25p NW 9 52.0 63.9 2:00p 42.1 5:55a 13.0 0.0 0.00 1.3 16.0 2:50p NW 10 50.9 66.0 1:25p 38.5 6:40a 14.1 0.0 0.00 0.2 7.0 12:10p NW 11 50.9 59.5 12:50p 43.6 11:55p 14.1 0.0 0.11 1.0 16.0 2:15p NW 12 52.8 62.9 2:10p 42.8 1:50a 12.2 0.0 0.00 0.2 7.0 8:50a W 13 56.3 61.6 1:40p 50.5 1:35a 8.7 0.0 0.14 2.0 19.0 5:20a ESE 14 54.9 63.4 1:55p 45.2 11:20p 10.1 0.0 0.05 0.4 10.0 12:35p NW 15 52.6 67.8 1:50p 42.8 3:40a 12.7 0.2 0.01 0.2 8.0 10:35a NE 16 55.8 70.6 12:55p 44.6 6:05a 9.9 0.7 0.00 0.2 7.0 3:30p NNW 17 57.5 62.9 2:05p 50.7 12:00m 7.5 0.0 0.01 0.0 8.0 6:00p NW 18 55.6 69.1 2:35p 44.3 7:05a 9.9 0.5 0.01 0.3 7.0 12:40p NW 19 54.6 67.1 2:45p 47.0 6:15a 10.5 0.1 0.01 0.2 6.0 11:05a NW 20 55.2 67.3 2:10p 47.6 5:35a 9.9 0.1 0.01 0.1 7.0 2:30p N 21 55.6 65.6 3:20p 46.0 11:50p 9.4 0.0 0.00 0.1 7.0 4:30p N 22 52.5 63.9 2:45p 43.5 6:15a 12.5 0.0 0.03 0.3 13.0 10:50p NW 23 48.8 59.3 2:20p 39.3 11:50p 16.2 0.0 0.01 1.1 14.0 10:40a NW 24 45.8 59.2 1:40p 34.0 6:40a 19.2 0.0 0.00 0.5 12.0 11:15a NW 25 49.5 61.5 12:50p 39.8 7:00a 15.5 0.0 0.00 0.5 17.0 2:25p NW 26 46.8 53.6 12:25p 39.5 2:30a 18.2 0.0 0.15 1.0 16.0 12:00p ESE 27 47.1 57.6 1:20p 37.8 11:35p 17.9 0.0 0.02 0.7 14.0 1:00p W 28 44.6 54.1 12:40p 37.0 2:25a 20.4 0.0 0.00 1.4 17.0 1:55p NW 29 43.4 53.5 2:25p 34.7 5:50a 21.6 0.0 0.00 1.2 17.0 10:35a NW 30 43.3 57.8 1:05p 32.7 7:00a 21.7 0.0 0.00 0.3 8.0 2:35p NW ------------------------------------------------------------------------------------- 53.5 77.2 6 32.7 30 353.8 9.6 0.69 0.6 19.0 8 NW Max >= 90.0: 0 Max <= 32.0: 0 Min <= 32.0: 0 Min <= 0.0: 0 Max Rain: 0.15 ON 11/26/06 Days of Rain: 8 (>.01 in) 3 (>.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.07 - 11-Aug-2017) [ see version history ]

deformed-offering