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 2021 05
MONTHLY CLIMATOLOGICAL SUMMARY for MAY. 2021
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 59.1 73.9 2:55p 48.9 6:20a 7.4 1.5 0.00 1.7 17.0 4:50p W
2 60.4 76.3 3:15p 46.4 6:30a 7.5 2.9 0.00 1.3 18.0 4:00p N
3 65.3 83.8 4:25p 48.3 6:30a 5.6 5.9 0.00 1.2 16.0 4:20p N
4 67.9 85.7 2:55p 53.6 6:15a 3.6 6.5 0.00 1.1 14.0 3:00p N
5 65.3 84.7 2:30p 51.4 6:20a 4.9 5.1 0.00 1.2 12.0 2:10p N
6 60.5 72.1 3:20p 49.1 6:25a 5.9 1.4 0.00 1.5 14.0 4:10p N
7 59.2 73.2 3:45p 45.4 6:25a 7.6 1.8 0.00 1.4 14.0 1:30p NE
8 65.2 83.6 5:25p 47.3 6:30a 6.0 6.2 0.00 1.1 17.0 4:00p N
9 66.1 82.2 3:50p 51.9 6:20a 4.2 5.3 0.00 1.3 12.0 10:50a N
10 67.9 86.3 4:10p 50.7 6:10a 4.5 7.4 0.00 1.2 14.0 3:40p N
11 67.6 86.3 2:55p 51.7 6:30a 4.0 6.6 0.00 1.2 13.0 3:30p NE
12 64.0 78.6 3:45p 51.4 6:25a 4.7 3.7 0.00 1.3 11.0 4:10p N
13 62.4 75.6 2:50p 55.6 1:05a 4.7 2.1 0.00 1.2 12.0 3:45p N
14 60.3 71.5 2:35p 53.8 7:35a 5.7 1.0 0.00 1.3 12.0 2:25p N
15 58.6 69.3 3:25p 52.3 3:00a 6.9 0.6 0.00 1.1 12.0 2:10a NE
16 60.5 72.0 3:50p 52.2 4:50a 5.8 1.3 0.00 1.5 13.0 10:50a E
17 59.6 70.4 2:55p 52.8 5:55a 6.2 0.8 0.00 1.3 13.0 4:05p N
18 60.3 76.0 2:50p 46.5 6:25a 7.3 2.7 0.00 1.3 13.0 2:25p NE
19 57.1 67.9 1:30p 48.5 6:20a 8.3 0.4 0.00 2.1 18.0 3:15p WSW
20 55.2 66.9 4:00p 44.3 6:15a 10.0 0.2 0.00 2.0 20.0 3:25p W
21 56.9 70.8 3:55p 43.6 6:00a 9.1 1.0 0.00 1.6 17.0 3:40p N
22 58.8 74.9 3:00p 43.8 6:05a 8.4 2.3 0.00 1.4 16.0 2:55p N
23 58.7 69.6 2:45p 47.4 6:05a 7.2 0.9 0.00 1.5 14.0 2:40p N
24 62.4 77.4 3:15p 50.4 2:40a 5.6 3.0 0.00 1.2 14.0 3:40p NE
25 61.8 72.5 3:40p 51.6 5:40a 5.3 2.1 0.00 1.6 17.0 4:05p N
26 61.2 77.0 2:25p 47.6 6:15a 6.8 3.0 0.00 1.3 12.0 1:20p N
27 61.4 74.9 5:30p 46.8 6:20a 6.5 2.9 0.00 1.3 14.0 5:10p N
28 63.2 74.7 2:30p 53.9 5:25a 4.2 2.4 0.00 1.2 13.0 2:55p N
29 60.2 68.9 2:55p 53.2 6:40a 5.5 0.7 0.00 1.3 12.0 2:40p NE
30 66.4 85.7 4:05p 53.3 6:40a 4.2 5.6 0.00 1.1 12.0 3:15p NE
31 70.6 90.3 3:10p 53.5 5:35a 3.3 8.9 0.00 1.1 11.0 3:25p N
-------------------------------------------------------------------------------------
62.1 90.3 31 43.6 21 186.9 96.2 0.00 1.4 20.0 20 N
Max >= 90.0: 1
Max <= 32.0: 0
Min <= 32.0: 0
Min <= 0.0: 0
Max Rain: 0.00 ON 05/01/21
Days of Rain: 0 (>.01 in) 0 (>.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 ]