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 2008 01
MONTHLY CLIMATOLOGICAL SUMMARY for JAN. 2008 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 42.6 59.0 1:35p 31.6 7:25a 22.4 0.0 0.00 0.3 8.0 2:50p NW 2 48.0 63.4 3:05p 34.3 5:45a 17.0 0.0 0.00 1.2 14.0 2:25p SSW 3 53.6 61.3 1:05p 50.8 11:45p 11.4 0.0 0.26 4.0 25.0 8:55a E 4 52.9 57.8 1:45p 49.1 11:55p 12.1 0.0 5.52 5.7 48.0 9:40a S 5 46.7 51.9 12:45p 41.9 5:30a 18.3 0.0 1.10 1.0 22.0 12:40p ESE 6 44.2 51.1 12:05p 38.8 6:20a 20.8 0.0 0.09 0.4 11.0 1:20p ESE 7 44.6 52.0 12:40p 39.3 8:00p 20.4 0.0 0.04 0.4 10.0 10:55a NW 8 45.3 50.5 3:25p 38.9 4:20a 19.7 0.0 0.10 2.6 25.0 12:25p E 9 46.2 51.3 1:20p 40.3 12:35a 18.8 0.0 0.00 0.1 5.0 12:45p N 10 50.7 56.0 1:25p 46.4 12:05a 14.3 0.0 0.07 0.0 5.0 1:40p W 11 50.3 58.3 1:15p 42.8 9:40p 14.7 0.0 0.01 0.2 8.0 2:10p W 12 49.3 60.1 3:15p 42.2 12:00m 15.7 0.0 0.00 0.3 9.0 1:40p NW 13 48.0 61.8 2:45p 38.9 7:40a 17.0 0.0 0.00 0.5 12.0 12:25p NW 14 46.2 59.2 2:45p 36.0 7:00a 18.8 0.0 0.01 0.2 8.0 12:10p NW 15 43.6 57.6 3:15p 35.6 6:05a 21.4 0.0 0.00 0.3 11.0 3:00p WNW 16 48.1 56.7 1:00p 37.0 1:35a 16.9 0.0 0.00 2.2 27.0 3:05p NW 17 46.9 58.3 2:25p 35.5 7:35a 18.1 0.0 0.00 0.7 13.0 1:15p W 18 45.2 61.3 2:00p 34.0 7:25a 19.8 0.0 0.00 0.3 10.0 3:00p NNW 19 45.7 63.5 2:25p 33.8 7:30a 19.3 0.0 0.00 0.1 7.0 2:55p NW 20 43.5 52.8 2:25p 35.9 1:55a 21.5 0.0 0.00 0.6 16.0 1:40p NW 21 41.9 48.2 12:05p 38.3 5:55a 23.1 0.0 1.13 0.7 13.0 3:10p ESE 22 42.8 54.1 2:40p 36.3 7:10a 22.2 0.0 0.15 0.5 13.0 1:45p NW 23 42.9 46.5 1:50p 40.1 7:10a 22.1 0.0 0.05 0.1 7.0 4:30p NNW 24 41.8 46.7 1:05p 39.3 7:00a 23.2 0.0 0.16 1.9 19.0 2:30p ESE 25 49.3 51.7 2:55p 43.2 12:05a 15.7 0.0 3.00 1.5 17.0 1:35p ESE 26 54.6 62.3 2:05p 49.6 7:05a 10.4 0.0 0.33 1.4 17.0 9:05a ESE 27 51.0 53.9 2:55a 42.9 11:55p 14.0 0.0 1.04 4.1 45.0 3:05a SSW 28 42.8 51.6 3:55p 34.9 11:40p 22.2 0.0 0.11 0.4 11.0 5:40a WSW 29 42.1 53.5 2:20p 33.5 4:05a 22.9 0.0 0.01 0.4 16.0 3:20p ESE 30 44.2 54.5 1:40p 37.5 7:00a 20.8 0.0 0.05 1.1 14.0 1:50p NW 31 47.4 55.1 11:45a 40.9 6:45a 17.6 0.0 0.29 1.3 16.0 2:00p E ------------------------------------------------------------------------------------- 46.5 63.5 19 31.6 1 572.6 0.0 13.52 1.1 48.0 4 NW Max >= 90.0: 0 Max <= 32.0: 0 Min <= 32.0: 1 Min <= 0.0: 0 Max Rain: 5.52 ON 01/04/08 Days of Rain: 17 (>.01 in) 11 (>.1 in) 5 (>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