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, 21-Jul-2010 10:54 PM
Google mesomap display
The Affiliated Regional Weather Networks have been quite popular, and now it is possible for you to add a Google map display of conditions from around the world to your own website. We do prefer that the script(s) be used by members who contribute their data to a Regional Weather Network.
This Google Map shows the locations of current affiliated regional weather network member stations.
Green 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).
Click on the home button in the map navigation controls to restore the map to the initial zoom level.
Click on the "Enable clustering" check box to toggle the clustering of stations display.
Affiliated Regional Weather Networks
1930 stations in affiliated networks worldwide as of 2013-05-21 15:03:21 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 4 different basic configurations:
A plugin for the WD/AJAX/PHP templates (USA, Canada, World - English only)
A plugin for the WD/AJAX/PHP multilingual templates (Canada-ML, World-ML)
The PHP versions include two support scripts (get-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 WD/AJAX/PHP multilingual templates (Canada-ML, World-ML) 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|Enable clustering|Enable clustering|
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
Replace the '-your-google-map-api-key-here-' in the main script with your Google Map API Key for your website. Then upload all files from your distribution.zip to your weather website (preserving the directory structure).
You can optionally adjust the initial center point and zoom level of the map by changing the line