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 2021 01
MONTHLY CLIMATOLOGICAL SUMMARY for JAN. 2021 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 46.2 59.3 3:20p 37.9 7:10a 18.7 0.0 0.00 0.3 7.0 11:50a ENE 2 51.0 57.0 2:55p 44.6 12:05a 13.9 0.0 0.00 0.2 7.0 12:25p ENE 3 50.3 58.0 3:10p 41.8 7:40a 14.7 0.0 0.00 0.3 7.0 2:40p NE 4 53.1 59.8 2:20p 43.9 12:00m 11.9 0.0 0.13 2.2 22.0 10:35a ESE 5 46.5 54.7 1:20p 40.1 11:55p 18.5 0.0 0.01 0.6 11.0 3:05p NNW 6 45.1 56.2 4:35p 36.3 6:20a 19.9 0.0 0.00 0.2 7.0 11:45a N 7 47.2 56.0 3:20p 41.5 3:10a 17.8 0.0 0.01 0.1 6.0 11:40a WNW 8 50.0 60.9 1:45p 43.1 8:00a 15.0 0.0 0.00 0.7 11.0 12:25p N 9 48.4 58.9 3:20p 41.1 11:50p 16.5 0.0 0.00 1.2 13.0 10:50a W 10 48.3 61.3 3:10p 38.0 4:50a 16.7 0.0 0.00 0.4 10.0 3:45p NE 11 49.0 60.1 3:05p 42.5 2:20a 16.0 0.0 0.00 0.5 10.0 12:35p N 12 51.6 61.0 3:25p 44.5 5:10a 13.4 0.0 0.00 0.3 10.0 1:20p NE 13 54.0 67.3 4:00p 44.5 7:45a 11.2 0.2 0.00 0.7 10.0 3:45p N 14 55.3 68.9 2:55p 46.1 7:10a 10.2 0.5 0.00 1.3 12.0 9:25a NNW 15 52.8 68.1 3:10p 42.2 7:25a 12.5 0.3 0.00 0.6 11.0 3:00p N 16 54.9 72.1 3:25p 45.4 5:00a 11.0 0.9 0.00 0.6 10.0 1:55p NNE 17 57.4 73.5 2:35p 47.0 6:20a 9.3 1.7 0.00 1.1 12.0 11:20a W 18 61.8 73.3 2:35p 52.9 1:00a 4.8 1.6 0.00 2.6 19.0 12:00m NW 19 55.9 64.2 2:45p 44.5 11:55p 9.1 0.0 0.00 5.6 36.0 7:00a N 20 49.7 65.5 2:25p 39.5 6:45a 15.3 0.0 0.00 0.9 11.0 12:00p NNW 21 48.0 63.7 1:45p 37.5 7:05a 17.0 0.0 0.00 0.6 10.0 2:25p NE 22 47.4 51.1 1:30p 42.6 12:05a 17.6 0.0 0.31 0.3 20.0 10:40a NNW 23 45.8 53.5 4:30p 39.2 11:55p 19.2 0.0 0.00 0.8 12.0 2:05p NW 24 43.5 50.8 2:05p 36.3 5:10a 21.5 0.0 0.18 0.9 22.0 11:25p WNW 25 45.1 51.6 1:35p 39.9 11:55p 19.9 0.0 0.00 4.7 25.0 3:10p NW 26 41.2 50.7 12:45p 32.2 7:20a 23.8 0.0 1.10 2.9 28.0 11:25p ESE 27 47.3 50.8 12:25p 44.8 12:05a 17.7 0.0 2.29 2.5 30.0 12:30a E 28 49.1 52.2 2:15p 45.5 12:00m 15.9 0.0 1.98 1.3 20.0 12:15a E 29 45.5 53.6 2:15p 39.6 7:50a 19.5 0.0 0.06 0.3 10.0 2:05p WNW 30 48.3 59.3 2:35p 40.3 1:15a 16.7 0.0 0.00 0.5 13.0 1:55p ESE 31 54.6 62.4 12:50p 47.7 8:05a 10.4 0.0 0.00 1.4 16.0 10:00a ESE ------------------------------------------------------------------------------------- 49.8 73.5 17 32.2 26 475.6 5.2 6.07 1.2 36.0 19 NW Max >= 90.0: 0 Max <= 32.0: 0 Min <= 32.0: 0 Min <= 0.0: 0 Max Rain: 2.29 ON 01/27/21 Days of Rain: 7 (>.01 in) 6 (>.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