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 02
MONTHLY CLIMATOLOGICAL SUMMARY for FEB. 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 56.3 73.7 2:50p 45.2 7:35a 10.2 1.6 0.00 1.1 12.0 12:05p NW
2 58.8 74.6 3:20p 47.7 5:25a 8.1 1.9 0.00 1.4 13.0 3:15p NW
3 62.0 75.3 3:30p 51.9 2:20a 5.5 2.6 0.00 1.8 13.0 12:00p SW
4 59.8 73.3 3:45p 50.2 7:15a 7.2 2.0 0.00 1.2 11.0 11:00a SW
5 58.6 76.7 2:35p 46.8 7:05a 8.9 2.6 0.00 0.9 12.0 1:50p SW
6 58.1 72.5 2:45p 47.7 7:10a 8.5 1.6 0.00 1.9 13.0 2:00p SW
7 56.2 72.1 3:35p 44.6 7:05a 10.1 1.3 0.00 0.9 10.0 1:05p SW
8 56.6 74.6 3:35p 44.1 7:20a 10.1 1.8 0.00 0.9 12.0 1:50p WSW
9 58.9 77.6 3:20p 45.7 7:10a 9.0 2.9 0.00 1.0 10.0 11:40a WSW
10 55.3 69.4 3:30p 43.9 7:25a 10.3 0.6 0.00 1.9 17.0 3:45p NW
11 49.6 62.3 2:25p 39.1 7:25a 15.4 0.0 0.00 1.7 27.0 4:00p SW
12 47.4 57.2 3:00p 39.6 5:30a 17.6 0.0 0.00 1.6 14.0 11:30a NW
13 48.1 61.8 4:10p 37.8 6:50a 16.9 0.0 0.00 1.3 11.0 12:00p NW
14 49.1 62.6 3:20p 39.1 5:45a 15.9 0.0 0.00 1.2 13.0 7:25p NW
15 48.0 61.8 3:35p 38.6 5:00a 17.0 0.0 0.00 1.6 16.0 1:55p NW
16 48.9 66.1 3:50p 35.9 7:05a 16.2 0.1 0.00 1.1 10.0 12:25p N
17 51.8 68.9 3:15p 39.5 6:40a 13.7 0.5 0.00 1.1 12.0 2:10p N
18 48.4 57.6 1:25p 43.1 11:20p 16.6 0.0 0.00 3.7 24.0 2:35p NW
19 44.4 51.1 2:00p 37.2 12:00m 20.5 0.0 0.00 4.1 21.0 12:15a NW
20 41.7 54.5 2:15p 31.2 6:30a 23.3 0.0 0.00 1.1 14.0 3:20p W
21 44.6 55.9 2:40p 35.6 3:35a 20.4 0.0 0.00 1.2 14.0 2:55p N
22 45.1 54.1 2:10p 37.3 1:30a 19.9 0.0 0.01 3.9 27.0 10:55a NW
23 41.6 52.5 3:35p 32.1 6:35a 23.4 0.0 0.00 2.1 17.0 12:00p NW
24 42.8 56.7 2:15p 29.7 6:05a 22.2 0.0 0.00 2.0 17.0 1:30p NW
25 46.3 61.2 2:50p 35.5 7:00a 18.6 0.0 0.00 1.0 13.0 2:55p N
26 46.2 53.8 2:00p 41.1 10:10p 18.8 0.0 0.22 1.7 21.0 6:20p NW
27 44.9 54.8 3:25p 36.0 12:00m 20.1 0.0 0.01 1.5 17.0 9:10a SW
28 45.5 58.3 3:05p 31.8 5:50a 19.5 0.0 0.05 1.6 13.0 9:50p S
-------------------------------------------------------------------------------------
50.5 77.6 9 29.7 24 423.9 19.5 0.29 1.7 27.0 11 NW
Max >= 90.0: 0
Max <= 32.0: 0
Min <= 32.0: 3
Min <= 0.0: 0
Max Rain: 0.22 ON 02/26/18
Days of Rain: 2 (>.01 in) 1 (>.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 ]