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"); ?>
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 2009 03
MONTHLY CLIMATOLOGICAL SUMMARY for MAR. 2009 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 58.8 65.2 2:25a 54.2 8:15a 6.2 0.0 0.34 3.1 31.0 10:00p S 2 56.5 58.4 2:15p 51.6 10:50p 8.5 0.0 1.03 5.1 29.0 3:35p S 3 51.2 53.5 2:20p 47.6 10:20a 13.8 0.0 2.14 3.1 22.0 3:10p SSW 4 49.0 56.7 3:10p 40.6 6:35a 16.0 0.0 0.12 1.2 12.0 10:30a ESE 5 49.4 58.0 11:40a 43.8 11:35p 15.6 0.0 0.21 0.5 12.0 12:05p NW 6 47.9 55.7 3:40p 41.6 12:00m 17.1 0.0 0.02 0.5 11.0 3:25p W 7 49.8 64.3 3:15p 37.9 6:05a 15.2 0.0 0.01 0.6 12.0 5:30p NW 8 50.0 63.2 2:00p 40.1 4:35a 14.3 0.0 0.00 1.5 16.0 8:00p W 9 47.0 55.7 4:25p 37.8 12:00m 18.0 0.0 0.00 2.4 17.0 3:00p NW 10 46.0 59.2 3:15p 33.8 7:25a 19.0 0.0 0.00 0.9 13.0 12:00p NW 11 49.0 63.5 3:40p 36.2 6:45a 16.0 0.0 0.00 0.8 13.0 4:50p WNW 12 50.9 66.0 3:30p 38.0 7:25a 14.2 0.0 0.00 0.8 12.0 2:10p NNW 13 52.3 64.8 3:55p 41.2 2:25a 12.7 0.0 0.00 0.8 11.0 4:15p N 14 50.0 57.2 3:00p 46.1 4:30a 15.0 0.0 0.00 1.0 13.0 3:35p W 15 54.8 65.8 3:50p 49.2 12:40a 10.2 0.0 0.00 1.4 16.0 12:35p SSW 16 57.5 66.9 4:25p 50.4 2:10a 7.5 0.0 0.00 0.7 12.0 6:25p ESE 17 58.0 69.1 1:55p 48.0 4:40a 7.8 0.8 0.00 1.4 16.0 4:05p NW 18 57.7 73.3 4:25p 45.2 6:30a 8.8 1.6 0.00 1.0 12.0 1:30p NW 19 60.3 74.2 2:55p 48.8 7:50a 6.8 2.1 0.00 0.8 12.0 3:10p NNE 20 56.1 68.9 1:55p 47.0 3:50a 9.3 0.4 0.00 0.8 11.0 2:25p NE 21 54.2 62.7 3:45p 45.5 7:20a 10.8 0.0 0.06 1.2 16.0 1:35p E 22 48.3 54.7 3:10p 42.2 7:10a 16.7 0.0 0.28 3.7 27.0 11:30a NW 23 48.4 60.4 4:55p 37.6 7:25a 16.6 0.0 0.00 2.5 19.0 2:00p NW 24 53.1 68.9 4:35p 38.9 7:05a 12.4 0.5 0.00 1.1 13.0 2:55p NW 25 55.7 69.9 2:50p 42.2 7:10a 10.2 1.0 0.00 1.0 13.0 2:10p NW 26 57.8 73.0 4:35p 44.8 7:05a 8.4 1.3 0.00 1.5 17.0 2:50p NW 27 61.8 76.8 4:10p 47.0 7:15a 6.6 3.4 0.00 1.1 18.0 4:20p N 28 62.4 79.4 1:45p 47.9 7:05a 6.5 3.8 0.00 0.7 12.0 1:55p N 29 54.8 66.1 4:50p 43.5 7:20a 10.3 0.1 0.00 2.1 19.0 3:25p NW 30 56.8 68.3 5:20p 47.6 12:00m 8.6 0.3 0.00 2.1 16.0 12:15a NW 31 57.8 74.6 3:25p 41.5 7:05a 9.4 2.2 0.00 1.1 14.0 4:20p NW ------------------------------------------------------------------------------------- 53.7 79.4 28 33.8 10 368.5 17.5 4.21 1.5 31.0 1 NW Max >= 90.0: 0 Max <= 32.0: 0 Min <= 32.0: 0 Min <= 0.0: 0 Max Rain: 2.14 ON 03/03/09 Days of Rain: 8 (>.01 in) 6 (>.1 in) 2 (>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