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 2016 03
MONTHLY CLIMATOLOGICAL SUMMARY for MAR. 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 59.6 74.7 3:10p 47.6 7:20a 7.4 2.0 0.00 0.6 12.0 4:05p N
2 59.3 79.0 1:50p 46.0 6:55a 8.0 2.4 0.00 0.6 14.0 1:00p ESE
3 60.6 71.6 1:40p 51.7 12:55a 5.5 1.0 0.00 0.2 7.0 2:05p ESE
4 60.2 64.7 12:05p 56.3 3:10a 4.8 0.0 0.35 0.7 14.0 9:10a ESE
5 58.1 60.4 12:30p 53.2 11:10p 6.9 0.0 2.72 3.2 32.0 6:35p ESE
6 53.5 63.2 11:35a 47.3 6:50a 11.5 0.0 1.56 1.1 14.0 12:50p SW
7 49.4 56.5 3:35p 45.8 6:05a 15.6 0.0 0.48 1.0 16.0 12:10p NNW
8 50.9 62.6 11:55a 39.5 6:55a 14.1 0.0 0.04 0.4 11.0 12:40p N
9 59.1 70.8 11:55a 50.2 2:00a 6.9 1.0 0.00 0.8 13.0 11:10p ESE
10 61.3 71.8 1:35p 57.0 6:55a 4.3 0.7 0.04 1.3 16.0 4:35a ESE
11 53.3 58.9 2:10a 47.4 11:55p 11.7 0.0 1.06 2.3 24.0 1:40p W
12 52.2 61.2 1:20p 42.8 4:55a 12.8 0.0 0.27 1.3 20.0 11:10a S
13 55.6 59.5 3:50p 53.9 3:10a 8.9 0.0 0.98 0.1 10.0 5:05p ESE
14 54.1 62.9 3:10p 44.9 12:00m 10.9 0.0 0.02 0.6 16.0 2:40p NNW
15 53.9 69.1 3:35p 41.5 7:15a 11.8 0.6 0.00 0.8 14.0 3:55p NNW
16 58.4 75.6 4:15p 42.9 6:45a 9.3 2.7 0.00 0.5 11.0 3:10p N
17 62.6 82.0 4:30p 46.5 7:20a 7.0 4.6 0.00 0.4 10.0 1:25p N
18 57.8 74.9 4:10p 47.7 5:20a 8.7 1.4 0.00 0.3 11.0 5:40p N
19 59.8 75.6 4:55p 46.2 7:35a 7.6 2.3 0.00 0.2 11.0 5:45p N
20 59.1 74.4 12:50p 46.5 6:10a 7.5 1.6 0.02 0.4 13.0 11:05a ESE
21 53.9 62.6 11:35a 45.7 5:50a 11.1 0.0 0.16 0.5 16.0 9:45a S
22 52.4 66.6 3:10p 42.6 7:35a 12.6 0.0 0.03 0.7 13.0 3:10p NNW
23 55.0 70.6 2:45p 42.6 6:45a 11.0 1.0 0.00 0.5 12.0 3:15p N
24 56.9 72.7 3:55p 43.1 6:50a 9.9 1.8 0.00 0.8 17.0 3:45p N
25 58.2 76.8 3:15p 44.8 4:30a 8.9 2.1 0.00 0.5 12.0 4:40p N
26 59.4 77.0 2:20p 44.5 7:15a 8.3 2.7 0.00 0.5 12.0 2:20p N
27 58.2 71.8 4:15p 49.6 7:10a 7.9 1.1 0.00 0.8 12.0 12:05p W
28 52.7 64.0 2:50p 44.9 12:00m 12.3 0.0 0.00 1.4 18.0 9:25a W
29 53.0 69.1 3:15p 39.6 6:25a 12.4 0.5 0.00 0.4 13.0 2:30p N
30 53.7 68.9 3:20p 39.2 7:00a 11.8 0.5 0.00 0.7 13.0 2:20p N
31 56.8 73.9 3:00p 46.4 1:40a 9.5 1.3 0.00 0.6 20.0 5:45p N
-------------------------------------------------------------------------------------
56.4 82.0 17 39.2 30 296.9 31.3 7.73 0.8 32.0 5 N
Max >= 90.0: 0
Max <= 32.0: 0
Min <= 32.0: 0
Min <= 0.0: 0
Max Rain: 2.72 ON 03/05/16
Days of Rain: 13 (>.01 in) 8 (>.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 ]