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 03
MONTHLY CLIMATOLOGICAL SUMMARY for MAR. 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 47.6 61.5 1:05p 34.1 6:15a 17.4 0.0 0.01 1.3 19.0 11:05p ESE
2 53.1 62.4 1:55p 46.8 2:10a 11.9 0.0 0.11 3.1 25.0 12:10p E
3 55.2 69.8 12:55p 45.2 12:00m 10.0 0.2 0.00 0.5 13.0 3:40p NW
4 53.3 67.6 12:55p 40.5 6:40a 11.9 0.3 0.01 0.2 12.0 4:40p NW
5 56.6 68.4 12:35p 43.8 6:35a 8.9 0.5 0.01 0.5 10.0 12:25p NNW
6 55.9 61.5 1:20p 53.2 4:35a 9.1 0.0 0.06 2.2 18.0 12:55p ESE
7 52.3 58.7 2:20p 48.6 7:20a 12.7 0.0 0.00 4.0 24.0 12:55p NW
8 54.7 61.3 3:05p 49.2 5:30a 10.3 0.0 0.01 0.5 12.0 12:05p NW
9 55.3 68.1 1:55p 44.9 6:45a 10.0 0.3 0.00 0.2 8.0 9:40a NW
10 54.2 66.8 12:00p 43.3 6:30a 10.9 0.1 0.01 0.6 13.0 3:10p NW
11 51.4 60.9 3:40p 42.2 6:15a 13.6 0.0 0.00 1.2 16.0 12:35p NW
12 51.7 62.7 2:25p 40.5 6:20a 13.3 0.0 0.00 0.6 11.0 3:00p NW
13 55.5 68.3 2:45p 47.0 3:40a 9.2 0.1 0.03 1.7 21.0 9:55a ESE
14 59.7 66.8 1:40p 54.1 11:40p 5.4 0.1 0.00 0.7 12.0 1:15p ESE
15 59.3 70.3 1:55p 52.8 7:10a 6.4 0.7 0.03 0.9 14.0 1:45p ESE
16 53.6 59.3 4:50p 44.6 12:00m 11.4 0.0 0.12 1.3 13.0 1:25p NW
17 49.5 64.5 3:55p 37.6 7:20a 15.5 0.0 0.00 0.7 12.0 4:40p W
18 48.0 53.9 12:05p 42.9 11:55p 17.0 0.0 0.70 3.0 29.0 11:20a ESE
19 45.7 48.2 12:45p 42.2 1:05a 19.3 0.0 2.01 2.5 25.0 11:05p ESE
20 49.7 56.6 2:35p 43.9 11:45p 15.3 0.0 0.37 2.7 29.0 12:10a ESE
21 47.9 57.3 4:10p 41.5 12:00m 17.1 0.0 0.17 1.0 16.0 3:05p W
22 48.9 60.5 2:20p 40.6 12:40a 16.1 0.0 0.14 2.1 21.0 2:25p ESE
23 49.4 56.7 2:45p 45.7 11:25p 15.6 0.0 0.59 1.8 21.0 3:50a S
24 47.4 52.2 2:25p 43.8 10:00p 17.6 0.0 2.06 2.6 30.0 12:15p S
25 49.8 57.5 2:25p 43.5 2:30a 15.2 0.0 0.03 1.1 19.0 12:05p ESE
26 50.4 56.7 2:30p 44.8 11:55p 14.6 0.0 0.53 1.5 14.0 1:55p W
27 51.8 65.3 2:00p 39.8 7:10a 13.2 0.0 0.00 0.9 13.0 7:50p W
28 53.3 64.3 3:00p 45.4 7:35a 11.7 0.0 0.00 1.6 14.0 2:30p NW
29 54.7 67.9 4:35p 42.1 6:40a 10.7 0.4 0.00 1.6 20.0 3:10p NW
30 62.4 80.3 5:10p 47.0 6:10a 6.7 4.1 0.00 1.1 12.0 5:10p NW
31 70.7 84.7 4:00p 57.0 3:55a 1.6 7.3 0.00 1.1 13.0 3:00p WSW
-------------------------------------------------------------------------------------
53.2 84.7 31 34.1 1 379.6 14.1 7.00 1.4 30.0 24 NW
Max >= 90.0: 0
Max <= 32.0: 0
Min <= 32.0: 0
Min <= 0.0: 0
Max Rain: 2.06 ON 03/24/11
Days of Rain: 14 (>.01 in) 10 (>.1 in) 2 (>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 ]