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 2015 12
MONTHLY CLIMATOLOGICAL SUMMARY for DEC. 2015
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 47.7 62.9 3:30p 36.2 7:30a 17.3 0.0 0.00 0.1 6.0 10:40a N
2 48.8 61.2 2:55p 40.6 3:05a 16.2 0.0 0.00 0.1 7.0 2:55p N
3 52.1 62.0 10:20a 42.2 12:30a 12.9 0.0 0.39 1.8 31.0 12:05p S
4 49.3 61.0 1:30p 40.8 7:05a 15.7 0.0 0.01 0.2 8.0 11:00a N
5 49.2 59.6 2:35p 39.2 7:15a 15.8 0.0 0.01 0.4 17.0 10:55p S
6 59.4 70.3 11:55a 53.6 3:20a 6.3 0.7 0.00 1.2 16.0 12:30a S
7 55.3 62.6 3:20p 49.9 11:50p 9.7 0.0 0.00 0.1 6.0 1:45p N
8 55.4 62.3 2:10p 47.7 4:15a 9.6 0.0 0.01 0.1 8.0 2:35p NNW
9 59.9 72.1 3:25p 51.7 7:40a 6.3 1.2 0.00 0.1 7.0 11:55a E
10 56.5 62.9 2:10p 49.6 10:55p 8.5 0.0 0.25 0.6 14.0 3:55a W
11 50.4 57.2 2:15p 44.2 7:00a 14.6 0.0 0.10 1.1 14.0 6:20p NW
12 50.2 59.6 2:25p 39.6 7:10a 14.8 0.0 0.00 0.5 11.0 12:55p NW
13 49.7 55.7 10:05a 45.1 10:45p 15.3 0.0 0.48 2.3 25.0 10:10a NW
14 46.3 53.9 2:45p 36.2 7:35a 18.7 0.0 0.00 1.8 18.0 1:35p NW
15 44.1 54.7 2:45p 36.0 12:00m 20.9 0.0 0.00 1.0 17.0 1:25p NW
16 44.7 60.1 1:20p 33.4 7:30a 20.3 0.0 0.00 0.3 8.0 2:40p WNW
17 46.6 60.1 1:35p 36.2 6:05a 18.4 0.0 0.00 0.1 7.0 12:30p N
18 49.9 62.4 12:10p 38.3 6:15a 15.1 0.0 0.16 1.2 18.0 4:50p ESE
19 48.7 55.0 12:50p 39.6 10:30p 16.3 0.0 0.23 0.5 12.0 1:35p WNW
20 46.2 54.2 1:45p 37.0 5:15a 18.8 0.0 0.01 2.0 20.0 9:55p ESE
21 55.1 60.1 1:35p 49.9 3:25a 9.9 0.0 0.50 0.3 11.0 4:20a ESE
22 55.8 58.6 12:30p 49.6 11:40p 9.2 0.0 0.38 0.6 13.0 4:25a NW
23 49.7 56.6 1:25p 40.3 11:15p 15.3 0.0 0.00 2.0 18.0 4:45a NW
24 43.9 51.1 12:05p 36.6 11:30p 21.1 0.0 0.20 0.4 14.0 2:55p W
25 41.9 51.6 12:15p 35.9 11:55p 23.1 0.0 0.01 0.5 12.0 12:00p NW
26 40.9 52.3 2:20p 33.7 6:50a 24.1 0.0 0.00 0.6 14.0 11:30a NW
27 39.5 48.6 3:30p 29.1 7:05a 25.5 0.0 0.02 0.0 7.0 1:05p NNE
28 42.2 48.6 1:05p 36.6 11:50p 22.8 0.0 0.09 0.5 11.0 2:55a NW
29 42.0 55.9 3:00p 33.2 7:40a 23.0 0.0 0.01 0.1 8.0 1:20p NW
30 44.7 58.0 1:30p 34.3 4:30a 20.3 0.0 0.00 0.1 11.0 8:15p NW
31 43.7 53.2 2:05p 35.6 11:55p 21.3 0.0 0.00 0.3 11.0 9:15a NW
-------------------------------------------------------------------------------------
48.7 72.1 9 29.1 27 507.1 1.9 2.86 0.7 31.0 3 NW
Max >= 90.0: 0
Max <= 32.0: 0
Min <= 32.0: 1
Min <= 0.0: 0
Max Rain: 0.50 ON 12/21/15
Days of Rain: 11 (>.01 in) 8 (>.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 ]