They're free, but use at your own risk
The scripts in PHP and Perl 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 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 WXForum.net , Weather-Watch, Ambient and Weather-Matrix forums as they become available.
This page was updated
Thursday, 03-Jul-2008 3:07 PM
Weather Display/PHP/AJAX Website Template Set
This template set is based on the original HTML-only Carterlake WD templates with the addition of AJAX real-time updates using Weather Display clientraw.txt and a full-PHP modular website design incorporating the TNETweather modular site design.The templates use a modified weather-screen.css to implement a fixed-width (800px) website, but the original floating-width design may also be used. Using PHP allows this template to require only two files to be uploaded through Weather-Display for symbolic substitution for weather conditions. The AJAX JavaScript reads the near realtime clientraw.txt conditions file to provide dynamic updates to many of the weather conditions variables.
The templates are grouped into three catagories based on functionality of the included support scripts and location:
- USA-template (for USA, Puerto Rico and Virgin Islands) demo
- Canada-template (for Canada) demo
- World-template (for non-USA, non-Canada) demo
- World-Multilingual template (for non-USA, non-Canada) demo
(Note: the Canada, World, and World-ML Demo sites are using live weather data from my weather station which uses English units (°F, mph, inHg, in) while the demo templates are set in Metric units (°C, kmh, hPa, mm). Since there is no conversion done on the PHP pages for units, the Canada and World demos will display values which are really English values but with the Metric legend.
The AJAX updates will show the correct values and units for all the AJAX-enabled variables.
The time-format for the AJAX updates will always show the time format of clientraw.txt, which for my system is USA-format (am/pm) instead of 24hr time.
With your weather station set for the correct units, and the correct settings in the Settings.php file, you should see consistent units with both PHP and AJAX on your website.
Please follow the links below for information, download and installation/configuration guidance.
Version history
- Version 1.33 - 04-Jul-2008 (World-ML only) Updated wxastronomy.php for non-English astronomy date processing. Updated language-nl.js and language-nl.zip language pack with corrections from Jozef. Also update all language packs for 'Scattered clouds' with same words as 'Sc' entry.
- Version 1.32 - 03-Jul-2008 (World-ML only) Updated Italian language plugin, Updated Settings.php for language selection 'stick' without theme-changer enabled, Updated include-wxhistory.php for missing month name translation.
- Version 1.32 - 02-Jul-2008 (World-ML only) Updated Greek language plugin (for Minimum temperature in wxhistory.php translation) and Danish, Dutch, Italian, Norwegian, and Swedish language plugins for missing & in one menu item translation.
- Version 1.31 - 01-Jul-2008 (World-ML only) Updated Greek and Spanish language plugins.
- Version 1.30 - 30-Jun-2008 (World-ML only) Updated include-wxhistory.php for one date translation problem.
- Version 1.29 - 30-Jun-2008 Initial release of World-ML package with documentation. Supported languages include English, Danish, Dutch, Finnish, Greek, Norwegian, and Swedish with 5 additional languages in development (Italian, Spanish, French, German and Portuguese) to be released as language packs.
- Version 1.28 - 12-May-2008 ajaxWDwx.js and ajax-dashboard.php with HeatColorWord mod(MChallis), plaintext-parser.php V1.10 fix → arrow (Canada, USA, World)
- Version 1.27 - 26-Apr-2008 Updated quake scripts to fix UTC-to-local time issue on some webservers: quake-Canada.php V1.01 (Canada), quake-USA.php V1.08 (USA), quake-WORLD.php V1.07 and quake-UK.php V1.03 (World)
- Version 1.26 - 21-Apr-2008 (Canada, USA, World) Updated include-wxhistory.php to V1.04 with 'frost fix' (MChallis)
- Version 1.25 - 19-Apr-2008 (Canada, USA, World) Updated CSS set to V1.08(16Apr) in prep for multilingual template set; Updated include-wxhistory.php to V1.03 (08-Apr) (MChallis)
- Version 1.24 - 16-Apr-2008 (USA only) fixed wxindex.php validation HTML error for rss-advisory.php warning.
- Version 1.23 - 13-Apr-2008 (Canada, USA, World) Updated ajax-gizmo.php to use $SITE['WXtags'] setting (MChallis)
- Version 1.22 -12-Apr-2008 (USA only) updated wxindex.php for summary rss-advisory.php warnings. Fixed addon wxcontact.php page for IIS (MChallis)
- Version 1.21 - 07-Apr-2008 (USA only) updated radar-status.php to V1.03 (fixed $SITE['showradarstatus'] handling)
- Version 1.20 - 05-Apr-2008 - (Canada, USA, World) Updated include-wxhistory.php Version 1.01 from Mike Challis for wxhistory.php page [Supports WD V10.37j+]; Updated comments in wxlive.php, wxmesomap.php; (USA only) rss-top-warning.php V1.04 - fixed HTML comment
- Version 1.19 - 30-Mar-2008 - (World only) Updated WU-forecast.php to V1.05 with C/F/Both icon temp display option
- Version 1.18 - 29-Mar-2008 - (Canada, USA, World) Updated flyout-menu.xml for XHTML validation, Style Switcher V1.07 (mocha CSS, include-style-switcher.php), ajax-dashboard.php (debug features, UV color fix, testtags.php location fix), ajaxWDwx.js (UV color fix), wxhistory.php (added floatTop.js, ajax-images/toparrow.gif for floating scroll to top per Kevin, Jozef and Mike)
- Version 1.17 - 25-Mar-2008 - Corrected the HTML comments on some error message text for rss-advisory.php and rss-top-warning.php (USA only)
- Version 1.16 -23-Mar-2008 - corrected testtags.txt icon[28] to day_clear.gif in classic-icons section (Canada, USA, World)
- Version 1.15 - 19-Mar-2008 - updated ec-forecast.php to V2.05 (Canada only)
- Version 1.14 - 19-Mar-2008 - Flyout-menu system added, updated weather-screen-*-*.css and include-style-switcher.php to V1.08 (Mike Challis) (Canada, USA, World)
- Version 1.13 - 17-Mar-2008 - updated rss-top-warning.php to V1.02 and rss-advisory.php to V1.08 (USA only).
- Version 1.12 - 15-Mar-2008 - added Mike Challis' wxhistory.php, include-history.php and updated menubar.php (Canada, USA, World). Updated GR3-radar-inc.php to V1.01 w/ IIS fix included (USA only) .
- Version 1.11 - 13-Mar-2008 - added Mike Challis' wxlive.php (WDL), wxmesomap.php (MML) and support scripts swfobject.js, wdl-mml-forcesize.js to Canada, USA and World distributions
- Version 1.10 - 12-Mar-2008 - World Template - added wxquakeUK.php, quake-UK.php, wxquake.php, quake-WORLD.php to template set. Canada Template - added wxquake.php, quake-Canada.php. USA template - updated wxquake.php, quake-USA.php (quake-USA-test.php is discontinued).
- Version 1.09 - 11-Mar-2008 - updated *.css and include-style-changes.php for 8 new Themes from Mike Challis (his version 1.05) - changed menubar.php, ajaxWDwx.js for .png windroses, updated ajax-dashboard.php for better look with dark styles and fixed time formatting issue, updated wxastronomy.php to use dynamic moonicon.gif
- Version 1.08 - 10-Mar-2008 - updated USA wxindex.php, wxadvisory.php for correct include-mode for rss-advisory.php (thanks Mike!)
- Version 1.07 - 09-Mar-2008 - added 'Iced Tea' Theme and updated include-style-changer.php (V1.03+) from Mike Challis
- Version 1.06 - 08-Mar-2008 - ajaxWDwx.js updated to fix flashing icon issue, Mike Challis' Theme Switcher integrated (his V1.03), wxastronomy.php page supports non-English Solar/Lunar dates, USA new wxgr3radar.php and wxquake.php with support scripts.
- Version 1.05 - 05-Mar-2008 - fixed regex in trends-inc.txt for dual formats of weather records
- Version 1.04 - 05-Mar-2008 - corrected wxastronomy.php page, added new trends-inc.txt with PHP built-in formatting for wxtrends.php, updated Settings.php to support new trends-inc.txt
- Version 1.03 - 03-Mar-2008 - updated get-UV-forecast-inc.php to be timezone $SITE['tz'] aware and return values based on local date
- Version 1.02 - 02-Mar-2008 - updated menubar.php for non-link list items and sample external-links section
- Version 1.01 - 01-Mar-2008 - updated thermometer.php/Settings for $SITE['clientrawfile'] config and updated wxastronomy.php for Southern Hemisphere support and updated get-UV-forecast-inc.php
- Version 1.00 - 29-Feb-2008 - Initial release
Acknowledgements and thanks!
Websites using the Carterlake-WD/PHP/AJAX templates
- Viewbank, Victoria, Australia
- Ekeren, Belgium
- Ekeren, Belgium
- Kampenhout, Belgium
- Maple Bay, Vancouver Island, British Columbia, Canada
- Fredericton, New Brunswick, Canada
- High Park Village, Ontario, Canada
- St. Peter Port, Guernsey, Channel Islands
- Sortsø Strand, Denmark
- Søborg - Copenhagen, Denmark
- Sciez, Haute-Savoie, France
- Thessaloniki, Central Macedonia, Greece
- Real de Catorce, Mexico
- Amstelveen, Netherlands
- Doornenburg, Gemeente Lingewaard, Netherlands
- Kerikeri, Bay of Islands, New Zealand
- Rolleston, Canterbury, New Zealand
- Evans Bay, Wellington, New Zealand
- Berdal, Norway
- Mosjøen, Kulstaddalen, Norway
- Ålesund, Norway
- Knjazevac, Serbia
- Balboa Park - San Diego, California, USA
- San Diego, California, USA
- Santa Cruz, California, USA
- Porterville, Tulare County, California, USA
- Denver, Colorado, USA
- Branford, Connecticut, USA
- Canton, Georgia, USA
- Maui, Hawaii, USA
- Blackfoot, Idaho, USA
- Stronghurst, Illinois, USA
- Evansville, Indiana, USA
- Olin, Iowa, USA
- Shreveport, Louisiana, USA
- Hollywood - St. Mary's County, Maryland, USA
- Perry Hall, Maryland, USA
- Auburn, Massachusetts, USA
- Big Bay, Michigan, USA
- Walker, Michigan, USA
- Pittsburg, New Hampshire, USA
- South Erin, New York, USA
- Westmoreland, New York, USA
- NC 50 & 210 Highway, Benson, North Carolina, USA
- Bay Tree Lakes, Bladen County, North Carolina, USA
- Cleveland, Ohio, USA
- Elkton, Oregon, USA
- Rio Grande Valley, Mission, Texas, USA
- Long Beach, Washington, USA
- De Soto, Wisconsin, USA
- Porth, Newquay, Cornwall, United Kingdom
- Desborough, United Kingdom
- Harwich, Essex, United Kingdom
- Elgin, Morayshire, Scotland, United Kingdom
- Swansea, Wales, United Kingdom
55 Carterlake-WD/PHP/AJAX template sites listed.
If you would like your site listed please contact me with your location and weather website URL.