 Regional Weather Summary script (c) Clevedon Weather
 Contact regionalwx@clevedonweather.co.uk
 This script may be freely used and distributed provided an acknowledgement link to Clevedon Weather is 
 included on the page

 Included in the zip file
 1) regionalwx.txt // This readme file
 2) regionalwx.php // Version 2.16
 3) gs_sortable.js // Version 1.8 Full infomation at http://www.allmyscripts.com/Table_Sort/index.html
 
 NOTE that the javascript file 'gs_sortable.js' needs to be in the same directory as regionalwx.php otherwise you
      edit the filepath in 'regionalwx.php.
  
 Version History
 
 V2.17 - 19/08/12 Chnage number formatting in function rainfall to not display thousand comma seperator as it messes up sort routine.
 V2.16 - 10/08/12 Added new style to maintain column headings being white
 V2.15 - 09/08/12 Tidyed up sort routine and added reset button
 V2.14 - 08/08/12 Added a javascript sort routine to the table from http:www.allmyscripts.com
 V2.13 - 08/08/12 Bug fix when clientraw.txt file is corrupt in the time/date fields
 V2.12 - 06/08/12 Bug fix
 V2.11 - 05/08/12 Colours of highest and lowest now configured using styles.
 V2.10 - 05/08/12 Added highlighing on outside temperature for forst warning (<4C) and high temperature (>25C)
 V2.09 - 04/08/12 Added choice of rainfall units millimetres or inches
 V2.08 - 04/08/12 Added choice of Wind Speed Units Knots, mph, kph, m/s, f/s
 V2.07 - 03/08/12 Added choice of baro Pressure Units inHg, mmHg hPa and mbar
 V2.06 - 03/08/12 Added choice of Temperature Units of Degrees 'C' or 'F'
 V2.05 - 27/07/12 Added message in Pressure Column "Data Old" if data older than 4000 secs used to just show invalid
 V2.04 - Added highight in yellow for sites recording any rain over 0.2mm
 V2.03 - Added two sizes of arrow to show large and small changes. Fix bug in highlighting the monthly minimum rain total
 V2.02 - Addition of UP/DOWN Temperature trend arrows
 V2.01 - Addition of Max/Min on selected measurements in the table, Added UP DOWN pressure trend arrows
 
 This script can be used to display weather data obtained from local site that use Weather Display
 The script reads the selected clientraw.txt file that you have listed below and displays them in a table

 This has been only configured with entires listed in the table, all being Clevedon Weather and two local sites It is up to the user
 replace them with your own selection. I suggest you contact the sites first to obtain permission and get the
 file location of their clientraw.txt file.
 
 Setup
 1) Set your local timezone on line:- date_default_timezone_set('Europe/London');
 
 2) Configure the Weather Stations you wish to include in the table.
	Example
		$order=1; // Sets the initial position in the table
		$station_name[$order] = "xClevedon"; // Set this to the station name displayed. Note the lower case "x" will highlight the row green ideal for your own site
		$station_url[$order] = "http://www.clevedonweather.co.uk/"; // Set this too URL to the home page.
		$loc = $station_url[$order] . "wdisplay"; // Set this to the directory that the clientraw.txt is saved in. On many site this will be the root directory but in this example the clientraw.txt is in a subdirectory "wdisplay"
		$station[$order] = 		get_client ("${loc}/clientraw.txt");
		
 3) Configure the units displayed in the table see example below
	Example
		// Set up display units
		$temp_units=1; // 1=deg C, 2=deg F
		$baro_units=5; // 1=inHg, 2=mmHg, 3=hPa, 4=kPa, 5=mbar
		$wind_units=1; // 1=mph, 2=kph, 3=m/s, 4=knots, 5=f/s
		$rain_units=1; // 1=millimetres, 2=inches
		
