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 2016 01
MONTHLY CLIMATOLOGICAL SUMMARY for JAN. 2016 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 40.2 51.6 1:40p 30.1 7:25a 24.8 0.0 0.00 0.0 6.0 9:05a NW 2 45.1 54.2 1:35p 39.5 1:30a 19.9 0.0 0.00 0.0 7.0 2:05p NNW 3 48.5 56.2 1:05p 41.5 4:55a 16.5 0.0 0.01 0.0 8.0 12:20p NNW 4 52.1 58.3 2:55p 46.8 5:35a 12.9 0.0 0.22 1.2 19.0 11:50p ESE 5 50.2 53.5 11:10a 44.8 10:25p 14.8 0.0 1.30 0.5 20.0 12:15a ESE 6 49.1 52.8 12:30p 46.1 11:15p 15.9 0.0 1.15 0.5 16.0 5:30a ESE 7 46.4 54.2 1:15p 39.8 11:20p 18.6 0.0 0.06 0.2 10.0 2:35p NNW 8 46.9 56.0 2:15p 38.0 3:45a 18.1 0.0 0.00 0.0 7.0 11:35p NE 9 51.0 56.2 2:05p 46.2 10:40p 14.0 0.0 0.01 0.8 16.0 4:35a ESE 10 50.4 57.8 12:20p 46.2 4:25a 14.5 0.0 0.00 0.0 5.0 11:20a NNW 11 53.1 63.4 2:40p 47.9 4:50a 11.9 0.0 0.00 0.0 5.0 4:35p NNW 12 53.3 66.3 2:35p 42.2 7:50a 11.8 0.0 0.00 0.8 13.0 10:40p ESE 13 53.8 59.2 10:45a 44.3 12:00m 11.2 0.0 0.40 0.9 22.0 2:10a S 14 48.8 58.4 2:00p 39.9 4:45a 16.2 0.0 0.01 0.8 17.0 3:55p ESE 15 55.0 65.2 3:15p 47.0 7:55a 10.0 0.0 0.14 0.0 6.0 10:10p NW 16 56.6 64.8 1:00p 51.0 2:50a 8.4 0.0 0.10 0.8 17.0 8:40a ESE 17 57.8 59.3 4:00a 55.6 12:05a 7.2 0.0 0.40 0.9 13.0 7:35a ESE 18 57.2 66.6 12:55p 49.5 7:40a 7.9 0.0 0.57 0.5 13.0 11:05a ESE 19 56.1 61.3 1:00p 48.6 11:55p 8.9 0.0 1.29 0.8 20.0 8:50a ESE 20 54.6 67.9 3:50p 47.6 5:55a 10.7 0.2 0.00 0.1 6.0 10:35a NNW 21 56.8 69.6 12:35p 44.9 6:55a 8.7 0.5 0.01 0.9 24.0 9:40p ESE 22 57.0 60.1 12:05a 52.5 11:25p 8.0 0.0 0.46 1.2 22.0 12:15a ESE 23 51.9 60.4 12:50p 43.8 11:35p 13.1 0.0 0.11 0.5 12.0 10:20a W 24 48.5 60.5 2:25p 42.2 3:15a 16.5 0.0 0.01 0.5 11.0 10:15a NNW 25 51.3 63.5 3:00p 42.6 4:05a 13.7 0.0 0.00 0.5 8.0 12:40p NW 26 52.1 64.5 3:50p 44.5 7:45a 12.9 0.0 0.01 0.3 11.0 12:15p NNW 27 51.9 66.4 3:40p 43.8 8:15a 13.1 0.1 0.00 0.2 10.0 12:15p N 28 52.7 63.2 3:35p 41.1 6:30a 12.3 0.0 0.00 0.2 11.0 9:25a SE 29 58.9 69.3 2:20p 54.1 7:35a 6.3 0.2 0.08 0.5 11.0 1:35p ESE 30 52.7 58.9 1:55p 48.0 7:05a 12.3 0.0 0.02 1.1 14.0 3:35a NNW 31 48.1 54.5 2:50p 43.3 7:55a 16.9 0.0 0.16 3.2 26.0 1:55p NW ------------------------------------------------------------------------------------- 51.9 69.6 21 30.1 1 408.0 1.0 6.52 0.6 26.0 31 ESE Max >= 90.0: 0 Max <= 32.0: 0 Min <= 32.0: 1 Min <= 0.0: 0 Max Rain: 1.30 ON 01/05/16 Days of Rain: 15 (>.01 in) 11 (>.1 in) 3 (>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