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 2009 12
MONTHLY CLIMATOLOGICAL SUMMARY for DEC. 2009
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 48.2 64.5 2:50p 38.3 7:10a 16.8 0.0 0.00 0.2 6.0 11:40a NW
2 44.3 54.5 2:40p 37.2 2:30a 20.7 0.0 0.00 0.2 8.0 1:20p N
3 46.3 60.2 3:20p 36.5 12:00m 18.7 0.0 0.00 0.4 11.0 2:15p SW
4 44.8 58.6 2:35p 34.7 3:45a 20.2 0.0 0.00 0.2 7.0 12:45p N
5 45.0 54.2 12:20p 36.0 12:00m 20.0 0.0 0.00 0.5 13.0 11:25a NW
6 41.8 49.5 1:45p 31.0 5:05a 23.2 0.0 0.02 0.6 12.0 9:00p ESE
7 39.8 45.4 11:40a 32.2 11:45p 25.2 0.0 0.42 1.1 17.0 3:55a NW
8 37.7 47.6 12:20p 28.8 7:15a 27.3 0.0 0.01 0.3 7.0 12:50p N
9 37.8 47.3 2:50p 28.2 6:55a 27.2 0.0 0.00 0.1 6.0 9:35a N
10 43.3 48.9 1:45p 40.1 12:05a 21.7 0.0 0.34 0.2 6.0 5:20a NNW
11 47.7 54.4 7:40p 41.3 3:30a 17.3 0.0 0.24 0.6 16.0 7:35p ESE
12 52.8 57.5 2:10p 48.9 10:55p 12.2 0.0 0.75 2.2 22.0 6:45p ESE
13 51.3 55.7 2:00p 48.8 5:25a 13.6 0.0 0.29 0.4 12.0 1:50a E
14 50.0 58.3 2:40p 42.2 11:45p 15.0 0.0 0.00 0.1 6.0 9:20a E
15 51.4 58.7 11:50a 42.2 2:40a 13.6 0.0 0.00 1.6 13.0 8:10p ESE
16 55.7 63.4 2:10p 46.1 11:55p 9.3 0.0 0.00 2.2 20.0 1:55a ESE
17 52.4 62.7 1:45p 45.4 11:50p 12.6 0.0 0.00 0.3 7.0 12:30p W
18 51.8 65.3 1:15p 43.8 7:25a 13.2 0.0 0.01 0.6 11.0 1:25p NW
19 48.1 58.4 2:05p 41.9 6:55a 16.9 0.0 0.01 0.3 18.0 7:15a NW
20 51.7 69.8 2:30p 41.6 1:30a 13.7 0.4 0.03 0.5 11.0 10:30a ESE
21 51.1 59.9 12:15p 46.4 11:50p 13.9 0.0 0.16 0.4 24.0 12:00m W
22 47.2 53.2 1:40p 42.9 7:25a 17.8 0.0 0.00 5.1 25.0 12:10a NW
23 46.0 59.5 2:10p 33.5 7:05a 19.0 0.0 0.00 0.8 12.0 12:50a NW
24 45.8 60.1 1:30p 34.9 7:30a 19.2 0.0 0.00 0.6 14.0 12:40p NW
25 44.0 60.9 2:30p 32.9 6:50a 21.0 0.0 0.00 0.1 6.0 1:20p NW
26 47.4 56.9 12:55p 37.6 12:15a 17.6 0.0 0.13 0.7 14.0 2:20p S
27 49.1 60.1 2:05p 41.2 7:05a 15.9 0.0 0.01 0.2 14.0 11:15a NW
28 46.9 50.2 12:55p 41.1 12:00m 18.1 0.0 0.07 0.3 10.0 11:00a NW
29 46.5 56.3 1:50p 35.9 7:25a 18.5 0.0 0.03 0.7 20.0 10:00p ESE
30 50.8 58.9 12:30p 45.4 7:35a 14.2 0.0 0.00 0.6 11.0 2:00a NW
31 52.0 62.4 1:35p 46.1 7:45a 13.0 0.0 0.00 0.3 10.0 2:50p ESE
-------------------------------------------------------------------------------------
47.4 69.8 20 28.2 9 546.6 0.4 2.52 0.7 25.0 22 NW
Max >= 90.0: 0
Max <= 32.0: 0
Min <= 32.0: 3
Min <= 0.0: 0
Max Rain: 0.75 ON 12/12/09
Days of Rain: 11 (>.01 in) 7 (>.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 ]