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.
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
and saratogaWXPHP Twitter account as they become available.
This page was updated
Wednesday, 08-Feb-2017 10:01 PM
Google mesomap display
This Google Map shows the locations of current affiliated regional weather network member stations.
Markers with numbers indicate clusters of stations - click to zoom the map to show station markers.
If you click on a marker for a station, a descriptive window will open and show the station features,
a link to the station's homepage, the regional network affiliations for the station,
and current conditions at the station (where available).
Affiliated Regional Weather Networks
1691 stations in affiliated networks worldwide as of 2017-03-26 10:07:26 UTC
Map data from Affiliated Regional Networks and scripts from
If you have a personal weather station publishing to a personal weather website, you can submit a request to have your
data included in this display by visiting the network for your geography from the list above.
The map package (below) comes in 3 basic configurations:
A plugin for the Saratoga AJAX/PHP templates (V2 and V3 compatible)
The PHP versions include two support scripts (global-links.php and global-conditions-json.php ) to help minimize the access time to draw your map page by caching some files from the Affiliated Regional Weather Networks home site locally on your website. These files are
Starter files of the above are included with the PHP distributions with content that lets you know that the cache file has not been written. Depending on your PHP installation, the above files may need to have permissions set to 666 (write/read by all) in order for the caching to work. If you do a 'view-source' on the PHP page with the scripts in it, it should show any error messages encoutered as HTML comments.
For the plugin for the AJAX/PHP multilingual templates (V2 or V3) you may need to add to your language-LL-local.txt files the translations for:
langlookup|Global Station Map|Global Station Map|
langlookup|Global Station Map of Affiliated Weather Networks|Global Station Map of Affiliated Weather Networks|
langlookup|Weather, Lightning, WebCam|Weather, Lightning, WebCam|
langlookup|Weather, WebCam, Lightning|Weather, WebCam, Lightning|
langlookup|Weather, Lightning|Weather, Lightning|
langlookup|Weather, WebCam|Weather, WebCam|
langlookup|Conditions not available|Conditions not available|
langlookup|About the Global Map|About the Global Map|
langlookup|Affiliated Regional Weather Networks|Affiliated Regional Weather Networks|
Which will allow for the translation of the headings and pop-up station data boxes to language LL. You may also need to
copy wxglobal-en.html to wxglobal-LL.html and translate the text inside from English to language LL so the rest of the page
will display correctly. Be sure to use the correct character set for your page to match the other translation files used
Customize the appropriate page (HTML-only: global-map-sample.html, PHP: global-map-sample.php, Template: wxglobal.php) and upload all files from your distribution.zip to your weather website (preserving the directory structure).
In the PHP versions, if you see words like
Note: this file (name-of-file-here) has not been downloaded by script-name.php yet. Check permissions on the file to allow write all (666)
appearing, it simply means you need to set permissions on the named file so it is writable by PHP .. generally permissions of 666 will work.