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

Buy Me A Coffee 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.

Note: Twitter widget has been disabled 3-Jul-2023 since it no longer displays the recent update Tweets.

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"); ?>
2024: Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec 
2023: Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec 
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 2007 02
MONTHLY CLIMATOLOGICAL SUMMARY for FEB. 2007 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 47.9 52.5 1:50p 40.5 6:25a 17.1 0.0 0.00 0.1 8.0 5:10p N 2 47.2 57.3 2:15p 38.5 12:00m 17.8 0.0 0.00 0.3 10.0 2:45p NW 3 46.8 62.0 3:00p 35.0 6:50a 18.2 0.0 0.00 0.1 6.0 2:30p NW 4 50.5 69.3 3:00p 38.2 7:05a 14.8 0.3 0.00 0.1 6.0 4:10p NW 5 51.9 68.4 1:45p 40.5 7:20a 13.4 0.4 0.00 0.1 6.0 4:25p NNW 6 52.6 64.5 3:25p 40.6 3:10a 12.4 0.0 0.00 0.3 7.0 9:20a N 7 55.3 60.9 12:25p 50.5 11:55p 9.7 0.0 0.02 2.6 20.0 11:15a ESE 8 54.6 57.5 1:40p 50.1 1:35a 10.4 0.0 0.12 2.1 19.0 3:25p ESE 9 56.7 59.5 2:20p 54.7 2:20a 8.3 0.0 0.06 3.1 19.0 6:20a ESE 10 57.2 62.3 1:05p 54.8 11:25p 7.8 0.0 0.79 1.8 19.0 1:35p E 11 53.3 62.6 2:55p 43.1 12:00m 11.7 0.0 0.11 0.6 12.0 3:20p NW 12 48.3 61.0 1:40p 39.6 6:30a 16.7 0.0 0.17 0.6 12.0 12:00p ESE 13 48.1 57.0 1:30p 41.1 11:55p 16.9 0.0 0.01 0.8 16.0 3:15p NW 14 49.0 63.9 2:05p 38.3 6:20a 16.0 0.0 0.01 0.6 12.0 2:00p N 15 52.5 67.6 2:05p 41.8 7:15a 12.6 0.1 0.00 0.8 13.0 11:45a N 16 56.6 73.7 2:15p 42.1 7:15a 9.9 1.5 0.01 0.8 14.0 2:50p NW 17 60.3 74.9 2:00p 48.0 11:50p 6.9 2.3 0.00 0.5 10.0 10:50a NW 18 50.6 62.6 1:10p 42.2 7:15a 14.4 0.0 0.00 0.6 13.0 2:50p W 19 50.7 64.0 2:50p 38.9 3:15a 14.3 0.0 0.00 1.3 17.0 2:40p NW 20 49.6 59.6 2:20p 40.3 3:50a 15.4 0.0 0.00 0.1 7.0 1:20p W 21 51.2 57.5 12:05p 45.2 12:05a 13.8 0.0 0.00 1.9 20.0 11:25p ESE 22 46.7 55.1 2:40p 40.1 12:00m 18.3 0.0 0.74 1.5 20.0 12:40a W 23 44.6 55.9 2:45p 37.2 11:55p 20.4 0.0 0.02 1.5 17.0 8:55a NW 24 47.0 56.7 11:15a 36.0 6:45a 18.0 0.0 0.12 1.2 14.0 10:40a ESE 25 50.1 55.9 12:05p 47.6 11:15p 14.9 0.0 0.24 0.6 17.0 8:55a W 26 49.1 56.6 10:45a 41.6 12:00m 15.9 0.0 0.64 0.6 18.0 11:20a S 27 42.7 54.1 1:50p 36.6 7:00a 22.3 0.0 0.29 0.7 14.0 1:05p ESE 28 42.2 52.6 3:25p 34.7 5:50a 22.8 0.0 0.13 0.8 17.0 1:15p NW ------------------------------------------------------------------------------------- 50.5 74.9 17 34.7 28 411.1 4.6 3.48 0.9 20.0 7 NW Max >= 90.0: 0 Max <= 32.0: 0 Min <= 32.0: 0 Min <= 0.0: 0 Max Rain: 0.79 ON 02/10/07 Days of Rain: 13 (>.01 in) 10 (>.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