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 2006 07
MONTHLY CLIMATOLOGICAL SUMMARY for JUL. 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 67.2 85.9 2:25p 54.7 6:25a 3.2 5.4 0.00 1.1 11.0 4:25p N 2 64.1 77.4 4:10p 53.9 5:45a 4.0 3.1 0.00 1.1 12.0 5:10p N 3 63.6 76.5 3:30p 55.9 1:35a 4.2 2.7 0.00 1.2 12.0 1:20p N 4 63.3 77.4 12:20p 52.9 4:20a 4.6 3.0 0.00 1.1 11.0 1:50p N 5 62.6 75.6 3:25p 49.8 5:55a 5.2 2.8 0.00 1.3 13.0 1:05p N 6 63.3 76.7 2:40p 50.1 5:50a 5.0 3.3 0.00 1.1 12.0 1:25p N 7 70.2 93.4 3:30p 48.2 5:40a 4.6 9.7 0.00 1.0 12.0 12:35p N 8 74.5 94.9 4:30p 55.1 5:35a 2.0 11.5 0.00 0.9 12.0 2:15p NNE 9 71.9 91.4 3:45p 56.2 6:05a 2.0 8.9 0.00 0.8 10.0 3:00p N 10 67.3 83.0 12:40p 56.0 6:05a 2.8 5.1 0.00 1.1 13.0 4:45p N 11 64.8 76.0 2:05p 56.0 12:00m 3.3 3.1 0.00 1.3 12.0 12:20p N 12 64.9 78.8 4:05p 49.8 6:00a 4.1 4.0 0.00 1.3 13.0 5:55p N 13 73.8 92.7 3:10p 58.7 6:05a 1.4 10.2 0.00 1.0 11.0 2:30p NE 14 68.5 84.5 3:15p 58.4 6:20a 2.2 5.7 0.00 1.1 10.0 1:25p N 15 70.9 89.0 4:05p 56.3 2:35a 2.4 8.3 0.00 0.9 10.0 2:40p NNE 16 75.8 96.6 3:50p 57.3 6:20a 1.5 12.3 0.00 0.8 10.0 3:20p N 17 78.9 101.2 2:05p 59.0 5:45a 0.6 14.6 0.00 0.8 13.0 3:00p N 18 77.7 96.6 2:35p 62.3 6:25a 0.2 12.9 0.00 0.9 10.0 1:10p NNE 19 76.9 93.8 12:50p 65.6 6:25a 0.0 11.9 0.00 1.1 13.0 1:25p NNE 20 78.6 96.3 3:30p 63.4 6:00a 0.1 13.7 0.00 0.9 11.0 2:40p NNE 21 82.0 100.4 3:40p 66.0 6:15a 0.0 17.0 0.00 0.7 10.0 3:50p N 22 88.6 108.8 3:00p 70.4 6:00a 0.0 23.6 0.00 0.9 12.0 3:25p N 23 89.2 107.9 2:00p 73.9 6:10a 0.0 24.2 0.00 0.7 9.0 4:25p NNE 24 84.8 104.9 3:00p 68.8 6:25a 0.0 19.8 0.00 0.7 10.0 3:20p NNE 25 82.7 103.3 3:20p 65.8 6:25a 0.0 17.7 0.00 0.7 11.0 3:50p NNW 26 74.2 89.7 1:10p 62.7 6:20a 0.2 9.4 0.00 1.1 13.0 5:30p N 27 71.8 87.2 3:25p 62.4 11:55p 0.5 7.3 0.00 1.1 11.0 5:40p N 28 69.6 86.1 1:35p 60.7 5:35a 1.3 5.9 0.00 1.1 13.0 2:50p NNW 29 68.7 86.5 12:45p 56.9 6:05a 1.8 5.4 0.00 1.1 14.0 2:20p NNW 30 69.5 85.9 2:00p 58.9 4:20a 1.5 6.0 0.00 0.8 12.0 3:30p N 31 66.9 83.4 3:35p 54.4 6:20a 3.1 5.0 0.00 1.0 14.0 4:45p NW ------------------------------------------------------------------------------------- 72.5 108.8 22 48.2 7 61.8 293.5 0.00 1.0 14.0 29 N Max >= 90.0: 14 Max <= 32.0: 0 Min <= 32.0: 0 Min <= 0.0: 0 Max Rain: 0.00 ON 07/01/06 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.07 - 11-Aug-2017) [ see version history ]

deformed-offering