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.

Many of these scripts are now available on GitHub at https://github.com/ktrue

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"); ?>
2022: Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec 
2021: Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec 
2020: Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec 
2019: Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec 
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 2022 09
MONTHLY CLIMATOLOGICAL SUMMARY for SEP. 2022 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 71.9 92.1 3:40p 55.6 7:00a 2.6 9.5 0.00 1.1 8.0 2:30p N 2 70.3 85.3 3:40p 59.9 6:55a 1.4 6.7 0.00 1.1 8.0 4:30p N 3 73.2 90.7 2:55p 58.9 7:00a 1.4 9.6 0.00 1.2 11.0 3:40p N 4 76.8 96.8 4:05p 58.9 7:05a 1.2 13.0 0.00 1.0 10.0 3:50p SE 5 84.7 107.7 4:30p 65.6 7:15a 0.0 19.7 0.00 1.4 11.0 4:50p WSW 6 87.6 109.1 2:20p 71.8 7:10a 0.0 22.6 0.00 1.2 13.0 4:50p N 7 81.8 98.5 4:15p 67.8 7:15a 0.0 16.8 0.00 1.0 10.0 1:45p N 8 84.1 105.7 4:10p 66.9 6:50a 0.0 19.1 0.00 1.0 10.0 4:15p N 9 77.9 96.3 3:25p 64.7 7:15a 0.0 12.9 0.00 1.0 10.0 4:05p N 10 73.0 81.6 6:00p 63.9 7:05a 0.1 8.1 0.00 1.3 20.0 12:05p N 11 74.2 83.8 2:45p 67.4 12:00m 0.0 9.2 0.00 1.1 11.0 2:15p N 12 70.8 83.6 1:20p 63.9 6:45a 0.1 5.9 0.00 1.5 13.0 2:55p N 13 66.0 76.0 2:55p 57.6 7:10a 2.1 3.2 0.00 1.5 17.0 4:45p ENE 14 64.5 76.5 4:10p 54.4 6:50a 3.7 3.2 0.00 1.5 14.0 4:45p W 15 63.0 72.1 4:00p 55.1 7:00a 3.9 2.0 0.00 1.5 12.0 3:05p ESE 16 64.0 79.2 2:55p 52.5 7:05a 4.8 3.8 0.00 1.7 12.0 1:25p WSW 17 62.9 76.8 2:55p 51.3 6:50a 4.7 2.6 0.00 1.4 13.0 12:50p E 18 62.7 69.1 2:10p 59.5 8:30a 2.5 0.2 0.54 3.3 22.0 1:00p E 19 64.5 74.2 2:20p 57.2 6:15a 2.8 2.4 0.00 1.6 14.0 2:20p ESE 20 64.2 79.2 3:10p 53.6 7:10a 4.2 3.4 0.00 1.2 12.0 12:05p WSW 21 65.3 74.9 4:00p 58.0 12:00m 2.1 2.5 0.00 0.9 11.0 3:25p WSW 22 65.0 80.3 3:55p 51.7 7:00a 4.6 4.7 0.00 1.4 13.0 4:35p N 23 69.4 87.0 3:40p 54.4 7:05a 3.3 7.7 0.00 1.2 11.0 3:05p SSW 24 72.0 90.5 3:40p 57.3 7:25a 1.8 8.8 0.00 1.3 10.0 1:40p WSW 25 67.6 80.5 3:15p 58.9 3:25a 1.7 4.3 0.00 1.1 11.0 1:50p N 26 66.2 77.6 3:35p 59.9 1:30a 2.2 3.3 0.00 1.3 11.0 1:45p N 27 64.0 75.1 2:50p 57.6 7:05a 3.3 2.3 0.00 1.2 10.0 2:45p N 28 64.3 79.6 3:50p 52.2 6:30a 4.5 3.8 0.00 1.2 11.0 1:55p N 29 66.8 83.0 3:45p 54.7 6:55a 3.2 5.0 0.00 1.1 11.0 3:05p ESE 30 69.6 88.0 4:00p 56.0 7:10a 2.7 7.3 0.00 1.2 12.0 4:25p N ------------------------------------------------------------------------------------- 70.3 109.1 6 51.3 17 64.9 223.6 0.54 1.3 22.0 18 N Max >= 90.0: 9 Max <= 32.0: 0 Min <= 32.0: 0 Min <= 0.0: 0 Max Rain: 0.54 ON 09/18/22 Days of Rain: 1 (>.01 in) 1 (>.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