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"); ?>
2024: Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec
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 2014 02
MONTHLY CLIMATOLOGICAL SUMMARY for FEB. 2014
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 46.1 61.5 3:15p 34.9 7:20a 18.9 0.0 0.00 0.4 10.0 1:00p SSE
2 45.5 51.6 3:00p 39.9 12:55a 19.4 0.0 0.26 1.1 14.0 10:10a ESE
3 44.5 55.3 12:55p 37.2 12:00m 20.5 0.0 0.01 0.8 16.0 2:20p NW
4 45.0 56.9 1:25p 35.3 3:45a 20.0 0.0 0.00 0.5 10.0 1:55p NW
5 46.4 59.9 1:45p 35.8 4:35a 18.6 0.0 0.04 0.5 11.0 2:15p NW
6 49.3 54.4 1:10p 45.4 7:00a 15.7 0.0 0.44 1.0 12.0 12:55a ESE
7 50.7 53.5 11:05a 46.0 7:25a 14.3 0.0 0.21 2.0 20.0 4:40p ESE
8 57.6 65.6 12:45p 52.5 12:05a 7.4 0.0 0.08 3.4 24.0 2:00a E
9 58.9 64.8 3:10p 56.6 7:05a 6.1 0.0 0.01 1.7 17.0 8:40p ESE
10 54.3 61.8 2:35p 47.0 10:35p 10.7 0.0 0.01 0.5 11.0 2:10p NW
11 50.8 63.9 2:40p 40.8 6:10a 14.2 0.0 0.00 0.3 10.0 3:05p NW
12 52.2 65.6 2:15p 42.3 3:05a 12.8 0.0 0.01 0.3 8.0 2:15p N
13 56.6 71.3 3:00p 45.2 5:50a 9.6 1.1 0.00 0.5 10.0 1:30p NW
14 57.3 62.0 4:40p 52.6 12:30a 7.7 0.0 0.02 0.2 11.0 12:20p NW
15 55.3 65.2 1:55p 48.3 6:00a 9.7 0.0 0.01 0.4 11.0 11:10p ESE
16 55.0 65.2 1:05p 43.5 12:00m 10.0 0.0 0.03 0.6 12.0 2:25p NW
17 49.3 62.0 2:35p 38.9 7:05a 15.7 0.0 0.01 0.8 13.0 11:20a NW
18 51.9 65.8 3:45p 41.3 3:55a 13.1 0.0 0.00 0.5 13.0 12:10p NW
19 54.1 65.3 2:45p 44.2 2:00a 10.9 0.0 0.04 1.1 12.0 11:50a NW
20 53.2 67.6 3:20p 40.1 5:35a 12.1 0.3 0.00 0.8 11.0 11:40a NW
21 55.3 74.2 2:50p 40.8 6:30a 11.3 1.6 0.00 0.7 12.0 11:35a NW
22 55.0 73.0 1:55p 41.8 7:05a 11.5 1.5 0.00 0.6 10.0 2:00p NW
23 54.6 72.1 2:20p 42.3 1:50a 11.6 1.2 0.00 0.4 11.0 2:40p NW
24 57.8 76.3 1:50p 42.2 7:00a 9.8 2.6 0.00 0.5 11.0 3:20p N
25 55.2 70.4 1:10p 44.5 3:50a 10.5 0.7 0.00 0.7 13.0 8:45p ESE
26 55.9 61.5 12:10p 52.3 12:05a 9.1 0.0 1.48 2.3 21.0 8:30p ESE
27 57.5 64.2 2:45p 51.6 3:50a 7.5 0.0 0.15 1.1 19.0 12:00m ESE
28 54.7 60.7 12:10a 51.3 11:50p 10.3 0.0 1.96 2.5 29.0 3:20a ESE
-------------------------------------------------------------------------------------
52.9 76.3 24 34.9 1 349.0 9.0 4.77 0.9 29.0 28 NW
Max >= 90.0: 0
Max <= 32.0: 0
Min <= 32.0: 0
Min <= 0.0: 0
Max Rain: 1.96 ON 02/28/14
Days of Rain: 11 (>.01 in) 6 (>.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 ]