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 2005 11
MONTHLY CLIMATOLOGICAL SUMMARY for NOV. 2005
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 58.3 73.9 2:05p 46.1 6:20a 8.2 1.5 0.00 0.3 8.0 11:10a N
2 55.9 65.9 12:25p 46.1 11:20p 9.1 0.0 0.00 0.4 11.0 10:40a NW
3 55.2 68.8 1:40p 43.5 6:15a 9.9 0.1 0.00 0.7 11.0 3:20p ESE
4 56.4 67.6 2:45p 45.0 12:00m 8.7 0.1 0.00 0.6 14.0 3:20p ESE
5 53.4 66.8 12:50p 42.0 6:25a 11.6 0.1 0.00 0.4 8.0 1:00p N
6 57.8 70.0 2:05p 48.3 12:05a 7.6 0.4 0.00 0.1 6.0 9:15a ENE
7 59.9 70.5 1:20p 54.8 1:25a 5.4 0.4 0.06 1.2 16.0 8:55p ESE
8 56.3 61.6 2:30p 50.9 8:10a 8.7 0.0 0.28 1.0 14.0 12:50p NW
9 58.7 69.6 12:55p 50.2 12:00m 6.6 0.3 0.00 0.3 14.0 2:35p S
10 55.8 67.8 2:05p 48.3 11:45p 9.3 0.1 0.01 0.1 7.0 11:20a NW
11 56.1 66.8 1:10p 45.8 3:15a 9.0 0.0 0.00 0.3 10.0 12:20p NW
12 56.0 66.8 2:05p 46.9 11:45p 9.1 0.1 0.00 0.4 10.0 11:05a NW
13 55.1 68.8 2:15p 44.2 6:45a 10.3 0.4 0.01 0.4 14.0 2:50p NW
14 58.6 72.7 2:35p 48.6 6:40a 7.8 1.4 0.00 0.7 13.0 10:45a NW
15 62.0 74.2 12:55p 49.2 12:00m 5.1 2.0 0.00 1.6 17.0 2:20p NW
16 57.7 75.1 2:15p 45.3 6:30a 9.1 1.8 0.00 0.0 3.0 10:35a NW
17 58.1 75.8 1:55p 44.6 7:05a 9.0 2.2 0.00 0.0 2.0 12:20p NW
18 58.2 77.5 1:45p 45.3 6:50a 9.2 2.4 0.00 0.0 2.0 1:50p NW
19 56.7 76.3 1:45p 43.9 7:05a 10.4 2.0 0.00 0.4 10.0 11:25a NW
20 54.4 73.2 2:30p 40.8 6:05a 12.0 1.4 0.00 0.2 7.0 1:55p NW
21 54.1 72.3 1:10p 41.2 6:55a 12.1 1.2 0.00 0.0 0.0 --- ---
22 54.6 72.8 2:10p 41.5 7:00a 11.6 1.2 0.00 0.1 6.0 1:35p NW
23 54.7 72.3 3:10p 42.6 6:45a 11.3 1.0 0.00 0.1 8.0 12:00p NW
24 53.0 63.6 3:10p 42.8 6:15a 12.0 0.0 0.02 0.0 6.0 12:15p ENE
25 56.4 63.4 11:35a 47.8 11:10p 8.6 0.0 0.04 1.8 16.0 3:00p NW
26 47.7 57.9 1:05p 39.0 6:45a 17.3 0.0 0.00 1.4 14.0 9:50a NW
27 44.8 59.1 1:35p 34.4 7:00a 20.2 0.0 0.00 0.4 10.0 1:40p NW
28 51.0 65.7 2:10p 39.2 1:50a 14.0 0.0 0.15 1.9 24.0 10:10p ESE
29 56.1 63.3 11:10a 50.3 11:40p 8.9 0.0 0.02 0.6 12.0 12:15a ESE
30 54.8 62.3 2:15p 45.2 6:00a 10.2 0.0 0.00 1.0 19.0 9:10p E
-------------------------------------------------------------------------------------
55.6 77.5 18 34.4 27 302.3 20.1 0.59 0.5 24.0 28 NW
Max >= 90.0: 0
Max <= 32.0: 0
Min <= 32.0: 0
Min <= 0.0: 0
Max Rain: 0.28 ON 11/08/05
Days of Rain: 6 (>.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 ]