Extension:AccuWeather

What can this extension do?
This extension adds a weather forecast for a specified location using data supplied by AccuWeather.com

Usage


Download instructions
Please cut and paste the code found below and place it in. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Installation
To install this extension, add the following to LocalSettings.php:

Configuration parameters
The zipcode parameter is used to determine the location for the forecast. The four-part format is determined by AccuWeather.com and examples are given in the code found below.

When you have worked out the zipcode for the country you need (i.e. the first three parts; EUR|UK|UK001| ) it is usually a simple matter of adding a CITY NAME ( i.e. the fourth part; LONDON ). Weather forecasts for more than 3 million locations are currently available.

If you need to confirm a zipcode use the code generator at http://netweather.accuweather.com/adcbin/netweather_v2/signup-page2.asp?partner=netweather and run through the configuration options. You will then find your location's zipcode embedded in the final source code.

Alternate Sizes and Styles
To enable easy implementation the functionality of this extension has been limited to just one size (300w x 250h) and one colour scheme (Light Blue), so that the only variable is the location (zipcode). Additional options for temperature scale, language, background image, colour scheme and box dimensions (including popular banner sizes) are also available through the code generator at http://netweather.accuweather.com/. If you want to use an alternate style you should find it relatively straightforward to run through the code found below and substitute parameters where required. If you swap out sections of code it may help you if you start by searching and replacing single quotes in the supplied code with double quotes.

Examples
After installing the AccuWeather Extension please add your wiki to the top of this list:
 * Debatrix - an experimental wiki that I am working on --Jake4d
 * Wiki Sussex - a unique guide to every village and town in Sussex, England.
 * Thornbury And South Gloucestershire ARC The radio club is located North West of Bristol UK.