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"); ?>
2024: Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec
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 12
MONTHLY CLIMATOLOGICAL SUMMARY for DEC. 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 46.6 56.8 2:05p 39.7 6:50a 18.4 0.0 0.00 1.5 12.0 12:20p WSW
2 48.4 60.1 2:10p 38.7 5:15a 16.6 0.0 0.00 2.7 19.0 1:05p NW
3 48.9 64.5 1:40p 38.7 6:10a 16.1 0.0 0.00 1.6 14.0 2:15p SW
4 48.4 61.4 1:05p 38.8 7:05a 16.6 0.0 0.00 0.8 8.0 1:35p N
5 50.1 56.4 1:20p 42.1 10:30p 14.8 0.0 0.00 0.8 8.0 11:25a SSW
6 44.1 54.3 1:05p 36.1 7:15a 20.9 0.0 0.00 1.3 16.0 3:00p SSW
7 45.2 52.4 2:20p 35.1 6:05a 19.8 0.0 0.08 1.7 24.0 11:20p SSW
8 55.6 62.0 2:05p 48.5 12:05a 9.4 0.0 0.13 3.3 22.0 12:15a ESE
9 58.5 64.7 1:00p 53.0 6:00a 6.5 0.0 0.00 1.8 12.0 9:35a ESE
10 58.0 63.3 11:05a 50.7 11:50p 7.0 0.0 0.29 1.0 11.0 11:05a E
11 49.4 54.7 12:20p 42.7 6:30a 15.6 0.0 0.01 0.6 6.0 10:20a SW
12 49.1 55.9 12:25p 45.9 2:00a 15.9 0.0 0.00 0.5 10.0 1:35p S
13 53.3 61.8 2:50p 47.5 12:05a 11.7 0.0 0.00 1.1 11.0 11:45a ESE
14 56.9 62.6 11:05a 51.3 12:05a 8.1 0.0 0.00 2.6 19.0 1:40p S
15 57.0 59.7 12:50p 50.0 12:00m 8.0 0.0 1.63 5.4 34.0 2:00p E
16 47.9 54.6 1:20p 38.1 12:00m 17.1 0.0 0.01 3.3 19.0 3:00a NW
17 39.9 51.0 1:35p 33.1 7:05a 25.0 0.0 0.00 1.1 8.0 12:40p WSW
18 39.2 50.4 1:50p 30.8 6:10a 25.8 0.0 0.00 1.8 14.0 10:00a WSW
19 39.7 53.7 1:50p 29.5 6:05a 25.3 0.0 0.00 1.3 10.0 11:25a S
20 43.0 56.8 2:55p 32.6 5:50a 22.0 0.0 0.00 1.3 10.0 12:25p SW
21 50.7 62.9 2:15p 40.0 12:20a 14.3 0.0 0.00 1.8 12.0 10:15a SW
22 48.4 63.7 2:05p 38.4 7:35a 16.5 0.0 0.00 1.3 10.0 10:25a SW
23 47.8 54.9 1:30p 39.3 11:55p 17.2 0.0 0.51 3.2 21.0 9:25a E
24 42.5 51.5 3:10p 36.1 7:10a 22.4 0.0 0.00 2.1 18.0 11:50a W
25 40.5 52.1 12:30p 32.9 3:55a 24.5 0.0 0.00 1.2 12.0 1:25p SW
26 39.5 51.9 3:00p 31.2 5:10a 25.5 0.0 0.00 1.1 10.0 3:25p SW
27 41.8 55.5 2:40p 32.6 7:00a 23.2 0.0 0.00 1.2 11.0 12:15p SW
28 43.2 58.2 3:00p 32.6 6:50a 21.8 0.0 0.00 1.8 13.0 10:05a SW
29 44.8 59.5 2:15p 34.0 6:55a 20.2 0.0 0.00 1.2 7.0 11:45a SSW
30 46.7 59.4 2:45p 39.8 12:30a 18.3 0.0 0.00 0.7 6.0 2:50p SW
31 44.2 54.7 12:45p 37.1 6:50a 20.8 0.0 0.00 1.1 12.0 1:05p SSW
-------------------------------------------------------------------------------------
47.4 64.7 9 29.5 19 545.3 0.0 2.66 1.7 34.0 15 SW
Max >= 90.0: 0
Max <= 32.0: 0
Min <= 32.0: 3
Min <= 0.0: 0
Max Rain: 1.63 ON 12/15/16
Days of Rain: 5 (>.01 in) 4 (>.1 in) 1 (>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 ]