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.

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 Wednesday, 02-Sep-2009 11:17 AM

Weather Display/PHP/AJAX Website Template Set - Settings.php - Canada

The configuration for Settings.php discussed here is for the Canada Specific template set. It assumes you've already done the common Settings.php configuration required for all the template sets
Common Settings in Settings.php | USA specific | Canada specific | World specific | World-ML specific | menubar.php configuration


<?php
# if you have WXSIM and plaintext-parser.php, set $SITE['WXSIM'] = true;
# to have the WXSIM forecast text appear in the dashboard along with your primary forecast org's
# forecast.  
$SITE['WXSIM']            = true;  // Set to false if no WXSIM/plaintext-parser.php
$SITE['WXSIMscript']     = 'plaintext-parser.php'// script for decoding plaintext.txt into icons

$SITE['fcsticonsdir'] = './forecast/images/'// NOAA-style icons for NWS, WU, WXSIM forecast scripts

# fcsturlEC is for Environment Canada forecast (ec-forecast.php)
$SITE['fcsturlEC']        = 'http://weatheroffice.gc.ca/city/pages/on-107_metric_e.html';
 
$SITE['fcsticonsdirEC'] = './ec-icons/';      // EC forecast icons for Canada (ec-forecast.php)
#
#---- in the following section, enable settings for ONE primary forecast organization
# pick which script AND org are to be used for your forecast here: (last uncommented pair will
#  be the ones used on the wxforecast.php page and in your dashboard and sidebar

$SITE['fcstscript']   = 'ec-forecast.php';    // Canada forecasts from Environment Canada
$SITE['fcstorg']        = 'EC';    // set to 'EC' for Environment Canada

#$SITE['fcstscript']    = 'plaintext-parser.php';    // WXSIM forecast (if only forecast script)
#$SITE['fcstorg']        = 'WXSIM';    // set to 'WXSIM' for WXSIM forecast

# radar settings (will override defaults in script
###########################################################################
$SITE['ecradar']    = 'WKR';  // set to default Site for ec-radar (same as id=xxx on EC website)
#                                set to 'NAT' for EC Canada national composite map
##########################################################################
?>
$SITE['WXSIM'] = true;
$SITE['WXSIMscript'] = 'plaintext-parser.php';
If you have WXSIM operating on your website, this specifies the formatting script to use.
Set $SITE['WXSIM'] = false; if you aren't using WXSIM.
$SITE['fcsticonsdir'] = './forecast/images/';
This specifies the relative FILE location of the icon set used by the forecast scripts (advforecast.php, WU-forecast.php, WXSIM plaintext-parser.php)
$SITE['fcsturlEC'] = 'http://weatheroffice.gc.ca/city/pages/on-107_metric_e.html';
This setting specifies the Environment Canada URL for the weather forecast and conditions page - it is used by the ec-forecast.php script to get the forecast and any current warnings for the forecast area.
$SITE['fcsticonsdirEC'] = './ec-icons/';
This setting specifies the relative FILE location of the directory containing the Environment Canada forecast icons. This is used by the ec-forecast.php script for the forecast icons in the ajax-dashboard, ajax-sidebar and wxforecast.php page.
$SITE['fcstscript'] = 'ec-forecast.php';
$SITE['fcstorg'] = 'EC';
This setting specifies the forecast organization (EC) and the script location. The default will use Environment Canada as the forecast source. Optionally, you can use WXSIM for the forecast source by setting
$SITE['fcstscript'] = 'plaintext-parser.php'; and
$SITE['fcstorg'] = 'WXSIM';
This will cause the WXSIM forecast icons to appear in the ajax-dashboard and WXSIM forecast to be used on the wxforecast.php page.
$SITE['ecradar'] = 'WKR';
This setting specifies the default Environment Canada radar site to be used by ec-radar.php script on the wxradar.php page for animated display of the radar graphics.
deformed-offering