I've done a major update to ec-forecast.php (now at V2.16 - 13-May-2013) which includes the following changes:
* settings to control display of dates with day names for both icons and detail forecast legends
* ability to use new transparent PNG icons in place of the older GIF icons
* improved diagnostics for HTTP fetch from weather.gc.ca website, and a built-in retry for a 30x redirect
* multiple forecast locations with drop-down control selector
* support for cache files in the $SITE['CacheFileDir'] location
You can install the V2.16+ version to directly replace your older version in the template with no additional
configuration necessary. If you would like to enable the newer features (like day/date, PNG icons, multiple
forecast locations) then copy the following to your template Settings.php and make the configuration changes
you desire.
Add this to your Settings.php after the $SITE['fcsticonsdirEC'] entry
# --- new settings with ec-forecast.php V2.16+
$SITE['ECiconDayDate'] = false; // =false; Icon names = day of week. =true; icon names as Day dd Mon
$SITE['ECdetailDayDate'] = false; // =false; for day name only, =true; detail day as name, nn mon.
$SITE['ECiconType'] = '.gif'; // ='.gif' or ='.png' for ec-icons file type
// Note: for .png, make sure you have installed the PNG icons in the $SITE['fcsticonsdirEC'] directory
//
// The optional multi-city forecast .. make sure the first entry is for the $SITE['fcsturlEC'] location
//*
$SITE['ECforecasts'] = array(
// Location|forecast-URL (separated by | character)
'St. Catharines, ON|http://weather.gc.ca/city/pages/on-107_metric_e.html', // St. Catharines, ON
'Vancouver, BC|http://weather.gc.ca/city/pages/bc-74_metric_e.html',
'Calgary, AB|http://weather.gc.ca/city/pages/ab-52_metric_e.html',
'Regina, SK|http://weather.gc.ca/city/pages/sk-32_metric_e.html',
'Winnipeg, MB|http://weather.gc.ca/city/pages/mb-38_metric_e.html',
'Ottawa (Kanata - Orléans), ON|http://weather.gc.ca/city/pages/on-118_metric_e.html',
'Montréal, QC|http://weather.gc.ca/city/pages/qc-147_metric_e.html',
'Happy Valley-Goose Bay, NL|http://weather.gc.ca/city/pages/nl-23_metric_e.html',
'St. John\'s, NL|http://weather.gc.ca/city/pages/nl-24_metric_e.html',
'Fredericton, NB|http://weather.gc.ca/city/pages/nb-29_metric_e.html',
'Halifax, NS|http://weather.gc.ca/city/pages/ns-19_metric_e.html',
'Charlottetown, PE|http://weather.gc.ca/city/pages/pe-5_metric_e.html',
'Whitehorse, YT|http://weather.gc.ca/city/pages/yt-16_metric_e.html',
'Yellowknife, NT|http://weather.gc.ca/city/pages/nt-24_metric_e.html',
'Resolute, NU|http://weather.gc.ca/city/pages/nu-27_metric_e.html',
'Iqaluit, NU|http://weather.gc.ca/city/pages/nu-21_metric_e.html',
);
//*/
# --- end of new settings with ec-forecast.php V2.16+
The new transparent PNG format icons are courtesy of Thayer Fox at
http://foxed.ca/ who has given
his kind permission to distribute them from the Saratoga-Weather.org website.
http://saratoga-weather.org/ec-icons-png.zip -- the icons should be placed in the same directory as the old .GIF icons.
Saratoga template users can get the update from the
update tool page for Base-Canada, 13-May-2013
Standalone users should use the
scripts page for download.
Best regards,
Ken