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 2017 03
MONTHLY CLIMATOLOGICAL SUMMARY for MAR. 2017 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 48.0 63.4 2:55p 35.8 5:40a 17.0 0.0 0.00 1.6 12.0 2:25p WSW 2 50.4 67.1 3:05p 36.3 6:45a 14.7 0.1 0.00 1.4 11.0 12:45p WSW 3 51.4 67.1 2:05p 37.9 6:30a 13.7 0.1 0.00 1.3 10.0 2:10p SSW 4 52.3 64.8 1:15p 42.8 4:00a 12.7 0.0 0.32 2.0 16.0 9:50p S 5 45.1 52.8 2:10p 36.8 11:40p 19.9 0.0 0.23 2.3 20.0 11:00a W 6 47.0 59.0 1:05p 37.8 12:05a 18.0 0.0 0.04 1.4 16.0 1:05p S 7 49.3 62.3 3:00p 37.5 6:10a 15.7 0.0 0.00 1.3 11.0 3:25p N 8 53.7 67.9 3:25p 40.8 6:40a 11.7 0.4 0.00 1.5 14.0 1:15p WSW 9 58.0 74.0 2:25p 45.2 6:35a 8.8 1.8 0.00 1.2 13.0 1:20p NNE 10 58.8 72.8 3:30p 49.6 2:35a 7.7 1.5 0.00 1.0 11.0 2:10p WNW 11 59.3 75.3 1:15p 47.1 6:20a 7.8 2.1 0.00 1.1 11.0 2:45p N 12 58.9 76.3 4:15p 44.9 7:00a 8.5 2.6 0.00 1.5 16.0 3:05p NW 13 59.6 78.3 3:15p 43.8 7:25a 8.6 3.2 0.00 1.4 12.0 3:55p SE 14 63.5 81.4 4:20p 48.9 7:10a 5.8 4.3 0.00 1.2 10.0 1:55p W 15 58.0 72.0 2:05p 48.2 7:00a 7.7 0.7 0.00 1.5 13.0 2:30p N 16 59.1 73.2 3:30p 49.4 11:40p 7.0 1.1 0.00 1.3 13.0 4:50p NE 17 58.8 77.6 3:55p 43.2 5:35a 9.0 2.8 0.00 1.1 8.0 2:10p SSE 18 57.8 72.1 3:55p 48.9 5:15a 8.0 0.9 0.00 0.9 13.0 5:10p NNW 19 58.0 72.3 3:15p 50.2 1:00a 7.7 0.7 0.00 0.8 12.0 4:15p NNW 20 57.0 62.1 1:30p 53.9 2:20a 8.0 0.0 0.36 3.4 21.0 3:10a ESE 21 60.5 68.4 2:50p 55.4 11:40p 4.9 0.4 0.23 3.0 22.0 6:10a ESE 22 53.3 61.6 3:35p 43.9 11:30p 11.7 0.0 0.55 2.2 17.0 4:50p NW 23 52.3 63.9 2:30p 41.6 7:00a 12.7 0.0 0.00 1.5 13.0 4:50p NE 24 53.5 56.5 10:55a 51.9 1:15a 11.5 0.0 0.68 2.5 18.0 10:40a E 25 54.5 63.2 2:55p 45.1 11:55p 10.5 0.0 0.03 1.5 12.0 12:10p NW 26 54.1 66.0 4:00p 44.9 12:25a 10.9 0.0 0.01 1.3 14.0 9:05p WSW 27 54.4 63.4 3:10p 46.1 4:20a 10.6 0.0 0.00 2.9 21.0 2:55p NW 28 56.7 72.1 4:15p 43.1 5:45a 9.6 1.3 0.00 2.5 22.0 12:40p W 29 58.7 73.5 3:55p 45.8 6:55a 8.2 2.0 0.00 1.4 16.0 6:25p N 30 56.8 65.8 3:50p 49.6 12:50a 8.2 0.0 0.00 3.6 22.0 11:05a NW 31 58.5 70.8 4:55p 49.8 11:55p 7.5 1.0 0.00 5.0 26.0 10:05a NW ------------------------------------------------------------------------------------- 55.4 81.4 14 35.8 1 324.3 27.0 2.45 1.8 26.0 31 N Max >= 90.0: 0 Max <= 32.0: 0 Min <= 32.0: 0 Min <= 0.0: 0 Max Rain: 0.68 ON 03/24/17 Days of Rain: 8 (>.01 in) 6 (>.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