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 2011 09
MONTHLY CLIMATOLOGICAL SUMMARY for SEP. 2011
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 66.3 85.7 3:05p 50.8 5:35a 4.6 5.8 0.00 0.6 11.0 3:05p N
2 70.7 93.4 3:20p 53.9 6:50a 3.2 8.9 0.01 0.6 10.0 1:25p NNE
3 66.5 81.8 1:50p 53.9 5:25a 3.6 5.1 0.00 0.7 10.0 3:45p N
4 65.2 76.8 3:40p 59.2 6:50a 2.8 3.1 0.00 1.0 10.0 12:25p NNW
5 65.7 79.9 3:30p 57.5 12:00m 3.1 3.8 0.00 0.7 11.0 4:15p N
6 69.3 91.6 2:40p 53.5 2:30a 4.1 8.4 0.00 0.4 11.0 4:45p NE
7 72.8 93.6 2:55p 54.4 7:10a 2.8 10.6 0.00 0.6 11.0 5:10p NW
8 65.2 83.2 4:45p 53.6 5:55a 4.1 4.4 0.00 0.7 8.0 12:30p NW
9 69.7 87.0 3:05p 54.8 1:45a 3.5 8.1 0.00 0.6 16.0 9:40p NNW
10 71.1 89.3 1:20p 59.8 7:00a 1.1 7.2 0.00 0.9 11.0 2:10p NW
11 66.7 81.4 2:45p 58.9 6:00a 2.1 3.8 0.00 0.8 12.0 5:15p NNE
12 67.4 78.1 12:40p 59.9 1:10a 1.6 4.0 0.00 0.8 11.0 1:00p NNW
13 68.8 83.2 5:15p 60.2 1:25a 1.7 5.5 0.00 0.6 8.0 2:00p NNW
14 64.9 77.7 1:50p 59.0 3:05a 2.9 2.8 0.00 0.9 11.0 3:50p NNW
15 63.9 80.7 1:55p 55.0 6:35a 4.0 2.9 0.00 0.9 14.0 2:25p ESE
16 62.5 78.6 2:20p 50.1 6:40a 5.8 3.3 0.00 0.8 14.0 3:50p NW
17 63.0 81.4 4:25p 47.0 7:05a 6.3 4.3 0.00 0.7 11.0 3:35p NW
18 69.2 91.0 4:55p 50.8 6:40a 4.4 8.6 0.00 0.5 10.0 1:30p NNW
19 74.6 95.4 4:00p 56.0 7:05a 2.0 11.6 0.00 0.5 11.0 1:45p NNW
20 75.8 96.8 3:20p 58.9 7:05a 0.9 11.7 0.00 0.5 10.0 4:30p NNW
21 73.2 95.4 3:00p 55.1 7:15a 2.2 10.5 0.00 0.4 8.0 3:05p N
22 70.6 89.0 5:05p 55.4 6:35a 2.5 8.1 0.00 0.4 7.0 1:55p N
23 73.4 92.7 2:25p 57.0 7:00a 1.9 10.3 0.00 0.4 8.0 3:00p NNE
24 67.2 77.7 12:10p 59.9 12:00m 1.2 3.3 0.00 1.1 12.0 12:50p NNW
25 64.2 72.5 1:35p 57.5 12:00m 2.6 1.8 0.00 0.6 10.0 1:35p NW
26 63.3 79.2 4:45p 49.2 6:50a 5.5 3.8 0.00 0.9 12.0 4:20p NW
27 68.1 87.8 5:05p 51.7 6:20a 4.1 7.2 0.00 0.4 10.0 1:30p NW
28 75.4 96.6 1:55p 58.4 7:05a 1.7 12.1 0.00 0.5 10.0 3:20p NNE
29 69.3 82.4 2:30p 59.0 7:25a 1.3 5.6 0.00 0.7 10.0 1:45p NNW
30 64.8 77.9 2:50p 56.7 6:55a 3.2 3.0 0.00 1.2 14.0 3:00p ESE
-------------------------------------------------------------------------------------
68.3 96.8 20 47.0 17 90.8 189.6 0.01 0.7 16.0 9 NNW
Max >= 90.0: 9
Max <= 32.0: 0
Min <= 32.0: 0
Min <= 0.0: 0
Max Rain: 0.01 ON 09/02/11
Days of Rain: 0 (>.01 in) 0 (>.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 ]