<?php

$imagePath = './images/';	// path to image directory relative to 
$unknowninfo = 'blank.gif';	// image to show if particular info doesn't exist

$mweatherDir = '/home/mattsscripts/www/mweather/';  // absolute path to mweather directory
$noweather = "noweather.html";	// the page to show upon encountering an error

$use_cache = 1;	// should we cache all weather data and only download when necessary? (1/0)
$cache_dir = '/home/mattsscripts/www/mweather/cache/';	// location of directory to cache in (must be 777 on some servers!)
$cache_age = 300;	// the maximum age of cache'd files before grabbing the new version in seconds (ie 300 = 5 minutes)

$use_head_and_foot_templates = 1;               // whether to use the head/foot templates
$template_header = "weather.head";      // the start of the page
$template_footer = "weather.foot";      // the end of the page
$template_main = "weather.tmpl";        // the main template (mandatory)

$default_region = "EGNH";	// the default region in the event of none being supplied (Blackpool Airport)

$time_offset = 0;		// time offset relative to GMT (0 = GMT, thanks 'D.F. Duck')
$date_format = "l dS F Y";	// see mktime(3) for description
$time_format = "G:i";		// see mktime(3) for description

$wind_format = "%S% %U%, travelling %D% (%d% degrees)";	// wind info formatting string
		// FORMAT STRING	DATA
		// %S% 			Wind speed
		// %U%			Wind units
		// %D%			Wind direction (text)
		// %d%			Wind direction (degrees)

$use_dropdown_menus = 1;	// whether or not to use drop down menus for selecting the region
$dropdown_area = "uk";		// also can be anything you want, simply construct it in the dropdown.cfg file following the same style as CODES and dropdown.cfg

// user-defined temperatures - I noticed some people e-mailing me saying that X, Y or Z weren't very hot for where *they* lived, well I live in the UK and 10 degrees celsius is hot over here ;)
// NOTE: these are all in degrees celsius

$temp_vhot = 40;
$temp_hot  = 30;
$temp_med  = 20;
$temp_low  = 10;
$temp_vlow = 0;
$temp_vvlow= 0;

// weather pictures - all these pictures are relative to the $imagePath remember!

$sun_vhot  = "sun_vhot.gif";   // > $temp_vhot
$sun_hot   = "sun_hot.gif";    // > $temp_hot
$sun_med   = "sun_med.gif";    // > $temp_med
$sun_low   = "sun_low.gif";    // > $temp_low
$sun_vlow  = "sun_vlow.gif";   // > $temp_vlow
$sun_vvlow = "sun_vvlow.gif";  // < $temp_vvlow

// the following pieces of code are configurable, but for the love of god keep em clean!

// the different cloud types
$cloud_types = array(
	"OVC" => "Overcast",		// overcast clouds
	"SCT" => "Scattered",		// scattered clouds
	"BKN" => "Broken",		// broken clouds
	"FEW" => "Few",			// few clouds
	"SKC" => "No&nbsp;clouds",	// no/vfew clouds
	"CLR" => "Clear"		// clear
);


// the cloud image array
$cloud_images = array(
	"OVC" => "cloud_lots.gif",	// lots of clouds (overcast)
	"SCT" => "cloud_med.gif",	// scattered clouds
	"BKN" => "cloud.gif",	// broken clouds
	"FEW" => "cloud_few.gif",	// few clouds
	"SKC" => "clear_sky.gif",	// clear sky
	"CLR" => "clear_sky.gif"	// clear sky as well?
);

$precip_types = array(
	"DZ" => "Drizzle",
	"RA" => "Rain",
	"SN" => "Snow",
	"SG" => "Snow grains",
	"IC" => "Ice cystals",
	"PL" => "Ice pellets",
	"GR" => "Hail",
	"GS" => "Small hail/snow pellets",
	"UP" => "Unknown",
	"BR" => "Mist",
	"FG" => "Fog",
	"FU" => "Smoke",
	"VA" => "Volcanic Ash",
	"SA" => "Sand",
	"HZ" => "Haze",
	"PY" => "Spray",
	"DU" => "Widespread Dust",
	"SQ" => "Squal",
	"SS" => "Sandstorm",
	"DS" => "Duststorm",
	"PO" => "Well developed dust/sand whirls",
	"FC" => "Funnel cloud",
	"MI" => "Shallow",
	"BC" => "Patches",
	"PR" => "Partial",
	"TS" => "Thunderstorm",
	"BL" => "Blowing",
	"SH" => "Showers",
	"DR" => "Drifting",
	"FZ" => "Freezing"
);

// the various images for precipitation
$precip_images = array(
	"DZ" => "rain.gif",	// drizzle
	"RA" => "rain.gif",	// rain
	"SN" => "snow.gif",	// snow
	"SG" => "snow.gif",	// snow grains
	"IC" => "ice_crystals.gif",	// *ice crystals
	"PL" => "ice_pellets.gif",	// *ice pellets
	"GR" => "hail.gif",	// *hail
	"GS" => "hail_small.gif",	// *small hail/snow pellets
	"UP" => "unknown.gif",	// *unknown
	"BR" => "mist.gif",	// *mist
	"FG" => "fog.gif",	// *fog
	"FU" => "smoke.gif",	// *smoke
	"VA" => "volcanic_ash.gif",	// *volcanic ash
	"SA" => "sand.gif",	// *sand
	"HZ" => "haze.gif",	// *haze
	"PY" => "spray.gif",	// *spray
	"DU" => "ws_dust",	// *widespread dust
	"SQ" => "squal.gif",	// *squal
	"SS" => "sandstorm.gif",	// *sandstorm
	"DS" => "duststorm.gif",	// *dust storm
	"PO" => "dust_sand_whirls.gif",	// *dust and sand whirls
	"FC" => "funnel.gif",	// *funnel
	"MI" => "shallow.gif",	// *shallow
	"TS" => "lightning.gif",	// *thunderstorm
	"BL" => "blowing.gif",	// *blowing
	"SH" => "rain.gif",	// rain/showers
	"DR" => "drifting.gif",	// *drifting?
	"FZ" => "freeze.gif"	// *freezing
);

$precip_intensities = array(
	"none at all",
	"v v light",
	"v light",
	"light",
	"light-ish",
	"medium",
	"heavy-ish",
	"heavy",
	"v heavy",
	"v v heavy"
);

?>
