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 2013 01
MONTHLY CLIMATOLOGICAL SUMMARY for JAN. 2013
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 42.3 52.0 1:20p 34.4 12:00m 22.7 0.0 0.00 0.9 13.0 1:20p NW
2 41.7 58.1 2:50p 30.3 7:25a 23.3 0.0 0.00 0.2 6.0 1:05p NW
3 41.9 57.8 3:40p 31.2 6:35a 23.1 0.0 0.00 0.2 7.0 1:30p NW
4 44.5 60.2 2:10p 34.3 7:40a 20.5 0.0 0.00 0.1 6.0 12:35p NW
5 46.5 56.0 1:10p 37.8 3:00a 18.5 0.0 0.13 0.8 13.0 11:20a ESE
6 44.4 47.3 12:05a 38.5 12:00m 20.6 0.0 0.07 0.7 13.0 6:35a NW
7 45.6 59.5 3:00p 36.2 6:10a 19.4 0.0 0.01 0.2 8.0 1:05p NW
8 48.6 63.5 2:05p 38.9 7:45a 16.4 0.0 0.01 0.6 11.0 2:35p NW
9 45.4 54.8 2:25p 38.9 7:25a 19.6 0.0 0.03 0.6 17.0 6:05p NW
10 43.0 50.8 2:50p 35.8 12:00m 22.0 0.0 0.01 1.9 19.0 12:40p NW
11 42.1 53.1 1:10p 32.5 7:15a 22.9 0.0 0.00 0.7 14.0 1:35p NW
12 40.3 51.4 3:10p 31.9 7:20a 24.7 0.0 0.01 0.3 8.0 10:45a NW
13 36.9 49.2 2:15p 27.9 7:40a 28.1 0.0 0.00 0.9 13.0 2:35p NW
14 38.4 50.8 3:15p 28.7 6:10a 26.6 0.0 0.00 0.9 13.0 8:35a WNW
15 40.3 55.7 2:55p 29.7 7:00a 24.6 0.0 0.00 0.3 8.0 12:55p NW
16 41.9 58.9 3:15p 30.0 6:50a 23.1 0.0 0.00 0.1 7.0 10:50a NNW
17 45.4 64.8 3:00p 31.8 6:50a 19.6 0.0 0.00 0.3 8.0 3:50p NW
18 46.7 64.0 2:25p 34.3 7:10a 18.3 0.0 0.00 0.3 10.0 10:55a NW
19 47.2 64.7 2:20p 34.9 7:15a 17.8 0.0 0.00 0.3 8.0 1:20p NW
20 47.4 64.8 3:45p 34.4 7:45a 17.6 0.0 0.00 0.4 11.0 2:20p NW
21 47.8 68.1 3:35p 33.1 7:25a 17.5 0.3 0.00 0.1 5.0 11:05a WNW
22 48.7 65.8 2:25p 34.3 6:35a 16.4 0.0 0.00 0.1 6.0 12:05p NW
23 51.7 62.1 12:20p 46.7 6:05a 13.3 0.0 0.08 0.1 6.0 3:15p WNW
24 52.1 54.1 4:45p 49.9 4:45a 12.9 0.0 0.37 0.0 3.0 12:55a W
25 56.2 63.5 2:25p 52.2 5:45a 8.8 0.0 0.01 0.2 8.0 2:00p NNW
26 50.6 59.8 1:15p 40.1 11:30p 14.4 0.0 0.01 0.6 16.0 2:20p NW
27 45.9 55.3 2:25p 38.5 7:15a 19.1 0.0 0.00 1.0 13.0 3:05p NW
28 45.8 57.2 2:00p 37.2 5:50a 19.2 0.0 0.00 0.9 14.0 3:15p NW
29 46.4 57.6 4:25p 37.5 7:20a 18.6 0.0 0.00 0.7 11.0 12:05p NW
30 53.0 67.8 3:05p 42.6 6:10a 12.4 0.4 0.00 0.8 12.0 11:05a NW
31 49.8 66.9 3:30p 37.6 7:00a 15.3 0.1 0.00 0.5 11.0 11:15a NW
-------------------------------------------------------------------------------------
45.8 68.1 21 27.9 13 597.3 0.8 0.74 0.5 19.0 10 NW
Max >= 90.0: 0
Max <= 32.0: 0
Min <= 32.0: 8
Min <= 0.0: 0
Max Rain: 0.37 ON 01/24/13
Days of Rain: 5 (>.01 in) 2 (>.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 ]