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 2007 01
MONTHLY CLIMATOLOGICAL SUMMARY for JAN. 2007
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.4 61.8 3:05p 37.2 7:35a 16.6 0.0 0.00 0.4 13.0 11:15a NW
2 50.4 64.7 3:40p 42.5 6:25a 14.6 0.0 0.00 0.0 3.0 9:40a NNE
3 51.9 63.4 1:00p 39.3 3:45a 13.1 0.0 0.01 0.0 11.0 2:05p NW
4 49.9 55.0 12:05a 41.5 10:45p 15.1 0.0 0.05 2.5 22.0 11:25a NW
5 46.0 53.6 2:50p 38.5 12:00m 19.0 0.0 0.00 2.7 24.0 11:45a NW
6 44.4 55.4 2:15p 32.5 7:20a 20.6 0.0 0.00 0.8 17.0 1:20p NW
7 49.2 62.7 2:15p 39.5 2:30a 15.8 0.0 0.00 0.5 14.0 11:00a NW
8 55.4 66.6 3:20p 41.8 11:40p 9.7 0.1 0.00 0.8 14.0 11:55a NW
9 48.7 66.1 3:00p 37.8 5:25a 16.3 0.0 0.00 0.0 8.0 12:15p NW
10 44.0 58.3 12:30p 36.0 12:00m 21.0 0.0 0.00 0.3 16.0 4:05p W
11 41.5 51.0 2:20p 31.2 7:45a 23.5 0.0 0.00 0.6 13.0 3:40p NW
12 36.9 46.0 1:35p 28.1 7:25a 28.1 0.0 0.00 1.8 21.0 9:55a N
13 36.1 49.5 2:45p 25.1 6:15a 28.9 0.0 0.00 0.4 14.0 11:30a NW
14 37.5 48.9 2:05p 26.4 6:00a 27.5 0.0 0.00 0.5 14.0 1:40p NW
15 38.7 53.3 2:30p 27.3 7:20a 26.3 0.0 0.00 0.3 11.0 11:40a NW
16 39.9 52.5 1:50p 28.1 7:15a 25.1 0.0 0.04 0.1 10.0 1:00p N
17 43.6 56.2 2:15p 34.1 12:00m 21.4 0.0 0.01 0.3 12.0 3:00a NW
18 43.7 60.9 2:20p 30.4 5:40a 21.3 0.0 0.00 0.2 10.0 3:30p NW
19 45.0 62.0 1:20p 34.1 6:35a 20.0 0.0 0.00 0.1 5.0 10:00a NNE
20 45.4 62.9 2:55p 34.6 5:50a 19.6 0.0 0.00 0.3 11.0 3:35p NW
21 50.7 62.9 3:15p 38.8 12:45a 14.3 0.0 0.00 1.7 18.0 9:20a NW
22 45.8 60.2 1:55p 34.6 7:25a 19.2 0.0 0.00 0.2 10.0 2:05p NW
23 44.8 61.6 2:45p 32.2 6:10a 20.2 0.0 0.00 0.1 7.0 2:30p NNW
24 45.9 64.5 2:10p 32.5 6:55a 19.1 0.0 0.00 0.2 7.0 2:10p N
25 44.6 57.6 3:30p 34.7 3:30a 20.2 0.0 0.00 0.1 6.0 1:40p N
26 46.8 56.2 1:10p 40.8 8:10a 18.2 0.0 0.04 0.1 6.0 12:15p NW
27 50.0 58.7 3:20p 45.7 12:00m 15.0 0.0 0.41 0.3 11.0 4:10p NW
28 49.1 58.3 2:40p 42.5 11:15p 15.9 0.0 0.10 0.1 7.0 11:05a ESE
29 50.1 63.5 2:05p 40.5 6:55a 14.9 0.0 0.01 0.2 13.0 1:00p NNW
30 49.0 66.4 1:30p 38.2 7:30a 16.0 0.0 0.00 0.5 12.0 2:35p E
31 49.1 57.6 1:30p 41.9 12:20a 15.9 0.0 0.00 0.4 11.0 2:40p NW
-------------------------------------------------------------------------------------
45.9 66.6 8 25.1 13 592.4 0.1 0.67 0.5 24.0 5 NW
Max >= 90.0: 0
Max <= 32.0: 0
Min <= 32.0: 7
Min <= 0.0: 0
Max Rain: 0.41 ON 01/27/07
Days of Rain: 5 (>.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 ]