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 2010 01
MONTHLY CLIMATOLOGICAL SUMMARY for JAN. 2010
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 52.3 61.8 3:05p 46.1 1:50a 12.7 0.0 0.00 0.2 8.0 12:00p SE
2 50.7 56.5 11:10a 42.1 11:15p 14.3 0.0 0.00 0.3 8.0 11:50a NW
3 46.2 59.6 1:45p 38.0 7:25a 18.8 0.0 0.01 0.4 10.0 1:50p NW
4 45.4 57.2 2:05p 37.9 7:50a 19.6 0.0 0.01 0.2 8.0 2:35p NW
5 46.1 60.5 1:45p 36.8 6:30a 18.9 0.0 0.00 0.2 7.0 2:40p NW
6 47.6 61.2 1:50p 38.8 4:05a 17.4 0.0 0.01 0.3 7.0 2:45p NW
7 48.0 61.6 2:15p 39.5 6:05a 17.0 0.0 0.00 0.1 6.0 2:45p NW
8 47.7 61.6 2:30p 41.6 7:15a 17.3 0.0 0.00 0.3 16.0 2:35p NW
9 46.5 54.8 3:20p 41.1 11:55p 17.2 0.0 0.01 0.1 5.0 1:10p NW
10 46.7 58.9 3:05p 38.0 6:20a 18.3 0.0 0.01 0.2 6.0 10:35a N
11 50.0 58.1 2:40p 42.9 5:45a 15.0 0.0 0.00 0.4 8.0 9:05p NE
12 56.2 62.0 12:25p 52.5 3:30a 8.8 0.0 0.39 4.4 28.0 10:45p E
13 53.8 62.7 1:40p 45.4 11:50p 11.2 0.0 0.29 0.7 18.0 12:30a W
14 49.0 61.2 1:45p 39.9 7:05a 16.0 0.0 0.01 0.6 12.0 10:55a NNW
15 48.4 60.2 1:05p 39.9 6:20a 16.6 0.0 0.00 0.3 10.0 1:20p NE
16 52.2 63.1 12:35p 39.9 7:35a 12.8 0.0 0.00 1.7 16.0 3:35p ESE
17 52.5 56.0 12:05a 49.4 2:00p 12.5 0.0 0.09 4.1 20.0 4:15a ESE
18 52.7 54.5 11:30a 50.7 6:25a 12.3 0.0 1.49 4.1 29.0 9:30a SSW
19 50.6 56.2 2:10p 47.0 9:40p 14.4 0.0 2.46 3.9 40.0 8:20a ESE
20 48.9 52.5 11:40a 45.7 8:10p 16.1 0.0 2.83 4.3 38.0 9:15a SE
21 44.9 48.6 12:40a 41.2 9:45p 20.1 0.0 0.78 1.3 19.0 6:40p NW
22 43.3 53.3 3:35p 38.2 11:05p 21.7 0.0 0.33 0.7 11.0 12:35p ESE
23 46.0 56.6 3:10p 38.2 12:10a 19.0 0.0 0.27 0.3 8.0 2:30p ESE
24 47.3 52.8 3:10p 38.6 1:45a 17.7 0.0 0.03 1.5 14.0 9:35a ESE
25 52.8 58.0 2:00p 49.9 8:00a 12.2 0.0 0.06 4.0 24.0 4:00p ESE
26 50.8 54.2 10:20a 44.2 11:00p 14.2 0.0 0.23 1.1 17.0 8:35a NW
27 47.5 55.3 3:00p 41.5 7:30a 17.5 0.0 0.00 0.1 6.0 11:50a WNW
28 48.6 60.9 2:15p 39.3 6:50a 16.4 0.0 0.01 0.2 6.0 11:15a NNW
29 49.9 67.1 12:50p 41.2 4:10a 15.1 0.0 0.17 1.1 16.0 10:45a ESE
30 48.4 60.5 1:40p 40.2 7:25a 16.6 0.0 0.01 0.3 7.0 12:55p NW
31 49.9 62.1 2:25p 41.3 7:10a 15.1 0.0 0.00 0.3 8.0 3:15p NW
-------------------------------------------------------------------------------------
49.1 67.1 29 36.8 5 492.8 0.0 9.50 1.2 40.0 19 ESE
Max >= 90.0: 0
Max <= 32.0: 0
Min <= 32.0: 0
Min <= 0.0: 0
Max Rain: 2.83 ON 01/20/10
Days of Rain: 13 (>.01 in) 10 (>.1 in) 3 (>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 ]