Free Weather Website Templates

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.
RSS feed for Scripts Updates 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

If you find one or more of the scripts useful to you, please consider making a donation to help offset the routine expenses of operation of this website.
Thanks for your kind support!

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 Weather-Watch forums and saratogaWXPHP Twitter account as they become available.

This page was updated Wednesday, 30-Mar-2022 8:45 AM

PHP/AJAX Website Template Sets

This template set is based on the original HTML-only Carterlake WD templates with the addition of AJAX real-time updates 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 or full-width design with built-in color/width style changer. Using PHP allows this template to require only one file to be uploaded through your weather software for symbolic substitution for weather conditions. The AJAX JavaScript reads a separate, frequently uploaded, conditions file produced by your weather software to dynamically update selected parts of the HTML on the pages to reflect really current conditions at your location.

The templates are grouped into three basic versions based on geographic location, and include the support scripts needed for that geography:

  • USA-template (for USA, Puerto Rico and Virgin Islands)
  • Canada-Multingual template English/French (for Canada)
  • World-Multilingual template (for non-USA, non-Canada)

Plugins are available for weather station software:

  • Network (requires userid on AND DeviceID AND apiKey)
  • Cumulus 1 or CumulusMX
  • Meteobridge
  • Meteohub
  • Virtual Weather Station
  • Weather-Display
  • WeatherCat (Version V0.95, Build 152 or later) (Successor product to Lightsoft Weather Center (LWC))
  • WeatherLink
  • (requires a userid/password on AND DeviceID, Key for station)
  • WeatherSnoop (Version 2.1.1 or later)
  • New!WeeWX (Version 4.5.0 or later)
  • wview
  • WxSolution

A complete template consists of a Base (determined by your geographical location) and a Plugin for your specific weather software.

Main features of the template set:

  • Modular structure for display pages on website with primary areas (top, header, sidebar, footer) controlled by included parts so global changes can be easily made to one file and shown on all pages in the site.
  • A 4-level CSS-based flyout-menu system controlled by specification in one XML file.
  • Built-in theme switcher allowing optional viewer control over website color scheme and wide/narrow aspect (with user preferences remembered by browser cookie)
  • Built-in multilingual translation capability for single-phrase lookup (English to target language) and entire-page fixed content translation.
  • Integrated support scripts for forecasts, alerts, and earthquake information appropriate to the geography selected.
  • Built-in optional debugging displays for remote site support.
  • Validated XHTML 1.0-Transitional HTML and CSS 2.1
Base Templates (images shown with VWS-plugin active)
USA template demo - click to see Canada template demo - click to see World template demo - click to see

USA languages included:
(but may add language plugins)

Canada languages included:
English, Français,

World languages included:
English, Afrikaans, български език, Català, Dansk, Nederlands, Suomi, Français, Deutsch, Ελληνικά, Italiano, עִבְרִית. Norsk, Polski, Português, limba română, Español, Svenska, Slovenščina

Additional live sample (Base-USA) sites with other weather software plugins:
CumulusMX | Meteobridge | WeeWX | |


Please follow the links below for information, download and installation/configuration guidance.

Version history (latest 20 updates)

  • Version 3.392 - 18-May-2023 (Base-*) update wxforecast.php V1.09 to add styling for EC 'advisory' alert display;
    (Base-Canada) update ec-forecast.php V5.06 to add 'advisory' alert display same as 'statement' type display
  • Version 3.391 - 13-May-2023 (Base-*) update check-fetch-times.php V1.53 for additional USA checks;
    (Base-USA) update nws-alerts.php V1.44, nws-alerts-log.php V1.02, wxnws-alerts-log.php V1.02 for fixes to optional alerts logging
  • Version 3.390 - 24-Apr-2023 (Base-World) update meteoalarm-codenames.json V1.01, meteoalarm-geocode-aliases.php V1.01 for changes to EMMA_IDs by
  • Version 3.389 - 03-Apr-2023 (Base-*) update ajax-dashboard.php V1.34, wxforecast.php V1.08, check-fetch-times.php V1.52 to remove DarkSky forecasts (API shutdown 31-May-2023);
    (Base-World) update Settings.php V1.08 to remove DarkSky variables, update wxindex.php V1.02 to fix loading of dashboard to use $SITE variable
  • Version 3.388 - 08-Mar-2023 (Base-World) update get-meteoalarm-warning-inc.php V3.16 to fix for changed API URL and increase timeout to 30 seconds (Thanks to Wim of
  • Version 3.387 - 06-Mar-2023 (Base-World) update OWM-forecast.php V2.02 to add diagnostic messages for unsuccessful API query returns
  • Version 3.386 - 24-Feb-2023 (Base-World) update PW-forecast.php V2.52 to remove conditions display 'n miles/km from' message as always zero from API
  • Version 3.385 - 23-Feb-2023 (Base-World) update VC-forecast.php V2.02 to fix Conditions distance display for km or miles and time displays on hourly/conditions
  • Version 3.384 - 18-Feb-2023 (CU-plugin,VWS-plugin,WD-plugin,WEEWX-plugin,WL-plugin,WV-plugin) update include-NOAA-report.php V2.10 to fix Deprecated errata introduced with the WD code merge in V2.09
  • Version 3.383 - 17-Feb-2023 (Base-*,CU-plugin,VWS-plugin,WD-plugin,WEEWX-plugin,WL-plugin,WV-plugin) update wxnoaaclimatereports.php V1.03, include-NOAA-report.php V2.09 to add NOAA report displays for Weather-Display, check-fetch-times.php V1.51 and flyout-menu.xml to enable display for WD.
  • Version 3.382 - 13-Feb-2023 (Base-Canada) update wxecradar-list-inc.php V1.04 and radar/CASMA*.gif overlays (thanks M. Romer) for Lac Castor / Mont Apica(near Saguenay) site.
  • Version 3.381 - 09-Feb-2023 (Base-*) update check-fetch-times.php V1.50, wxforecast.php V1.07;
    (Base-Canada) update ec-forecast.php V5.05, ec-lightning.php V1.05;
    (Base-World) update VC-forecast.php V2.01, added Settings-{ID}-forecast-README.txt files for setup of all forecast scripts.
  • Version 3.380 - 07-Feb-2023 (Base-World) add OWM-forecast.php V2.01, OWM-forecast-lang.php V1.07, VC-forecast.php V2.00, VC-forecast-lang.php V1.07;
    (Base-*) update ajax-dashboard.php V1.33, wxforecast.php V1.06. check-fetch-times.php V1.49 to support new OpenWeatherMap and VisualCrossing forecast scripts.
  • Version 3.379 - 19-Jan-2023 (Base-World) update PW-forecast.php V2.51 to display ampm or 24h on timeline based on $timeFormat/$SITE['timeFormat']
  • Version 3.378 - 18-Jan-2023 (Base-*) update ajax-dashboard.php V1.32, wxforecast.php V1.05, check-fetch-times.php V1.48 to support Pirateweather forecast script and fix WXSIM additional forecast display for non-English on dashboard.;
    (Base-World) add PW-forecast.php V2.50, PW-forecast-lang.php V2.50 for Pirateweather forecasts
  • Version 3.377 - 03-Jan-2023 (Base-*) update get-metar-conditions-inc.php V1.21 to revert to ${varname} notation inside a preg_replace replacement string
  • Version 3.376 - 27-Dec-2022 (Base-*) script updates for PHP 8.2+ to ajax-dashboard V1.31, ajax-gizmo V1.15, common V1.14, flyout-menu V1.10, get-metar-conditions-inc V1.20, get-USNO-sunmoon V3.05, include-metar-display V1.07, thermometer V1.19;
    (Base-Canada) script updates for PHP 8.2+ to ec-forecast V5.04, ec-lightning V1.04;
    (Base-USA) script updates for PHP 8.2+ to advforecast2 V5.19, atom-advisory V2.14, atom-top-warning V2.12, nws-alerts-details-inc V1.08, radar-status V1.20, wxadvisory V1.04;
    (CU-plugin,VWS-plugin,WEEWX-plugin,WL-plugin,WV-plugin) script updates for PHP 8.2+ to include-NOAA-reports V2.08, wxnoaaclimatereports V1.02;
  • Version 3.375 - 04-Nov-2022 (Base-World) update get-meteoalarm-warning-inc.php V3.15 to improve display of 'No alerts' message
  • Version 3.374 - 02-Nov-2022 (WL-plugin) update WL-defs.php V1.04 to correct hiMonthlyBaro and add lowMonthlyBaro variables (Thanks to Dennis at
  • Version 3.373 - 02-Nov-2022 (Base-Canada) update wxecradar-list-inc.php, wxecradar-iframe.php V1.03 to add National map display (Thanks again to Matthew Romer!)

A full version history is available here.

Current Template Website Statistics

Numbers are counts of template websites by template version (V2, V3) and weather software used by the website.

Weather Software V2 V3 Total
(Regional Site) 21 6 27 --- 15 15
Cumulus --- 60 60
CumulusMX --- 2 2
Meteobridge --- 27 27
Meteohub --- 9 9
VWS --- 15 15
Weather-Display 132 341 473
WeatherCat --- 11 11
WeatherLink --- 14 14 --- 3 3
WeatherSnoop --- 1 1
WsWIN --- 1 1
sint wind pi --- 1 1
weewx --- 1 1
wview --- 5 5
Totals:  153 512 665

Note: Regional Weather Network sites do not run weather station software, but do use the V2 or V3 template set. V2 template sets were based using Weather-Display software only.

Acknowledgements and thanks!

  • Thanks to Kevin Reed ( and Tom Chaplin ( for providing the original Carterlake HTML Weather-Display template set.
  • Thanks to Jozef ( and Tom Chaplin ( for pioneering the original Weather-Display AJAX script on which this AJAX function is based.
  • Thanks to Kevin Reed ( for developing and sharing his included-file PHP website design on which this template set is based.
  • Thanks to Mike Challis ( for developing the wind-rose graphic generator , the Template Style Editor, the Template Switcher and CSS files, developing the WDL and MML pages, and helping enhance many of the scripts used in this template set.
  • Thanks to Tim Hanko ( for the prototype GR3radar page (USA).
  • Thanks to Jim McMurry ( for his WeatherUnderground History display script.
  • Thanks to Rob Ingham of RainmanWeather and Ysbrand of Venhuizen, NL weather for their invaluable assistance in helping create the Meteohub plugin for the template sets.
  • Thanks to Paolo of Meteotreviglio for creating and sharing the animated forecast icon set.
  • Thanks to Curly of Michiana Weather for creating the nws-alerts system and graciously allowing it to be included in the Base-USA template distribution (as of V3.105, 28-Jan-2012).
  • Thanks to Larry of Siena Weather for his assistance in creating the AWN-plugin.
  • Thanks to Gary of Narangba Weather in Queensland, AU for his generation of the weewx-saratoga extension for WeeWX which provides the data used by the Saratoga template with the WEEWX-plugin.