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 2019 12
MONTHLY CLIMATOLOGICAL SUMMARY for DEC. 2019
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 53.3 55.6 4:50p 50.2 12:20a 11.7 0.0 1.06 3.9 25.0 8:20a E
2 53.9 57.0 4:35p 51.1 11:55p 11.1 0.0 0.77 1.2 13.0 3:25a E
3 52.6 58.4 2:45p 46.5 7:05a 12.4 0.0 0.07 0.1 11.0 11:10p ENE
4 54.6 57.2 2:40p 52.8 7:35a 10.4 0.0 0.71 0.1 6.0 8:45a NNW
5 54.3 60.1 2:25p 46.2 7:00a 10.7 0.0 0.01 1.0 13.0 3:00p S
6 58.0 65.2 12:40p 54.2 3:30a 7.0 0.0 0.32 2.3 18.0 9:55p ESE
7 57.9 62.3 11:15a 55.7 12:05a 7.1 0.0 2.17 4.2 31.0 5:45a S
8 55.0 58.3 1:20p 52.2 11:15p 10.0 0.0 0.47 0.3 11.0 1:55p NW
9 53.2 58.1 2:00p 48.2 7:55a 11.8 0.0 0.00 0.4 7.0 12:05p N
10 53.4 59.2 2:20p 48.2 4:30a 11.6 0.0 0.10 0.4 10.0 9:30p N
11 56.5 62.1 2:55p 51.1 3:10a 8.5 0.0 0.00 1.6 16.0 2:35p ESE
12 61.2 68.6 2:45p 57.2 7:05a 4.2 0.4 0.00 0.6 8.0 12:05a E
13 58.2 62.1 12:15p 54.4 8:10a 6.8 0.0 0.01 0.6 10.0 3:05p E
14 52.0 57.8 2:05p 46.8 12:00m 13.0 0.0 0.02 1.3 15.0 2:35p NW
15 47.6 55.1 1:45p 41.9 8:00a 17.4 0.0 0.00 1.3 16.0 4:15a N
16 44.6 55.1 2:20p 38.0 7:00a 20.4 0.0 0.01 0.7 12.0 12:05p NW
17 47.0 58.0 2:50p 38.2 1:40a 18.0 0.0 0.00 0.8 20.0 8:55p E
18 51.7 56.2 1:40p 48.5 2:05a 13.3 0.0 0.30 1.8 18.0 9:55a ESE
19 51.6 59.6 2:55p 46.8 4:10a 13.4 0.0 0.00 0.4 11.0 3:30p N
20 50.2 61.0 3:10p 43.6 6:30a 14.8 0.0 0.02 0.3 11.0 3:30p S
21 51.4 58.7 12:45p 45.1 3:25a 13.6 0.0 0.00 1.8 19.0 12:55p ESE
22 50.7 58.4 12:30p 43.5 12:00m 14.3 0.0 1.00 2.3 27.0 9:50a S
23 44.1 52.2 3:05p 39.5 3:55a 20.9 0.0 0.02 0.6 11.0 2:45p NW
24 45.0 50.2 1:15p 39.2 1:15a 20.0 0.0 0.12 0.2 7.0 12:05p E
25 48.5 51.9 3:25p 44.3 7:25a 16.5 0.0 0.05 2.5 16.0 10:25a E
26 47.0 54.8 2:00p 39.3 11:30p 18.0 0.0 0.02 1.5 14.0 1:30p NW
27 43.1 56.2 2:55p 34.7 7:15a 21.9 0.0 0.00 0.8 13.0 3:05p NW
28 44.2 58.9 3:20p 35.0 6:40a 20.8 0.0 0.00 0.5 10.0 1:45p NW
29 48.4 56.5 1:30p 41.2 12:05a 16.6 0.0 0.37 1.1 12.0 7:55p ESE
30 48.7 57.0 2:55p 42.1 11:55p 16.3 0.0 0.01 1.3 14.0 3:00a NW
31 48.0 61.5 3:00p 40.2 7:35a 17.0 0.0 0.01 0.4 10.0 12:35p NW
-------------------------------------------------------------------------------------
51.2 68.6 12 34.7 27 429.5 0.4 7.64 1.2 31.0 7 ESE
Max >= 90.0: 0
Max <= 32.0: 0
Min <= 32.0: 0
Min <= 0.0: 0
Max Rain: 2.17 ON 12/07/19
Days of Rain: 17 (>.01 in) 10 (>.1 in) 2 (>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 ]