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 2018 12
MONTHLY CLIMATOLOGICAL SUMMARY for DEC. 2018
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 48.8 56.5 2:45p 42.8 12:05a 16.2 0.0 0.13 1.0 19.0 10:40a W
2 46.1 55.1 3:10p 38.9 7:25a 18.9 0.0 0.00 0.5 8.0 1:30a N
3 48.3 57.2 3:00p 41.1 7:10a 16.7 0.0 0.00 0.2 6.0 11:10a N
4 49.2 52.2 2:00p 46.5 6:50a 15.8 0.0 0.05 0.0 5.0 11:55a NW
5 51.5 56.0 1:40p 48.0 4:35a 13.5 0.0 0.11 0.7 10.0 1:50p NW
6 51.6 59.2 2:55p 45.4 11:50p 13.4 0.0 0.05 0.7 11.0 2:00p NW
7 49.3 60.7 3:45p 42.2 4:50a 15.7 0.0 0.01 0.3 7.0 11:10a NW
8 48.5 60.1 2:55p 41.2 6:55a 16.5 0.0 0.02 0.3 7.0 12:45p N
9 46.9 54.7 2:30p 40.6 6:15a 18.1 0.0 0.02 0.4 11.0 1:25p N
10 47.5 55.0 2:25p 42.6 5:25a 17.5 0.0 0.02 0.4 11.0 12:00p NW
11 45.1 57.3 3:25p 37.6 7:35a 19.8 0.0 0.02 0.2 8.0 3:35p NNW
12 50.9 59.8 2:55p 42.5 11:55p 14.0 0.0 0.00 1.3 18.0 11:20a NW
13 47.5 60.5 2:10p 38.8 6:55a 17.5 0.0 0.00 0.4 10.0 11:15a N
14 54.2 62.4 2:45p 42.8 1:10a 10.8 0.0 0.00 1.9 29.0 9:20a E
15 53.2 64.3 1:45p 45.5 5:55a 11.8 0.0 0.00 0.7 12.0 12:50p ESE
16 56.6 60.9 1:15p 53.8 12:05a 8.4 0.0 0.30 2.7 18.0 7:25p ESE
17 51.8 58.6 2:40p 45.7 12:00m 13.2 0.0 0.53 0.2 10.0 12:05a NNW
18 49.2 60.1 3:05p 41.5 7:20a 15.7 0.0 0.01 0.1 6.0 11:00a NE
19 50.3 57.6 3:50p 44.1 6:40a 14.7 0.0 0.01 0.3 11.0 10:25a NW
20 48.3 53.3 3:05p 42.2 7:30a 16.7 0.0 0.02 0.0 8.0 2:55p NW
21 53.5 60.2 1:25p 49.2 3:35a 11.5 0.0 0.00 0.5 10.0 3:25p NW
22 50.1 59.0 2:35p 43.6 7:50a 14.9 0.0 0.00 0.6 12.0 9:45a NW
23 50.6 60.7 2:50p 43.8 12:05a 14.4 0.0 0.00 0.3 8.0 12:55p N
24 52.5 61.6 1:00p 46.0 2:15a 12.5 0.0 0.29 0.7 19.0 5:00p W
25 50.5 58.7 2:25p 44.9 8:05a 14.5 0.0 0.07 2.3 21.0 1:55a NW
26 46.5 56.6 2:30p 38.6 7:25a 18.5 0.0 0.00 0.3 11.0 2:25p N
27 50.7 57.6 2:15p 45.7 12:05a 14.3 0.0 0.00 3.6 22.0 2:20p NW
28 46.1 55.7 2:55p 38.9 11:40p 18.9 0.0 0.00 1.6 14.0 12:30p NW
29 45.6 59.3 2:40p 36.5 4:00a 19.4 0.0 0.00 0.7 11.0 1:20p NW
30 45.1 57.0 2:45p 36.8 6:55a 19.9 0.0 0.00 0.5 10.0 12:50p N
31 45.4 54.4 1:40p 37.8 12:00m 19.6 0.0 0.00 2.8 22.0 1:05p N
-------------------------------------------------------------------------------------
49.4 64.3 15 36.5 29 483.3 0.0 1.66 0.8 29.0 14 NW
Max >= 90.0: 0
Max <= 32.0: 0
Min <= 32.0: 0
Min <= 0.0: 0
Max Rain: 0.53 ON 12/17/18
Days of Rain: 13 (>.01 in) 5 (>.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 ]