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 2007 11
MONTHLY CLIMATOLOGICAL SUMMARY for NOV. 2007
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 57.3 73.3 3:35p 50.5 8:05a 8.7 1.0 0.00 0.3 10.0 1:35p NW
2 58.7 76.5 3:45p 44.8 7:30a 8.7 2.3 0.00 0.5 11.0 12:25p NW
3 60.9 79.0 3:20p 47.1 6:00a 7.6 3.5 0.00 0.5 10.0 11:45a NW
4 59.6 78.3 2:25p 45.1 6:25a 8.2 2.9 0.00 0.3 10.0 1:50p NW
5 55.9 72.5 1:55p 43.5 6:45a 10.2 1.1 0.00 0.3 8.0 2:10p N
6 54.6 67.9 1:50p 45.8 12:00m 10.5 0.1 0.00 0.2 6.0 1:50p SSE
7 53.9 68.9 2:00p 44.3 1:50a 11.3 0.3 0.00 0.2 7.0 3:00p NW
8 53.7 59.8 1:15p 50.5 5:05a 11.3 0.0 0.00 0.1 7.0 1:15p ESE
9 54.1 67.4 2:40p 45.1 6:20a 11.0 0.0 0.00 0.2 8.0 3:10p NW
10 55.9 66.6 12:15p 44.3 3:55a 9.2 0.1 0.17 0.6 12.0 2:40p ESE
11 54.5 64.7 2:05p 43.6 12:00m 10.5 0.0 0.16 1.0 17.0 2:30p NW
12 54.4 73.3 1:25p 40.1 5:35a 11.8 1.2 0.00 0.3 10.0 3:25p N
13 59.0 74.0 1:55p 47.4 4:45a 7.6 1.6 0.00 0.5 12.0 2:10p NW
14 60.3 75.6 2:20p 50.1 5:55a 6.8 2.2 0.01 0.9 16.0 10:20a NW
15 58.9 74.9 1:15p 48.5 6:50a 7.6 1.5 0.00 0.3 12.0 2:50p N
16 57.2 66.6 2:25p 52.3 3:05a 7.8 0.0 0.00 0.2 8.0 11:55a NW
17 55.7 69.6 11:55a 46.1 6:40a 9.9 0.6 0.00 0.5 12.0 1:05p NW
18 56.9 67.6 2:00p 46.7 7:00a 8.3 0.2 0.01 0.4 8.0 1:05p NW
19 55.4 68.9 12:05p 44.6 11:10p 9.7 0.2 0.00 0.4 11.0 1:35p NW
20 50.1 62.9 2:25p 41.3 6:20a 14.9 0.0 0.01 0.9 13.0 10:30a NW
21 48.8 64.5 2:35p 38.0 7:05a 16.2 0.0 0.00 0.7 13.0 11:15a NW
22 48.5 64.2 1:20p 36.5 6:15a 16.5 0.0 0.00 0.7 13.0 2:05p NW
23 49.4 67.6 2:45p 36.5 4:55a 15.8 0.2 0.00 1.0 14.0 12:35p WNW
24 49.9 67.6 12:30p 36.5 6:55a 15.2 0.1 0.00 0.1 7.0 12:35p SW
25 49.4 60.2 3:00p 41.9 11:45p 15.6 0.0 0.00 0.0 6.0 10:40a NNW
26 49.6 66.8 1:40p 37.8 7:05a 15.5 0.0 0.00 0.1 7.0 2:05p NNE
27 50.2 63.7 2:15p 41.1 7:05a 14.8 0.0 0.00 0.7 13.0 3:00p NW
28 52.8 65.0 1:15p 41.1 1:25a 12.2 0.0 0.00 1.3 19.0 10:45a NW
29 48.0 63.1 1:35p 37.6 6:40a 17.0 0.0 0.00 0.6 11.0 2:10p NNW
30 44.1 56.6 2:20p 36.0 3:45a 20.9 0.0 0.00 0.4 10.0 11:05a NW
-------------------------------------------------------------------------------------
53.9 79.0 3 36.0 30 351.3 19.1 0.36 0.5 19.0 28 NW
Max >= 90.0: 0
Max <= 32.0: 0
Min <= 32.0: 0
Min <= 0.0: 0
Max Rain: 0.17 ON 11/10/07
Days of Rain: 2 (>.01 in) 2 (>.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 ]