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 04
MONTHLY CLIMATOLOGICAL SUMMARY for APR. 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 56.7 74.7 3:45p 43.2 7:10a 10.2 1.9 0.00 1.4 13.0 5:05p ENE 2 58.8 76.0 4:40p 43.5 7:00a 8.9 2.7 0.00 1.2 11.0 11:55a W 3 59.0 74.2 2:25p 47.1 7:25a 8.0 2.0 0.00 1.6 14.0 4:50p SSE 4 56.8 70.3 4:05p 45.1 5:00a 9.2 0.9 0.00 2.0 16.0 12:50p N 5 58.2 71.6 4:05p 46.0 7:05a 8.2 1.4 0.00 1.5 13.0 1:40p ENE 6 63.3 82.8 4:45p 44.5 6:50a 7.0 5.3 0.00 1.7 13.0 5:25p W 7 69.3 90.7 3:30p 51.1 6:30a 4.3 8.6 0.00 1.4 11.0 3:25p SW 8 67.1 84.5 2:20p 54.4 6:50a 3.6 5.7 0.00 1.7 12.0 2:25p WSW 9 59.4 76.1 3:50p 45.4 6:55a 8.0 2.4 0.00 1.6 13.0 1:25p N 10 57.1 71.1 3:25p 46.4 7:15a 8.9 1.0 0.00 2.5 17.0 8:55a WSW 11 51.0 57.2 11:50a 45.7 3:20a 14.0 0.0 0.00 2.3 22.0 1:40p WSW 12 50.2 59.5 3:10p 43.1 5:10a 14.8 0.0 0.00 2.5 18.0 12:15p W 13 50.2 60.2 4:40p 38.3 6:00a 14.8 0.0 0.00 1.5 14.0 3:40p WSW 14 56.0 62.1 3:35p 51.0 7:10a 9.0 0.0 0.00 1.7 14.0 10:05p ESE 15 58.3 69.3 2:05p 50.5 7:30a 7.2 0.4 0.00 1.8 13.0 2:05p NE 16 57.8 68.6 3:15p 46.5 12:00m 7.6 0.4 0.62 2.4 17.0 3:40p N 17 51.8 63.7 1:35p 40.5 6:45a 13.2 0.0 0.01 1.5 11.0 1:40p N 18 55.3 72.8 3:50p 40.2 6:25a 10.7 1.1 0.00 1.8 16.0 4:55p WSW 19 58.4 65.0 2:25p 48.5 12:00m 6.6 0.0 0.02 1.9 13.0 12:45p N 20 56.3 71.5 2:40p 44.1 6:45a 9.7 0.9 0.06 2.4 20.0 6:05p E 21 57.1 66.6 3:45p 52.2 11:50p 7.9 0.1 0.84 1.9 18.0 4:05p ENE 22 53.9 63.1 5:20p 47.0 12:00m 11.1 0.0 0.21 1.1 12.0 2:50p WSW 23 56.2 71.6 3:25p 42.3 6:10a 10.2 1.4 0.00 1.6 14.0 3:45p WSW 24 59.3 76.5 2:55p 45.2 6:25a 8.3 2.6 0.00 1.5 14.0 3:10p N 25 59.2 74.2 1:40p 45.1 6:25a 8.1 2.3 0.00 1.6 16.0 6:00p N 26 57.1 70.1 3:00p 48.9 4:30a 8.5 0.7 0.00 1.6 14.0 4:40p SW 27 54.7 69.1 4:20p 42.5 6:25a 10.9 0.6 0.00 1.6 13.0 3:35p WSW 28 54.0 65.0 3:10p 45.2 3:40a 11.0 0.0 0.00 2.1 18.0 10:05a WSW 29 57.3 73.5 3:50p 42.3 6:15a 9.6 1.9 0.00 1.7 16.0 3:40p WSW 30 58.1 73.0 3:05p 47.0 6:20a 8.5 1.6 0.00 2.0 18.0 2:05p NNE ------------------------------------------------------------------------------------- 57.3 90.7 7 38.3 13 278.0 45.9 1.76 1.8 22.0 11 N Max >= 90.0: 1 Max <= 32.0: 0 Min <= 32.0: 0 Min <= 0.0: 0 Max Rain: 0.84 ON 04/21/22 Days of Rain: 5 (>.01 in) 3 (>.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