deformed-offering

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 https://github.com/ktrue

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

This page was updated Monday, 26-Feb-2018 12:04 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:

  • New!AmbientWeather.net Network (requires userid on ambientweather.net AND DeviceID AND apiKey)
  • Cumulus
  • Meteobridge
  • Meteohub
  • Virtual Weather Station
  • Weather-Display
  • WeatherCat (Version V0.95, Build 152 or later) (Successor product to Lightsoft Weather Center (LWC))
  • WeatherLink
  • WeatherLink.com (requires a userid/password on weatherlink.com 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:
English
(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.295 - 08-Sep-2019 (Base-USA) updated advforecast2.php V5.13 for planned discontinuation of forecast-v3.weather.gov site 01-Oct-2019
  • Version 3.294 - 27-Aug-2019 (Base-Canada) updated ec-radar.php V2.05 with new allowed sites listing
  • Version 3.293 - 26-Jun-2019 (Base-USA) updated wxindex.php, Settings.php to add $SITE['WUsatellite'] entry to specify IR Satellite image to use
  • Version 3.292 - 21-May-2019 (Base-*) updated check-fetch-times.php V1.27 for .css file version checking
  • Version 3.291 - 14-May-2019 (Base-*) updated check-fetch-times.php V1.26 for additional script version checking
    (Base-USA) updated nws-alerts V1.43 to use Leaflet/OpenStreetMaps display instead of Google map display
  • Version 3.290 - 06-May-2019 (Base-Canada) updated quake-Canada.php V2.00 to use XML for data from http://www.earthquakescanada.nrcan.gc.ca
  • Version 3.289 - 01-May-2019 (Base-USA) updated advforecast2.php (JSON) V5.12 to fix link at bottom of page to correct weather.gov site for point/zone forecasts.
  • Version 3.288 - 30-Apr-2019 (Base-USA) updated advforecast2.php (JSON) V5.11 to handle API change for point forecasts using cached meta-data for point->gridpoint forecasts
  • Version 3.287 - 19-Apr-2019 (Base-*) updated common.php V1.10 to add season/moon info tables to year 2030 (V1.09 ended at year 2020)
  • Version 3.286 - 17-Apr-2019 (Base-Canada) updated ec-radar.php V2.04 to add list of operating radar sites and new CASxx sites for display
  • Version 3.285 - 13-Apr-2019 (Base-USA) updated advforecast2.php V5.10 (JSON) with fix for HTTP/2 responses from api.weather.gov
  • Version 3.284 - 22-Mar-2019 (Base-World) updated WC-forecast.php V1.04 with fix for TWC/WU JSON degree sign \xc2\xba to correct UTF-8 \xc2\xb0
  • Version 3.283 - 10-Mar-2019 (Base-World) updated WC-forecast.php V1.03 with added display for all available icons in Day-over-Night mode
  • Version 3.282 - 04-Mar-2019 (Base-World) updated WC-forecast.php V1.02 with rewritten icon printing code for clairity and Day-over-Night display option
  • Version 3.281 - 02-Mar-2019 (Base-World) updated WC-forecast.php V1.01 to fix incorrect WU variable names with correct WC variable names
  • Version 3.280 - 01-Mar-2019 (Base-World) added WC-forecast.php V1.00, updated wxforecast.php V1.03, ajax-dashboard.php V1.28, Settings.php V1.04 to support optional WU/TWC forecast script.
    (Base-*) updated check-fetch-times.php V1.25 for DarkSky and WC/TWC forecast testing and version testing.
  • Version 3.279 - 04-Feb-2019 (Base-USA) updated radar-status.php V1.16 for https to radar3pub.ncep.noaa.gov site
  • Version 3.278 - 23-Jan-2019 (Base-World) updated DS-forecast.php V1.09, DS-forecast-lang.php V1.06, wxforecast.php V1.02 for tabbed display of daily and hourly (for 24hrs) forecasts.
  • Version 3.277 - 15-Jan-2019 (Base-World) updated DS-forecast.php V1.08 to add check for good JSON return before saving cache file
  • Version 3.276 - 10-Jan-2019 (Base-World) updated DS-forecast-lang.php V1.05 to fix missing Danish translation for 'snow'

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) 22 6 28
AmbientWeather.net --- 8 8
Cumulus --- 58 58
Meteobridge --- 19 19
Meteobridge-NANO --- 1 1
Meteohub --- 10 10
VWS --- 15 15
Weather-Display 134 338 472
WeatherCat --- 11 11
WeatherLink --- 12 12
WeatherLink.com --- 2 2
WeatherSnoop --- 1 1
WsWIN --- 1 1
sint wind pi --- 1 1
weewx --- 1 1
wview --- 5 5
Totals:  156 489 645

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!

deformed-offering