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.
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
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"); ?>
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 2017 01
MONTHLY CLIMATOLOGICAL SUMMARY for JAN. 2017
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 45.1 54.3 1:05p 37.1 1:45a 19.9 0.0 0.00 1.7 18.0 2:10p W
2 45.0 50.0 2:25p 40.7 7:40a 20.0 0.0 0.12 0.9 8.0 11:45p ESE
3 50.4 54.3 7:50p 46.3 6:20a 14.6 0.0 1.65 3.5 28.0 7:50p ESE
4 52.2 56.2 11:15a 47.0 8:55p 12.8 0.0 0.59 1.6 20.0 1:25a N
5 43.9 50.1 1:40p 34.2 11:45p 21.1 0.0 0.01 1.6 16.0 12:45p W
6 40.2 50.3 3:10p 29.2 7:25a 24.8 0.0 0.00 0.7 6.0 11:15a SW
7 53.2 57.8 12:55p 44.1 12:25a 11.8 0.0 1.14 4.5 33.0 12:55p E
8 57.9 60.9 12:25p 56.1 12:05a 7.1 0.0 2.83 5.7 32.0 9:05a S
9 53.2 58.6 11:45a 49.4 7:15a 11.8 0.0 0.35 1.4 19.0 2:30a ESE
10 55.0 58.2 8:10p 52.2 10:30p 10.0 0.0 2.56 3.1 28.0 1:35p SSW
11 50.4 56.2 2:10p 43.7 10:15p 14.6 0.0 0.08 1.5 19.0 12:25a W
12 45.8 50.3 3:10p 41.8 9:45p 19.2 0.0 0.23 1.0 12.0 12:40p NW
13 44.4 54.7 1:40p 36.8 6:20a 20.6 0.0 0.01 1.3 11.0 8:55a SW
14 44.2 57.5 2:50p 35.7 7:30a 20.8 0.0 0.00 1.4 12.0 11:55a SW
15 41.6 52.5 4:15p 34.9 7:40a 23.3 0.0 0.00 0.9 8.0 2:25p SW
16 42.9 55.3 1:20p 34.6 7:45a 22.1 0.0 0.00 1.4 13.0 12:50p W
17 43.7 55.8 3:15p 34.0 7:00a 21.3 0.0 0.00 0.8 7.0 9:35a W
18 49.4 51.9 9:30a 43.7 2:05a 15.6 0.0 1.30 3.9 25.0 2:25p ESE
19 50.2 56.1 1:20p 46.4 5:20a 14.8 0.0 0.23 1.5 16.0 11:00p ESE
20 47.7 54.3 12:40p 42.3 11:20p 17.3 0.0 1.72 2.5 25.0 4:50a ESE
21 48.1 55.5 11:35a 42.3 12:15a 16.9 0.0 0.19 2.4 28.0 11:50p ESE
22 48.3 57.2 12:10p 42.7 11:35p 16.7 0.0 1.78 2.8 28.0 2:15a ESE
23 44.0 51.3 2:20p 37.8 7:00a 21.0 0.0 0.16 0.7 10.0 1:00p WSW
24 42.2 53.0 2:10p 34.6 7:00a 22.6 0.0 0.00 1.5 13.0 1:35p WSW
25 43.1 55.5 1:50p 33.6 6:55a 21.6 0.0 0.01 1.0 10.0 3:45p SW
26 44.9 55.5 3:20p 38.5 2:20a 20.1 0.0 0.00 1.3 12.0 2:10p WSW
27 44.6 60.3 2:50p 36.2 5:30a 20.4 0.0 0.00 1.6 12.0 2:35p SW
28 44.0 60.7 3:30p 32.9 6:45a 21.0 0.0 0.00 1.0 7.0 1:10p SW
29 45.7 60.9 3:05p 34.4 7:05a 19.3 0.0 0.00 1.5 12.0 11:55a SW
30 47.1 63.5 2:45p 35.2 6:35a 17.9 0.0 0.00 1.1 8.0 3:15p SW
31 47.5 63.1 2:55p 34.6 7:10a 17.5 0.0 0.00 0.8 6.0 11:30a W
-------------------------------------------------------------------------------------
47.0 63.5 30 29.2 6 558.5 0.0 14.96 1.8 33.0 7 SW
Max >= 90.0: 0
Max <= 32.0: 0
Min <= 32.0: 1
Min <= 0.0: 0
Max Rain: 2.83 ON 01/08/17
Days of Rain: 15 (>.01 in) 14 (>.1 in) 7 (>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 ]