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 2010 03
MONTHLY CLIMATOLOGICAL SUMMARY for MAR. 2010
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 53.4 61.3 1:55p 45.4 2:35a 11.6 0.0 0.00 1.0 18.0 1:15p S
2 52.1 59.9 2:35p 44.9 10:10p 12.9 0.0 0.34 1.1 13.0 12:10p ESE
3 48.0 57.0 2:00p 40.6 11:55p 17.0 0.0 0.85 0.9 16.0 2:35p ESE
4 47.2 59.6 1:05p 37.6 6:10a 17.8 0.0 0.01 0.9 13.0 3:25p NW
5 48.8 59.5 2:25p 38.5 6:25a 16.2 0.0 0.00 0.7 11.0 11:50a E
6 53.3 66.3 2:50p 45.4 4:55a 11.7 0.0 0.00 0.6 11.0 12:40p NW
7 50.9 63.1 12:50p 41.3 6:25a 14.1 0.0 0.00 1.4 16.0 1:40p W
8 48.0 55.7 2:20p 42.2 7:20p 17.0 0.0 0.11 1.6 30.0 4:55p W
9 47.0 57.5 2:20p 37.6 6:35a 18.0 0.0 0.01 2.0 19.0 4:40p NW
10 47.4 56.9 2:45p 38.5 6:40a 17.6 0.0 0.17 1.9 16.0 1:50p NW
11 49.1 65.0 2:30p 36.0 6:50a 15.9 0.0 0.00 0.7 10.0 3:15p NW
12 48.7 57.5 11:00a 39.5 3:35a 16.3 0.0 0.43 0.7 17.0 11:00a NW
13 47.5 57.8 2:50p 37.0 6:00a 17.5 0.0 0.01 2.4 20.0 7:50p NW
14 51.6 66.1 3:35p 38.2 4:55a 12.9 0.0 0.00 0.8 14.0 4:25p NW
15 55.9 76.0 3:35p 39.2 7:20a 11.4 2.3 0.00 0.2 12.0 5:40p NW
16 58.3 74.2 4:30p 45.2 7:20a 8.6 1.9 0.00 0.6 11.0 3:15p NNW
17 60.9 76.8 3:50p 48.5 7:30a 6.9 2.9 0.00 0.8 12.0 2:35p NNW
18 60.3 76.3 2:15p 44.6 6:55a 8.3 3.6 0.00 1.2 18.0 3:55p NW
19 64.9 85.5 3:20p 48.2 6:45a 6.0 5.9 0.00 0.6 10.0 5:00p NW
20 56.4 77.7 2:20p 42.1 7:05a 10.2 1.7 0.00 0.6 14.0 3:00p NW
21 56.4 69.8 2:40p 43.6 3:20a 9.2 0.6 0.00 0.9 13.0 3:10p NNW
22 57.6 69.8 3:05p 48.2 6:35a 8.1 0.7 0.00 1.2 16.0 2:40p NW
23 58.6 76.1 2:40p 42.8 6:55a 8.9 2.5 0.00 1.0 13.0 9:35a NW
24 56.1 74.9 2:10p 45.5 7:30a 10.3 1.4 0.01 1.3 18.0 7:05p S
25 54.1 67.3 2:15p 45.4 3:50a 11.0 0.1 0.00 1.3 19.0 4:05p W
26 53.6 67.1 3:20p 41.8 4:00a 11.5 0.2 0.00 0.9 14.0 4:00p NW
27 57.0 76.7 3:20p 39.6 6:25a 10.6 2.6 0.00 0.5 11.0 4:20p NW
28 58.8 80.9 1:50p 43.6 5:20a 9.5 3.2 0.00 0.3 11.0 2:45p NW
29 56.3 71.5 12:50p 45.1 4:45a 9.1 0.4 0.00 0.9 16.0 4:20p ESE
30 54.3 62.7 3:05p 46.7 11:40p 10.7 0.0 0.11 1.2 24.0 6:30a W
31 48.0 60.2 1:00p 41.2 7:15a 17.0 0.0 0.44 1.2 18.0 5:10p S
-------------------------------------------------------------------------------------
53.6 85.5 19 36.0 11 383.8 30.0 2.49 1.0 30.0 8 NW
Max >= 90.0: 0
Max <= 32.0: 0
Min <= 32.0: 0
Min <= 0.0: 0
Max Rain: 0.85 ON 03/03/10
Days of Rain: 7 (>.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 ]