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.

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 Tuesday, 09-Jan-2018 4:33 PM

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:

  • Cumulus
  • Meteobridge
  • Meteohub
  • Virtual Weather Station
  • Weather-Display
  • WeatherCat (Version V0.95, Build 152 or later) (Successor product to Lightsoft Weather Center (LWC))
  • WeatherLink
  • New! (requires a userid/password on AND DeviceID, Key for station)
  • WeatherSnoop (Version 2.1.1 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


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

Version history (latest 20 updates)

  • Version 3.247 - 27-Jan-2018 (Base-USA) updated nws-alerts.php scripts V1.42 with PHP7+ changes
  • Version 3.246 - 24-Jan-2018 (Base-Canada) updated wxindex.php with CSS changes for ec-forecast.php V3+ alerts display
  • Version 3.245 - 09-Jan-2018 (Base-*,WLCOM-Plugin) updated WLCOM plugin to use new API. Now requires DeviceID and Key in Settings-weather.php for operation.
  • Version 3.244 - 20-Nov-2017 (Base-Canada) updated ec-forecast.php V5.02 to display wind gust in conditions and hourly forecasts, fix blank icon issue for no conditions reported
  • Version 3.243 - 11-Nov-2017 (Base-*) updated get-UV-forecast-inc.php V1.08 to use curl fetch and fix notice errata
  • Version 3.242 - 07-Nov-2017 (Base-Canada) updated ec-forecast.php V5.01 to add missing windchill display to conditions box
  • Version 3.241 - 20-Oct-2017 (Base-*) updated get-USNO-sunmoon.php V3.01 with fix for DMY calculated date format
  • Version 3.240 - 17-Oct-2017 (Base-*) updated check-fetch-times.php V1.19 with improved show=info diagnostics
  • Version 3.239 - 15-Oct-2017 (Base-Canada) updated ec-lightning.php V1.02 to correct missing function call error
  • Version 3.238 - 13-Oct-2017 (Base-Canada) updated ec-lightning.php V1.01 to use cURL and HTTPS access to EC website
  • Version 3.237 - 11-Oct-2017 (Base-*) updated get-USNO-sunmoon.php V3.00 for curl fetch and $SITE['useUSNO'] = false; to perform internal calculations instead of data;
    (Base-*) updated get-metar-conditions-inc.php V1.16 to use curl for fetch, fix fractional visibility calculation for kilometers;
    (Base-USA) updated advforecast2.php V5.03 with fix for stale point-forecast via API to cause failover to Zone forecast
  • Version 3.236 - 30-Sep-2017 (CU-Plugin) updated CU-trends-inc.php V1.10 to add Dew Point trends and note about data currency
    (MB-Plugin) updated MB-trends-inc.php V1.09 to add Dew Point trends and note about data currency
    (Base-*) updated ajaxCUwx.js V3.05 and ajaxMBwx.js V4.03 to support Dew Point updates on trends+fix Baro decimals display.
  • Version 3.235 - 30-Sep-2017 (WD-plugin) updated WD-trends-inc.php V1.07 to add Dew Point trends and note about data currency
    (Base-*) updated ajaxWDwx.js V2.25 to support Dew Point updates to WD-trends-inc.php display+fix Baro decimals display.
  • Version 3.234 - 27-Sep-2017 (Base-Canada) update ec-forecast.php V5.00 using XML parsing from EC instead of page scraping. Requires ec-forecast-lookup.txt for operation.
    (Base-*) updated check-fetch-times.php V1.18 for version support for new ec-forecast.php V5.00
  • Version 3.233 - 31-Aug-2017 (Base-Canada) update ec-forecast.php V4.03 for icon display after EC website changes
  • Version 3.232 - 16-Jul-2017 (Base-USA) update advforecast2.php V5.03 (JSON version) to use point forecast HTTP return code > 400 to force Zone forecast fetch/display
  • Version 3.231 - 30-May-2017 (Base-*) update quake-json.php V1.13 to ignore JSON tz and use Settings.php TZ for UTC-to-local times
  • Version 3.230 - 22-May-2017 (Base-USA) update advforecast2.php V5.02 (JSON version) to add rising/falling temperature indicators
  • Version 3.229 - 26-Apr-2017 (Base-USA) update advforecast2.php V5.01 (JSON version) to use Test sites while waiting for June 19, 2017 implementation of new
  • Version 3.228 - 22-Apr-2017 - (Base-*) update thermometer.php V1.15, include-wxstatus.php V1.06, ajaxWLCOMwx.js V3.05 for WLCOM-plugin support, footer.php V1.02 for https validation links;
    (WLCOM-plugin) V1.00 - initial release to allow to source weather data for the templates;
    (Base-USA) updated wxindex.php V1.01 for WU map URLs, advforecast2.php V5.00 (JSON version) and DualImage.php V1.01 for new NWS site on 24-Apr-2017,

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) 23 6 29
Cumulus --- 60 60
Meteobridge --- 15 15
Meteohub --- 9 9
VWS --- 15 15
WX Arduino --- 1 1
Weather-Display 172 350 522
WeatherCat --- 11 11
WeatherLink --- 15 15
WeatherSnoop --- 2 2
WsWIN --- 1 1
sint wind pi --- 1 1
weewx --- 2 2
wview --- 7 7
Totals:  195 495 690

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!