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 2017 02
MONTHLY CLIMATOLOGICAL SUMMARY for FEB. 2017
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 51.5 66.0 1:00p 41.1 1:40a 13.5 0.0 0.03 2.8 28.0 4:00p SSW
2 55.2 60.7 2:15p 49.4 3:00a 9.8 0.0 0.38 3.1 19.0 10:50p ESE
3 56.8 61.5 1:05p 52.8 9:40p 8.2 0.0 1.06 2.8 27.0 3:45a ESE
4 53.8 61.8 1:50p 45.1 11:00p 11.2 0.0 0.02 1.5 12.0 2:05p ESE
5 51.9 59.5 2:40p 44.6 12:30a 13.1 0.0 0.75 3.1 33.0 5:20p ESE
6 55.5 60.2 12:05p 52.5 12:05a 9.5 0.0 0.64 2.2 16.0 10:35p ESE
7 59.7 64.8 3:10p 54.7 12:05a 5.3 0.0 1.35 3.2 28.0 6:15a S
8 60.5 65.2 1:10p 58.0 1:55a 4.5 0.0 0.15 3.4 16.0 11:40a E
9 59.4 62.6 10:25a 56.6 11:35p 5.6 0.0 1.34 3.9 30.0 8:55a S
10 55.5 61.8 3:10p 45.4 12:00m 9.5 0.0 0.11 1.1 13.0 3:40p N
11 48.6 59.0 2:50p 40.1 7:30a 16.4 0.0 0.00 1.7 14.0 10:30a SW
12 50.2 64.7 3:25p 40.5 2:50a 14.8 0.0 0.00 1.5 13.0 11:55a SW
13 50.8 63.9 3:00p 39.3 7:25a 14.2 0.0 0.00 0.8 10.0 4:40p NNW
14 53.8 68.8 3:30p 41.9 6:15a 11.5 0.4 0.00 1.0 8.0 1:00p W
15 57.0 70.6 3:15p 46.4 5:30a 8.4 0.4 0.00 2.0 16.0 4:15p E
16 57.7 65.6 1:40p 51.7 11:20p 7.3 0.0 0.26 3.0 35.0 2:50a S
17 54.1 56.6 1:30p 52.0 7:30p 10.9 0.0 1.43 3.5 22.0 11:50a E
18 51.3 55.3 12:05p 44.9 11:45p 13.7 0.0 0.12 2.7 20.0 3:05p NW
19 50.7 53.9 1:35p 45.1 12:10a 14.3 0.0 0.01 3.9 25.0 4:15p ESE
20 55.6 58.6 4:50p 52.3 12:35a 9.4 0.0 3.06 4.1 36.0 5:30p E
21 53.2 60.7 2:15p 44.6 11:20p 11.8 0.0 0.45 1.8 22.0 1:25a SSW
22 47.0 54.8 12:25p 41.3 9:05p 18.0 0.0 0.00 2.6 18.0 11:10a NW
23 44.6 54.1 1:40p 36.6 12:00m 20.3 0.0 0.00 2.5 18.0 2:35p NW
24 43.4 55.4 12:45p 33.1 7:10a 21.6 0.0 0.00 1.6 12.0 1:45p SW
25 46.1 58.1 2:30p 35.8 5:50a 18.9 0.0 0.00 1.2 14.0 4:15p SW
26 47.1 58.1 1:10p 36.5 7:05a 17.9 0.0 0.00 1.4 16.0 3:30p WSW
27 46.4 55.1 2:05p 37.6 12:00m 18.6 0.0 0.00 1.7 16.0 3:30p W
28 45.6 58.6 3:05p 35.2 6:45a 19.4 0.0 0.00 1.9 13.0 4:30p NW
-------------------------------------------------------------------------------------
52.2 70.6 15 33.1 24 357.6 0.8 11.16 2.4 36.0 20 ESE
Max >= 90.0: 0
Max <= 32.0: 0
Min <= 32.0: 0
Min <= 0.0: 0
Max Rain: 3.06 ON 02/20/17
Days of Rain: 15 (>.01 in) 13 (>.1 in) 5 (>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 ]