webcam facing ski center webcam facing ski center


webcam facing south webcam facing south


Thunder radar blitzortung!


Rain radar rain snow radar


Visit our other sites:

Hotel Skamnos

Arachova Weather Station

Skamnos Weather Station

Skamnos Weather2

Arachova Weather2

WU Skamnos

WU Arachova


Other Weather Sites:

Parnassos Snow Forecast

Parnassos Snow Report

Kelaria 1950m

Kelaria 2240m

Fterolaka 2080m



Thunderstorms From: 17-11-2017 02:00 Until: 18-11-2017 01:59 warning for: Thunderstorms Level: Orange info button
english:
locally thunderstorms 

Display key values and files

wsSettings.php SettingsFiles should pe password protected - dated: 12-10-2017 19:42

    1 | <?php
    2 | $pageName	= 'wsSettings.php';
    3 | if (!isset($SITE)){echo "<h3>invalid call to script $pageName</h3>";exit;}
    4 | $pageVersion	= '3.02 2014-11-19';
    5 | $SITE['wsModules'][$pageName] = 'version: ' . $pageVersion;
    6 | $pageFile = basename(__FILE__);			// check to see this is the real script
    7 | if ($pageFile <> $pageName) {
    8 | 	$SITE['wsModules'][$pageFile]	= 'this file loaded instead of '.$pageName;
    9 | }
   10 | if (!isset($pathString)) {$pathString='';}
   11 | $pathString .= '<!-- module '.$pageFile.' ==== '.$SITE['wsModules'][$pageFile].' -->'.PHP_EOL;
   12 | #---------------------------------------------------------------------------
   13 | # '3.02 2014-11-19 release version 
   14 | #---------------------------------------------------------------------------
   15 | #
   16 | # look for #### to find those lines which can / should be changed first   #####
   17 | #
   18 | $SITE["topfolder"]      = 'weather2/';          # normally  this weather2/  
   19 | #
   20 | #---------------------------------------------------------------------------
   21 | if (!isset ($SITE['WXsoftware']) ) {
   22 | #---------------------------------------------------------------------------
   23 | # choose your weatherprogram
   24 | #---------------------------------------------------------------------------
   25 | # 	$SITE['WXsoftware'] 	= 'CU';  	// ##### Cumulus
   26 | #	$SITE['WXsoftware'] 	= 'CW';  	// ##### consolewd = WeatherDisplay for raspberryPI
   27 | 	$SITE['WXsoftware']	= 'MB';		// ##### Meteobridge	
   28 | #	$SITE['WXsoftware']	= 'MH';     	// ##### Meteohub
   29 | #	$SITE['WXsoftware'] 	= 'WC';  	// ##### WeatherCat
   30 | #	$SITE['WXsoftware'] 	= 'WD';  	// ##### WeatherDisplay
   31 | #	$SITE['WXsoftware'] 	= 'WL';		// ##### WeatherLink
   32 | #	$SITE['WXsoftware'] 	= 'DW';	        // ##### Davis WeatherLink.Com
   33 | #	$SITE['WXsoftware'] 	= 'WS';	        // ##### wswin
   34 | #	$SITE['WXsoftware'] 	= 'WV';	        // ##### wview
   35 | #	$SITE['WXsoftware'] 	= 'VW';	        // ##### vws
   36 | #---------------------------------------------------------------------------
   37 | } 
   38 | #---------------------------------------------------------------------------
   39 | #                       Select the region you are in or choose other
   40 | #---------------------------------------------------------------------------
   41 | #$SITE['region'] 		= 'america';    // #####
   42 | #$SITE['region'] 		= 'canada'; 	// #####
   43 | $SITE['region'] 		= 'europe';	// #####
   44 | #$SITE['region'] 		= 'other';      // #####
   45 | #
   46 | #
   47 | #
   48 | #
   49 | #---------------------------------------------------------------------------
   50 | #                General settings such as station location, identity 
   51 | #---------------------------------------------------------------------------
   52 | $SITE['organ']			= 'Hotel Skamnos weather site';			// #####        short name used a.o. in heading, forecast pages 
   53 | $SITE['yourArea']		= 'Parnass Arachova/Delphi';				// #####        the area your city is in
   54 | $SITE['yourIP']		        = 'skamnos.dyndns.org';			// #####        your EXTERNAL ip address to skip counting your visits
   55 | $SITE['cookieName']		= 'Skamnos';			// #####	cookie name where user changes are kept, use an unique name, not meteo  or weatherstation.
   56 | $SITE['contactName'] 	        = 'Hotel Skamnos';				// #####        Webmaster naam or simply webmaster
   57 | $SITE['contactEmail'] 	        = 'info@skamnos.com';		// #####        Webmaster E-mail from
   58 | $SITE['contactEmailTo']         = "info@skamnos.com";    	// #####        contact E-mail goes to  THIS email adress, so it MUST be a real one
   59 | $SITE['password']               = '';                                   // #####
   60 | $SITE['noChoice']  		= '10';			 		// ##### 	visitors go to this page at first time visit, 10 = home/startpage
   61 | $SITE['statsCode']		= './_widgets/histats.txt';	        // #####        set your own visitors code or set to false
   62 | $SITE['floatTop']               = './_widgets/float_top.php';
   63 | $SITE['commaDecimal']	        = false; 				//              most europeans use a comma for a decimal point. others a point
   64 | $SITE['skipTop']                = true;                                 //              v3.1 go to details of page
   65 | #---------------------------------------------------------------------------
   66 | $SITE['noaaPage']       = $SITE['ecPage']       = $SITE['cwopPage']     = 'no';  // set to default / no values
   67 | $SITE['canada']         = $SITE['europe']       = $SITE['america']      = $SITE['other'] = false;
   68 | $SITE['belgium']        = $SITE['netherlands']  = $SITE['warnArea']     = false; // set to default / no values
   69 | #---------------------------------------------------------------------------
   70 | if ($SITE['region'] ==	'america') {
   71 | #---------------------------------------------------------------------------
   72 | #  here we define specific settings for  the          U S A 
   73 | #---------------------------------------------------------------------------
   74 | 	$SITE['latitude']	= '41.30068';     		// #####    North=positive, South=negative decimal degrees
   75 | 	$SITE['longitude']	= '-72.793671'; 	 	// #####    East=positive, West=negative decimal degrees
   76 | 	$SITE['warnArea']	= 'ILC045';			// #####    area where this weatherstation is located 
   77 | 	$SITE['tz'] 		= 'America/New_York';	        // #####    time zone for the whole of western europe, leave it if you do not know your EXACT timezone description
   78 | 	$SITE['METAR'] 		= 'KHVN';			// #####    nearby METAR for current conditions retrieval and yowindow dynamic on main page
   79 | 	$SITE['noaaPage']	= 'yes';  			// #####    noaa weather forecast page in menu
   80 | 	$SITE['cwopPage']	= 'yes';                        // #####
   81 | 	$SITE['noaaIconsOwn']	= false; 			// use noaa icons (true) or our template icons (false)
   82 |         $SITE['lang'] 		= 'en';                         // #####        default language you want to use use
   83 |         $SITE['america']        = true;
   84 | #---------------------------------------------------------------------------
   85 | } elseif ($SITE['region'] ==	'canada') {
   86 | #---------------------------------------------------------------------------
   87 | #  here we define specific settings for             C A N A D A
   88 | #---------------------------------------------------------------------------
   89 | 	$SITE['latitude']	= '51.112243';     	        // #####    North=positive, South=negative decimal degrees
   90 | 	$SITE['longitude']	= '-113.956438'; 	 	        // #####    East=positive, West=negative decimal degrees
   91 | 	$SITE['tz'] 		= 'America/Edmonton'; 		// ##### 	time zone
   92 | 	$SITE['caProvince']	= 'AB';				// #####	http://dd.weather.gc.ca/citypage_weather/docs/site_list_en.csv
   93 | 	$SITE['caCityCode']	= 's0000047';			// ##### 	http://dd.weather.gc.ca/citypage_weather/docs/site_list_en.csv
   94 | 	$SITE['METAR'] 		= 'CYYC';			// #####	nearby METAR for current conditions retrieval and yowindow dynamic on main page
   95 | 	$SITE['ecPage']		= 'yes';                        // #####
   96 | 	$SITE['cwopPage']	= 'yes';                        // #####
   97 | 	$SITE['aqhiArea']	= 'Calgary';       // #####
   98 | 	$SITE['aqhiArea-f']	= 'Calgary';
   99 | 	$SITE['caAQHI'] 	= true; 	                // #####
  100 |         $SITE['lang'] 		= 'en';                         // #####        default language you want to use use
  101 |         $SITE['canada']         = true;
  102 | #---------------------------------------------------------------------------
  103 | } elseif ($SITE['region'] ==	'europe') {
  104 | #---------------------------------------------------------------------------
  105 | #  here we define specific settings for             E U R O P E
  106 | #---------------------------------------------------------------------------
  107 | 	$SITE['latitude']	= '38.55';     		// #####    North=positive, South=negative decimal degrees
  108 | 	$SITE['longitude']	= '22.52'; 	 		// #####    East=positive, West=negative decimal degrees
  109 | 	$SITE['warnArea']	= 'GR003';			// #####    area where this weatherstation is located BE004 = Vlaams Brabant, NL012 = nl limburg.
  110 | 	$SITE['lang'] 		= 'en'; 			// #####    default language you want to use use
  111 | 	$SITE['tz'] 		= 'Europe/Athens'; 		// ##### 	time zone for the whole of western europe, leave it if you do not know your EXACT timezone description
  112 | 	$SITE['METAR'] 	        = 'LGPZ';			// LGAV LGMG #####	nearby METAR for current conditions retrieval and yowindow dynamic on main page
  113 | 	$SITE['commaDecimal']	= true;
  114 |         $SITE['europe']         = true;
  115 | 	$SITE['belgium']	= false; 			// #####
  116 | 	$SITE['netherlands']	= false; 			// #####
  117 | #---------------------------------------------------------------------------
  118 | } else {        // region = other
  119 | #---------------------------------------------------------------------------
  120 | #  here we define specific settings for          rest of the world
  121 | #---------------------------------------------------------------------------
  122 | 	$SITE['latitude']	= '38.55';     		// #####    North=positive, South=negative decimal degrees
  123 | 	$SITE['longitude']	= '22.52'; 	        // #####    East=positive, West=negative decimal degrees
  124 | 	$SITE['tz'] 		= 'Europe/Athens'; 		// ##### 	time zone for the whole of western europe, leave it if you do not know your EXACT timezone description
  125 | 	$SITE['METAR'] 	        = 'LGPZ';			// #####	nearby METAR for current conditions retrieval and yowindow dynamic on main page
  126 |         $SITE['lang'] 		= 'en';                         // #####        default language you want to use use
  127 |         $SITE['other']          = true;
  128 | }
  129 | #
  130 | #
  131 | #---------------------------------------------------------------------------
  132 | # from which source do we get the current conditions. Select one, comment out the other
  133 | #------------------------------------------------------------------------- ##### 
  134 | #$SITE['curCondFrom']	= 'wd';		// if you are using WeatherDisplay AND have set WD correctly
  135 | #$SITE['curCondFrom']	= 'yahoo';	// if you use Yahoo also for the forecast on the startpage no other forecast
  136 | $SITE['curCondFrom']	= 'metar';	// default, mostly best choice
  137 | #
  138 | #
  139 | #
  140 | #---------------------------------------------------------------------------
  141 | # General site settings, valid for all pages
  142 | # Normally you do not want to change these settings
  143 | #---------------------------------------------------------------------------
  144 | $SITE['pageWidth']	= '1150';	// #####   
  145 | $SITE['menuPlace']  	= 'V';		// #####	menu is placed   Vertical (default) or Horizontal
  146 | $SITE['header']		= '3';		// #####	normal header = 2 default.  1=small header with less information
  147 | $SITE['colorNumber']	= 3;		// ##### 	this number is the default key which color and style your website will be using
  148 | $SITE['colorStyles']	= array ('weather adapted', 'green','blue','pastel','red','orange','none','ws_clouds','ws_cloudsn','ws_mist','ws_moon','ws_pclouds','ws_rain','ws_snow','ws_storm','ws_sun','ws_thunder');
  149 | $SITE['sideDisplay']	= true;		// ##### 	will be displayed if true. if set to false it will still be displayed when $SITE['menuPlace'] = V =vertical menu is choosen
  150 | $SITE['bottomDysplay']	= true;		// ##### 	show which equipment & software you use and also also which organizations you are a member of
  151 | $SITE['showVisitors']	= true;		// ##### 	show number of visitors in footer
  152 | $SITE['pages_visited']  = true;         // #####        count and show visited pages
  153 | $SITE['ajaxGizmoShow'] 	= true;		// show ajaxgizmo in header rotating/changing weather items
  154 | $SITE['stripAll']	= false;	// to have only menu, no headers for including template in joomla sites etc
  155 | $SITE['stripMenu']	= false;	// to have no menu, f.i.  when using joomla
  156 | $SITE['autoRefresh']	= 0;		// the page is automatically refreshed after *** seconds, set to 0 if you do not want this "feature"
  157 | $SITE['cookieSupport']	= true;		// use cookies to store user choices. The system asks the user if he allows the use of cookies
  158 | $SITE['charset']	= 'UTF-8'; # 'UTF-8'; #'windows-1252'; 	        // default character set for webpages (windows-1252)
  159 | #
  160 | if (!defined('ENT_HTML5')) {define ('ENT_HTML5' , (16|32) );}
  161 | $SITE['htmlVersion']	= ENT_HTML5; 	// html version of this template
  162 | $SITE['curlFollow']	= 'false';	// for sites using safe mode
  163 | $SITE['wsAjaxDataTime'] = 30;		// wait time between refresh data on Ajax based pages in seconds
  164 | $SITE['menuWidth']	= '140';	// 140 = default width of Vertical menu DO NOT CHANGE
  165 | $SITE['tempSimple']	= false; 	// true = blue/red color for temp; false = large color range
  166 | $SITE['textLowerCase']	= false; 	// all text to lowercase = true  or leave all texts as they are supplied (false)
  167 | #---------------------------------------------------------------------------
  168 | # 	Date time info  - this *MUST* be set correctly, please only change when you know what you are doing 
  169 | #---------------------------------------------------------------------------
  170 | if ($SITE['region'] ==	'america' ) {
  171 | #---------------------------------------------------------------------------
  172 | #  here we define date time settings for  the  U S A   12 hours  month - date
  173 | #---------------------------------------------------------------------------
  174 | 	$SITE['timeFormat']     = 'M j Y g:i a';
  175 | 	$SITE['timeOnlyFormat'] = 'g:i a';
  176 | 	$SITE['hourOnlyFormat'] = 'ga';
  177 | 	$SITE['dateOnlyFormat'] = 'M j Y';
  178 | 	$SITE['dateMDFormat'] 	= 'M-m';
  179 | 	$SITE['dateLongFormat'] = 'l M j Y';
  180 | 	$SITE['hourDisplay'] 	= '12';	
  181 | #---------------------------------------------------------------------------			
  182 | } else {
  183 | #---------------------------------------------------------------------------
  184 | #  here we define date time settings for the rest of the world  24 hours  - day month  year
  185 | #---------------------------------------------------------------------------			
  186 | 	$SITE['timeFormat']     = 'd-m-Y H:i';		// Euro 'd-m-Y H:i'; 31-03-2012 14:03  US  'M j Y g:i a';  03 31 2013 02:03 pm
  187 | 	$SITE['timeOnlyFormat'] = 'H:i';		// Euro format hh:mm  (hh=00..23);  US 'g:i a';   5:54 pm
  188 | 	$SITE['hourOnlyFormat'] = 'H'; 			// 
  189 | 	$SITE['dateOnlyFormat'] = 'd-m-Y';		// for 31-03-2008   US 'M j Y';
  190 | 	$SITE['dateMDFormat'] 	= 'd-m';		// for 31-03		US 'M-m';
  191 | 	$SITE['dateLongFormat'] = 'l d F Y'; 		// Vrijdag, 5 februari 2013 US   'l M j Y'; 
  192 | 	$SITE['hourDisplay'] 	= '24';		        // america 12am - 12pm other 00:00 - 23:59
  193 | }
  194 | #---------------------------------------------------------------------------
  195 | #  Important only change if you understand what the reason is, normally it is correct
  196 | #---------------------------------------------------------------------------			
  197 | $SITE['nightDayBefore']         = true;		        // needed a.o. for the default MetNo forecast		
  198 | // if the start hour of a forecast period is between
  199 | //		  06:00 - 12:00          12:00 - 18:00	        18:00 - 24:00	24:00 - 06:00
  200 | // the descriptions for these period is translated to based on this setting
  201 | // false:	sunday morning		sunday aftyernoon	sunday evening	sunday night
  202 | // true:	sunday morning		sunday aftyernoon	sunday evening	monday night
  203 | #---------------------------------------------------------------------------
  204 | # 	Start/home page settings with current weather conditions and some forecast information
  205 | #---------------------------------------------------------------------------
  206 | #       First we set which forcaster we are using on the start page   #####
  207 | #---------------------------------------------------------------------------
  208 | #               for all regions available
  209 | #$forecast       = 'yahoo        with    5 lines text only';     // all regions
  210 | 
  211 | $forecast      = 'metno        with    icons'; 
  212 | #$forecast      = 'metno        with    meteogram';
  213 | 
  214 | #$forecast      = 'wxsim        with    icons';                 // you NEED to have a paid WXSIM program 
  215 | #$forecast      = 'wxsim        with    meteogram';             // running on a windows computer to use this selection
  216 | 
  217 | #               for Europe - Benelux only
  218 | #$forecast      = 'hwa          with    icons';                 
  219 | #$forecast      = 'hwa          with    meteogram';
  220 | #$forecast      = 'hwa          with    hwa/mos graphic';
  221 | 
  222 | #               for U S A only
  223 | #$forecast      = 'noaa         with    icons';
  224 | #$forecast      = 'noaa         with    meteogram';
  225 | 
  226 | #               for Canada only
  227 | #$forecast      = 'ec           with    icons';
  228 | #---------------------------------------------------------------------------
  229 | if (isset ($SITE['skipTop']) && $SITE['skipTop']) {$skiptopText = '#data-area';} else {$skiptopText = '';}
  230 | #
  231 | #---------------------------------------------------------------------------
  232 | #	side colomn  and bottom area on all pages
  233 | #---------------------------------------------------------------------------
  234 | $SITE['partners'] 	= '';			// ##### show other websites (partners)  with your weatherdata side('V') or bottom('B') or not ('')
  235 | $SITE['equipment']	= '';			// ##### show links about the equipment / provider we use: V or B or ''
  236 | $SITE['otherWS'] 	= 'V';			// ##### show links to other weatherstations in side column: V  ''
  237 | #
  238 | #---------------------------------------------------------------------------
  239 | #	webcam can only be shown in side area. there is also a separate page in the menu
  240 | #---------------------------------------------------------------------------
  241 | $SITE['webcam'] 	= true; 		// ##### show webcam in side column when the sidecolumn is displayed, otherwise ignored 
  242 | $SITE['webcamFeed'] 	= 'index.php?p=99';
  243 | #  					        // Weather underground settings
  244 | #						// ##### there are multiple different WU settings. Lookup yours ion the WU sites
  245 | #$SITE['webcamID']	= 'JNafpasCAM1'; 	        // ##### your wunderground WEBCAMID id goes here
  246 | #$SITE['webcamImg']	= 'http://icons.wunderground.com/webcamramdisk/w/v/'.$SITE['webcamID'].'current.jpg?'.time();
  247 | # 
  248 | $SITE['webcamName'][1]          = 'webcam facing ski center'; 
  249 | $SITE['webcamImg'][1]           = 'http://www.skamnos.com/cam/ccam.jpg';   //  these are for demonstration only, replace with yours
  250 | #$SITE['webcamImgNight'][1]	= './img/webcam_night.png';     //  set to ''; if you do not have a night image
  251 | 
  252 | $SITE['webcamName'][2]          = 'webcam facing south';      
  253 | $SITE['webcamImg'][2]	        = 'http://www.skamnos.com/cam/cam_1.jpg';       //  these are for demonstration only, replace with yours
  254 | #$SITE['webcamImgNight'][2]	= './img/webcam_night.png';             //  set to ''; if you do not have a night image
  255 | 
  256 | #$SITE['webcamImg']	        = 'switch_webcam.php';                  // example script for complex day-night switch
  257 | #
  258 | #---------------------------------------------------------------------------
  259 | #	social site support can be shown in sidecolom below menu or in header below the language select
  260 | #---------------------------------------------------------------------------
  261 | $SITE['socialSiteSupport']	= "V"; 		// ##### '' no support; "H"orizontal or "V"ertical  display of facebook icons and others
  262 | $SITE['socialSiteKey']		= "ra-54339ca25f280998";// your key from http://www.addthis.com/   free service
  263 | #---------------------------------------------------------------------------
  264 | #	small radars in the side column only
  265 | #---------------------------------------------------------------------------
  266 | $SITE['wrnRain']		= true;		// ##### set to true is always small map with rain in side area
  267 | $SITE['pageRainCode']		= 42;		// ##### page nr for full page rain radar
  268 | $SITE['wrnLightning']		= true; 	// #####  same for rain radar
  269 | $SITE['pageLightningCode']	= 45;		// #####
  270 | #
  271 | #---------------------------------------------------------------------------
  272 | # 	                warnings  general settings
  273 | #---------------------------------------------------------------------------
  274 | $SITE['warnings'] 		= true;		// ##### show (optional) meteo warnings on every page
  275 | $SITE['warningInside']	        = true; 		// true = warning after headers and menu in data area, otherwise outside everything and displayed first
  276 | $SITE['warningGreen']	        = true;			// true = always display warning, even when no warning in effect
  277 | $SITE['warningsXtnd'] 	        = true;			// false =  one line per warning, true = also the long text description = DO NOT USE IN BELGIUM
  278 | $SITE['warningDetail']	        = 1;			// number of individual warnings before warnings are combined
  279 | $SITE['warn1Box']		= true;			// true = put all separate warnings in one box;  false = one separate box for every separate warning
  280 | #---------------------------------------------------------------------------
  281 | $SITE['warningsEuro']	= $SITE['warningsNOAA']	= $SITE['warningsNWS']	= $SITE['warningsec']	= false; // 
  282 | $SITE['warnImg']= false;  // set all default no
  283 | #---------------------------------------------------------------------------
  284 | $SITE['warningsMenu'] 	        = 'index.php?p=57';	// menu choice for separate warningspage
  285 | #
  286 | if ($SITE['region'] ==	'america') {
  287 | #---------------------------------------------------------------------------
  288 | #  here we define specific settings for  the          U S A 
  289 | #---------------------------------------------------------------------------
  290 | 	$SITE['useCurly']		= true;		##### use template/noaa script or curly's script
  291 | #
  292 | 	if ($SITE['useCurly']) {
  293 | 		$SITE['warningScript']	= 'nws-alerts/wsnws-alerts.php';
  294 | 		$SITE['warningsNWS']	= true;
  295 | 	} else {
  296 | 		$SITE['warningScript']	= 'noaa/noaaWarning.php';
  297 | 		$SITE['warningsNOAA']	=  $SITE['warnings'] ;
  298 | 		$SITE['warnImg']	= './wsIcons/NOAA_Icons_small/';
  299 | 	}
  300 | #---------------------------------------------------------------------------	
  301 | } elseif ($SITE['region'] == 'canada') {
  302 | #---------------------------------------------------------------------------
  303 | #  here we define specific settings for             C A N A D A
  304 | #---------------------------------------------------------------------------	
  305 | 	$SITE['warningScript']	= 'canada/ecWarning.php';	// Environment Canada
  306 | 	 $SITE['warningsec']	= $SITE['warnings'];
  307 | #---------------------------------------------------------------------------
  308 | } elseif ($SITE['region'] ==	'europe') {
  309 | #---------------------------------------------------------------------------
  310 | #  here we define specific settings for             E U R O P E
  311 | #---------------------------------------------------------------------------
  312 | 	$SITE['warningScript']	= 'wrnWarningv3.php';		// Euro
  313 | 	$SITE['warningsEuro']	= $SITE['warnings'];
  314 | 	$SITE['warnImg']	= './img/wrnImages/warn_';
  315 | #---------------------------------------------------------------------------
  316 | } else {        // region = other
  317 | #---------------------------------------------------------------------------
  318 | #  here we define specific settings for          rest of the world
  319 | #---------------------------------------------------------------------------
  320 |         $SITE['warningsMenu'] 	= false;
  321 |         $SITE['warnings'] 	= false;
  322 |         $SITE['warningScript']	= 'wrnWarningv3.php';   // default script
  323 | }
  324 | #	separate warningspage 
  325 | #
  326 | $SITE['warnPage']	= 'yes'; 			// 'yes' default our own page 'no' go directly to meteoalarm site
  327 | #							// for more detailed info when there is a warning displayed
  328 | #
  329 | $SITE['noaawarningURL']	= 'http://alerts.weather.gov/cap/wwaatmget.php?x='.$SITE['warnArea'].'&y=1';
  330 | $SITE['EUwarningURL']	= 'http://www.meteoalarm.eu/index3.php?area='.$SITE['warnArea'].'&day=0&lang=ne_NL';
  331 | #
  332 | # 	your own warning box. This is an extra file with your own messages which can be used for messages about maintenance etc.
  333 | #				
  334 | $SITE['warningTxt']		= false; 		//#####  display this file always (true) when it exists
  335 | $SITE['warnTxt']		= './warning.txt';      //
  336 | #
  337 | #-----------------------------------------------------------------------------------------
  338 | # Banners for ads and other extra's
  339 | #-----------------------------------------------------------------------------------------
  340 | $SITE['banners']		= true;
  341 | $SITE['bannerTop']		= true;
  342 | $SITE['bannerBottom']		= true;
  343 | $SITE['bannerTopTxt']		= './bannert.txt';       // can be .txt - .html file or .php
  344 | $SITE['bannerBottomTxt']	= './banner.txt';
  345 | #-----------------------------------------------------------------------------------------
  346 | #  Which areas of the website may be customized by the visitor. 
  347 | #  This info is processed in the first part of index.php
  348 | #-----------------------------------------------------------------------------------------
  349 | $SITE['userChangeDebug']	= true;			// true to let user set debug=Y  to use ini_set('display_errors', 'On');   error_reporting(E_ALL);	
  350 | $SITE['userChangeColors']	= true;			// let user select website colors / photos according to $SITE['colorStyles']
  351 | $SITE['userChangeMenu']		= true; 		// user can choose Vertical or Horizontal menus
  352 | $SITE['userChangeHeader']	= true;                 // user can select their own header
  353 | $SITE['userChangeChoice']	= true;			// user can choose which page to displayed on next visit other than standard page
  354 | $SITE['userChangeLang']		= true;			// should be on to let user change to one of the supported languages
  355 | $SITE['userChangeUOM']		= true;			// let user select thier own units of measurement
  356 | $SITE['userChangeForecast']	= true;			// let user select thier own forecast
  357 | #
  358 | #
  359 | #---------------------------------------------------------------------------
  360 | # mobile site
  361 | # detection which mobile device is used is done in index.php using the code from 
  362 | # http://detectmobilebrowsers.mobi/  This Code is Free for Personal & Non Profit Usage
  363 | #---------------------------------------------------------------------------
  364 | $SITE['mobileSite']		= 'mobi/mobi.php';  	// for switching to mobile site; set to "" when no mobile support is needed
  365 | $SITE['mobilePageNr']		= 110; 
  366 | #
  367 | #
  368 | #---------------------------------------------------------------------------
  369 | $SITE['imgDir']		= 'img/';		// directory under topfolder used for general images 
  370 | $SITE['cacheDir']	= 'cache/';		// directory to cache files 
  371 | $SITE['javascriptsDir']	= 'javaScripts/';	// all general javascripts
  372 | $SITE['forecastsDir']	= 'forecasts/';		//
  373 | $SITE['iconsDir']	= 'wsIcons/';
  374 | $SITE['defaultIconsDir']= $SITE['iconsDir'].'default_icons/';
  375 | $SITE['defaultIconsSml']= $SITE['iconsDir'].'default_icons_small/';
  376 | $SITE['windIcons']	= $SITE['iconsDir'].'windIcons/';
  377 | $SITE['windIconsSmall']	= $SITE['iconsDir'].'windIconsSmall/';
  378 | #
  379 | #
  380 | #
  381 | #
  382 | ##---------------------------------------------------------------------------
  383 | # soil  moistere + temp  & leaf moistere readings
  384 | #---------------------------------------------------------------------------
  385 | $SITE['soilUsed']	= false; 				// true = we use soil moistere & temp sensors | false = no soil
  386 | $SITE['soilPage']	= false; 				// set to true if you have soil sensors and want a separate page with soil leaf information
  387 | $SITE['soilCount']	= '2';					// 4 = max number of sensors
  388 | $SITE['soilDepth'][1]	= '10';					// depth in $SITE['uomSnow'] (either cm  or inch)
  389 | $SITE['soilDepth'][2]	= '30';					// sensor1 shallowest  sensor4 deepest
  390 | $SITE['soilDepth'][3]	= '50';					// 
  391 | $SITE['soilDepth'][4]	= '75';					// 
  392 | $SITE['uomMoist']	= ' cb';				// Unit of measure for moisture in soil: cb (default) or Kpa. 
  393 | $SITE['leafUsed']	= false; 				// do we use leaf moistere sensors 
  394 | $SITE['leafCount']	= '0';					// 4 = max numer of leaf sensors
  395 | $SITE['soilPageNr']	= '69';					// soilpage number from menudata.xml
  396 | #---------------------------------------------------------------------------
  397 | # show extra information about visitors in footer
  398 | #
  399 | # if you want to include a flag and extra info about the visitor you need geolookup. In this version of the template only suppportsa paid subscription 
  400 | # http://www.ipgp.net I personally do not think it is worth its money for a weatherwebsite but give it a try, the first 3 days are free
  401 | #
  402 | $SITE['geoKey']		= '';					// ##### your key for use in inc/geoip: http://www.ipgp.net/api/xml/  $ip / $SITE['geoKey']
  403 | $SITE['visitorsFile']	= 'wolExported.str';	                // ip info about visitors is kept in this file (in cache directory), if not present it is created 
  404 | #
  405 | #---------------------------------------------------------------------------
  406 | #	Multi-language support 
  407 | #
  408 | $SITE['langFlags']	= true;    				// true=show flags
  409 | $SITE['langDir']	= 'lang/';				// all language translation files are store here
  410 | #
  411 | #
  412 | #---------------------------------------------------------------------------
  413 | # contact info
  414 | #---------------------------------------------------------------------------
  415 | $SITE['contactPage']	= 'yes';				// #####    do we want a contact page
  416 | $SITE['contactLink']	= 'index.php?p=86';                     // link to contact page
  417 | $SITE['contactDir']	= 'contact/';
  418 | $SITE['contactScript']	= $SITE['contactDir'].'incContact.php';
  419 | #
  420 | # ----------------- space page ---------------------------------------------
  421 | #
  422 | #
  423 | #
  424 | #
  425 | #---------------------------------------------------------------------------
  426 | # The units-of-measurement UOM for the correct display of your weatherdata   
  427 | #---------------------------------------------------------------------------
  428 | if ($SITE['region'] ==	'america' ) {
  429 | #---------------------------------------------------------------------------
  430 | #  here we define unit settings for  the  U S A   = imperial
  431 | #---------------------------------------------------------------------------
  432 | 	$SITE['uomTemp']    	= '°F';
  433 | 	$SITE['uomBaro']	= ' inHg';
  434 | 	$SITE['uomWind'] 	= ' mph';
  435 | 	$SITE['uomRain']	= ' in';
  436 | 	$SITE['uomSnow']	= ' in';
  437 | 	$SITE['uomDistance']	= ' mi';
  438 | 	$SITE['uomPerHour'] 	= '/hr';
  439 | 	$SITE['uomHeight']	= 'ft';
  440 | #---------------------------------------------------------------------------			
  441 | } else {
  442 | #---------------------------------------------------------------------------
  443 | #  here we define unit settings for  the for the rest of the world = metric
  444 | #---------------------------------------------------------------------------			
  445 | 	$SITE['uomTemp']    	= '°C';     // '°C';  // ='°C', ='°F'
  446 | 	$SITE['uomBaro']	= ' hPa';       //'  hPa';    // =' hPa', =' mb', =' inHg'
  447 | 	$SITE['uomWind'] 	= ' km/h';      // ' km/h';   // =' km/h', =' kts', =' m/s', =' mph'
  448 | 	$SITE['uomRain']	= ' mm';        // ' mm';     // =' mm', =' in'
  449 | 	$SITE['uomSnow']	= ' cm';  	// ' cm', =' in'
  450 | 	$SITE['uomDistance']	= ' km';  	// ' km' or ' mi'  -- used for visibillity Wind Run display
  451 | 	$SITE['uomPerHour'] 	= '/hr';
  452 | 	$SITE['uomHeight']	= 'm';          // 'ft'  or 'm'    cloud height
  453 | }
  454 | #
  455 | #---------------------------------------------------------------------------
  456 | #  forecast settings
  457 | #
  458 | #---------------------------------------------------------------------------
  459 | #	do we use wxsim. Can be on starttpage or as separate page
  460 | #
  461 | $SITE['wxsimPage']	= false; 		// ##### 
  462 | $SITE['wxsimDir']	= './wsWxsim/';
  463 | $SITE['wxsimData']	= '../';		// root folder   ####################
  464 | $SITE['wxsimIconsDir']	= $SITE['iconsDir'].'yrno_icons/';
  465 | $SITE['wxsimIconsSml']	= $SITE['iconsDir'].'yrno_icons_small/';
  466 | $SITE['wxsimIconsOwn']	= false;  		// use wxsim icons (true) or our template icons (false)
  467 | #
  468 | #
  469 | #---------------------------------------------------------------------------
  470 | #	WU  settings for forecast  only as a separate page
  471 | #										
  472 | $SITE['wuPage']		= 'yes';   		// #####  WU forecastpage in menu
  473 | #
  474 | # if set to false or 'no' do not bother with other $SITE["wu ...] settings as they are not used than
  475 | #
  476 | $SITE['wuKey']		= 'bdd2d54c099b7eb5'; 	// ##### set to your (free) Wunderground API key to retreive weatherinfo in xml
  477 | $SITE['wuFctId']	= 'Greece/Athens'; 	// ##### Forecast XML set to Wunderground city id or to your pws id:  "Belgium/Leuven"  or "PWS:IVLAAMSG47"
  478 | $SITE['wuIconsDir']	= $SITE['iconsDir'].'wu_icons/';	
  479 | $SITE['wuIconsOwn']	= false;  		// use wu icons (true) or our template icons (false)
  480 | $SITE['wuIconsCache']	= true;			// use wu icons from our cache (true) or our wu icons from wu url (false)
  481 | #---------------------------------------------------------------------------
  482 | # 	MET.no settings  used for the forecasts
  483 | #---------------------------------------------------------------------------
  484 | #
  485 | $SITE['metnoPage']	= 'yes';	// #####  metno forecast page in menu	
  486 | #                                               this is the extensive forecast with graphs and icons
  487 | #       following icon settings for metno AND for yrno forecast
  488 | $SITE['yrnoIconsOwn']	= false; 	// use yrno icons (true) or our template icons (false)
  489 | $SITE['yrnoIconsDir']	= $SITE['iconsDir'].'yrno_icons/';      // location of the icons	
  490 | #---------------------------------------------------------------------------
  491 | # 	YR.no settings  used for the forecasts  for main-site - mobile site and graphical forecast display on mainpage                                             
  492 | #--------------------------------------------------------------------------- 
  493 | #							
  494 | $SITE['yrnoPage']	= 'yes';	// #####  yrno forecast page in menu this is the one-page forecast with meteogram only	
  495 | #
  496 | #	if you set the page to 'no' for the main site you still YOU HAVE TO SET the other settings correctly
  497 | #       for background yowindow and mobile site
  498 | $SITE['yrnoID']		= 'Greece/Central_Greece/Aráchova/';	// #####   generic adres for .png forecast
  499 | #$SITE['yrnoID']	= 'Greece/Central_Greece/Aráchova/';	                // example for sewdisch city
  500 | $SITE['yrnoFcst']	= 'wsyrnofct/startMobi.php';    // forecast script location used in mobile site
  501 | #---------------------------------------------------------------------------
  502 | # HWA Het Weer Actueel settings  Settings used for the HWA forecast page and (graphical) forecast display on mainpage
  503 | #---------------------------------------------------------------------------
  504 | #	
  505 | $SITE['hwaPage']	= false;        // ##### hwa forecast page in menu
  506 | #	You can set the separate page to false BUT if you want to use HWA as a forecast on the main page
  507 | #       set the other $SITE["hwa ...] settings correctly
  508 | # 	if you do not use HWA do not bother with other $SITE["hwa ...] settings as they are not used
  509 | #
  510 | $SITE['hwaXmlId']	= '000';				// ##### your Het Weer Actueel ID to retreive xml info
  511 | $SITE['hwaXmlKey']	= 'x67f7fb873eaf29526a11a9b7ac33bfac';  // ##### your Het Weer Actueel key to retreive xml info
  512 | $SITE['hwaIconsDir']	= 'wsHwa/hwa_icons/';	
  513 | $SITE['hwaIconsOwn']	= false; 		// use hwa icons from cache (true) or our template icons (false)
  514 | #
  515 | #
  516 | #
  517 | #
  518 | #
  519 | #---------------------------------------------------------------------------
  520 | # Yahoo settings   	Yahoo can be used for 1. the current conditions 2. forecast on mainpage and 3. a separate page with the forecast
  521 | #---------------------------------------------------------------------------
  522 | #
  523 | $SITE['yahooPage']	= 'yes';		// here you specify if you want a separate page
  524 | #	if you use yahoo to supply the current weather conditions you HAVE to set the other settings correctly
  525 | #	https://weather.yahoo.com find your city and copy the number, check for Leuven and you find 973505
  526 | $SITE['yaPlaceID']	= '946293';	        // ##### 973505 = Leuven 
  527 | $SITE['yahooIconsOwn']	= false;		// use yahoo icons (true) or our template icons (false)
  528 | #
  529 | #---------------------------------------------------------------------------
  530 | # World Weather settings        World Weather can be used for a small separate forecast page
  531 | #---------------------------------------------------------------------------
  532 | #	
  533 | $SITE['worldPage']	= 'no'; 	// ##### world weather forecast page in menu
  534 | #       if set to false or '' do not bother with other $SITE["world ...] settings as they are not used
  535 | #
  536 | $SITE['worldKey']	= 'xegdt5rnspg8ypk8zuwpnnbw8';          #####
  537 | #       set your own key  request a (free) key if you want to use their forecast
  538 | $SITE['worldID']	= trim($SITE['latitude']).','.trim($SITE['longitude']);
  539 | $SITE['worldIconsOwn']	= false; 	// use worldweather icons (true) or our template icons (false)
  540 | #---------------------------------------------------------------------------
  541 | #	Partner information:
  542 | #---------------------------------------------------------------------------
  543 | # 	your id's for weather sites, mostly used to display logo and make a link to your weatherdata on their site
  544 | #	set to false if you do not cooperate with them
  545 | #
  546 | # WU  settings for your data at wunderground site  IVLBRABA2
  547 | #
  548 | $SITE['wuId']		= 'ITHESSAL37';		// ##### the ID of your personal weather station at the Wunderground site
  549 | $SITE['wuStart']	= '01-08-2014'; 	// #####  Stations first day of operation at wunderground format dd-mm-yyyy for wu history page
  550 | #
  551 | $SITE['wuHistPage']	= 'yes';  		// ##### set to no is you are not a member of WeatherUnderground
  552 | #
  553 | #$SITE['wuIdHome']	= 'http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID='.$SITE['wuId'];
  554 | #
  555 | # other sites where your data is shown
  556 | #
  557 | $SITE['hwaID']		= false; 	// ##### Example  $SITE[hwaID']		= 'abcdefg';
  558 | $SITE['wowID']		= false;	// ##### Example  $SITE['wowID']        = 1234567;
  559 | $SITE['awekasID']	= 11809;	// ##### Example  $SITE['awekasID']	= 1234;
  560 | $SITE['anWeID']		= false;	// ##### Example  $SITE['anWeID']	= 1234567;
  561 | $SITE['pwsID']		= false;	// ##### Example  $SITE['pwsID']	= 'abcd99';
  562 | $SITE['cwopId']		= false;	// ##### Example  $SITE['cwopId']       = 'C6440';
  563 | $SITE['weatherlinkID']	= false;	// ##### Example  $SITE['weatherlinkID']= 'abcdefgh';
  564 | $SITE['wp24ID']		= false;   	// ##### true or false
  565 | $SITE['uswg']		= false;   	// ##### true or false
  566 | #---------------------------------------------------------------------------
  567 | # Mesonet id's and names
  568 | #---------------------------------------------------------------------------
  569 | $SITE['mesoID']		= false;			// #####  'WCWN';  'BNLWN';
  570 | $SITE['mesoName']	= 'xyz Weather Network';	// #####  'Benelux Weather Network';
  571 | $SITE['mesoLink']	= 'http://www.xyz.com/';	// #####  'http://www.beneluxweather.net/';
  572 | #
  573 | $SITE['ewnID']		= true; 			// #####
  574 | #------------------------------------------------------------------------- #####
  575 | # end of configurable settings  - please do NOT change the settings below
  576 | #---------------------------------------------------------------------------
  577 | if ($SITE['region'] <> 'europe') {$SITE['ewnID'] = false;}      // ewn only works  in europ
  578 | #---------------------------------------------------------------------------
  579 | # Ajax
  580 | #---------------------------------------------------------------------------
  581 | $SITE['imgAjaxDir']	= 'ajaxImages/';		// directory for ajaxImages with trailing slash
  582 | $SITE['wsAjaxScript']   = 'javaScripts/ajax.js';	// for AJAX enabled display
  583 | $SITE['wsAjaxDataLoad'] = 'wsAjaxDataLoad.php';		// load fresh data for ajax page at users site
  584 | $SITE['ajaxGizmojs']    = 'javaScripts/ajaxgizmo.js'; 	// rotate gizmo info
  585 | $SITE['ajaxGizmo'] 	= 'incAjaxGizmo.php'; 		// default Giozmo
  586 | #---------------------------------------------------------------------------
  587 | # Which scripts to use to process the supplied data
  588 | #---------------------------------------------------------------------------
  589 | $SITE['functions']	= 'wsFunctions.php';  		// weather functions, override
  590 | $SITE['langFunc']	= 'wsLangFunctions.php';	// general functions for languages
  591 | $SITE['menuXml'] 	= 'wsMenuData.xml';		// menu processes 'incMenuDataWilsele.xml';
  592 | $SITE['menuLoad'] 	= 'wsMenuLoad.php';
  593 | $SITE['spidersTxt']	= 'spiders.txt';
  594 | $SITE['uvScript']	= 'uvforecastv3.php';	        // worldwide forecast script for UV Index
  595 | $SITE['uvLink']         = 'index.php?p=58';
  596 | $SITE['sideInc']	= 'wsSideColom.php';
  597 | $SITE['bottomInc']	= 'wsBottom.php';
  598 | $SITE['footer']  	= 'wsFooter.php';
  599 | #---------------------------------------------------------------------------
  600 | #  script names for conversion of weatherprogram data to website/ajax data
  601 | #---------------------------------------------------------------------------
  602 | $SITE['getData']	= 'wsDataGet.php';		// data from ws tags to intermidiate array
  603 | $SITE['loadData']	= 'wsDataLoad.php';		// load data into variables (mostly ajax)
  604 | #---------------------------------------------------------------------------
  605 | # Website CSS files
  606 | #---------------------------------------------------------------------------
  607 | $SITE['CSSscreen']	= 'styleMain30.css';		// general stylesheet all pages
  608 | $SITE['CSSprint']	= 'stylePrint20.css';		// general stylesheet all pages for printing
  609 | $SITE['CSStable']	= 'styleTable20.css';		// general stylesheet all tables
  610 | $SITE['CSSmenuHor']	= 'styleMenuDrop20.css';	// stylesheet horizontal drop down menus
  611 | $SITE['CSSmenuVer']	= 'styleMenuVert20x.css';	// stylesheet vertical fly-out menus
  612 | $SITE['CSSmood']	= 'styleMood20.css';		// stylesheet for adapting colors based on current  weathercondition
  613 | 
  614 | $SITE['noChoiceBackup']	= $SITE['noChoice'];
  615 | $SITE['menuPlaceBackup']= $SITE['menuPlace'];
  616 | $SITE['colorBackup']  	= $SITE['colorNumber'];
  617 | $SITE['headerBackup']  	= $SITE['header'];
  618 | $SITE['langBackup']	= $SITE['lang'];
  619 | #
  620 | # Multilanguage support constants 
  621 | $SITE['installedLanguages'] = array (
  622 | 'en' => 'English',
  623 | 'el' => 'Greek',
  624 | 'it' => 'Italian',
  625 | 'fr' => 'Français',
  626 | 'de' => 'Deutsch',
  627 | 'nl' => 'Nederlands',
  628 | );
  629 | #
  630 | $uomBackup = array (
  631 | 	'uomTemp' 	=> $SITE['uomTemp'],
  632 | 	'uomBaro' 	=> $SITE['uomBaro'],
  633 | 	'uomWind' 	=> $SITE['uomWind'],
  634 | 	'uomRain'	=> $SITE['uomRain'],
  635 | 	'uomSnow' 	=> $SITE['uomSnow'],
  636 | 	'uomDistance' 	=> $SITE['uomDistance'],
  637 | 	'uomPerHour' 	=> $SITE['uomPerHour'],
  638 | 	'uomHeight' 	=> $SITE['uomHeight']
  639 | );	
  640 | #
  641 | $SITE['supportedUnits'] = array ();
  642 | $SITE['supportedUnits'] ['temp'] = array('°C',	'°F');
  643 | $SITE['supportedUnits'] ['baro'] = array(' hPa',	' mb',	' inHg');
  644 | $SITE['supportedUnits'] ['wind'] = array(' km/h',	' kts',	' m/s',	' mph');
  645 | $SITE['supportedUnits'] ['rain'] = array(' mm',		' in');
  646 | 
  647 | # set the Timezone abbreviation automatically based on $SITE['tz'];
  648 | if (!function_exists('date_default_timezone_set')) {
  649 | 	 putenv("TZ=" . $SITE['tz']);
  650 | } else {
  651 | 	 date_default_timezone_set($SITE['tz']);
  652 | }
  653 | $SITE['tzName']	= date("T",time());
  654 | #
  655 | #---------------------------------------------------------------------------
  656 | # Automatic Info we might need
  657 | #---------------------------------------------------------------------------
  658 | if(isset($_SERVER['REMOTE_ADDR']))   {$SITE['REMOTE_ADDR']	= $_SERVER['REMOTE_ADDR'];}
  659 | if(isset($_SERVER['REMOTE_HOST']))   {$SITE['REMOTE_HOST']	= $_SERVER['REMOTE_HOST'];}
  660 | if(isset($_SERVER['DOCUMENT_ROOT'])) {$SITE['WEBROOT']		= $_SERVER['DOCUMENT_ROOT'];}
  661 | if(isset($_SERVER['REQUEST_URI']))   {$SITE['REQURI']		= $_SERVER['REQUEST_URI'];}
  662 | if(isset($_SERVER['SERVER_NAME']))   {$SITE['SERVERNAME']	= $_SERVER['SERVER_NAME'];}
  663 | #---------------------------------------------------------------------------
  664 | # misc
  665 | $SITE['pageAstroCode']  = 67;
  666 | $SITE['pageStatus']     = 83;
  667 | #---------------------------------------------------------------------------
  668 | if (!isset ($forecast) ) {$forecast  = 'yahoo  with 5 lines text only';}
  669 | $arr                    = explode ('with', $forecast );
  670 | $org                    = trim($arr[0]);
  671 | if (!isset ($arr[1]) ) {$arr[1] = 'icons';}
  672 | $content                = trim ($arr[1]);
  673 | $allowed                = array ('icons','meteogram'); 
  674 | $SITE['fctOrg']         = $org;
  675 | $SITE['fctContent']     = 'icons';
  676 | switch ($org){
  677 |      case 'metno':
  678 |         if (in_array ($content, $allowed) )   { $SITE['fctContent']     = $content;} 
  679 |         break;
  680 |      case 'wxsim':
  681 |         if (in_array ($content, $allowed) )   { $SITE['fctContent']     = $content;} 
  682 |         break; 
  683 |     case 'hwa':
  684 |         if ($SITE['region'] <> 'europe' || ($SITE['belgium'] == false && $SITE['netherlands'] == false) ) {
  685 |                 $SITE['hwaPage']        = false;
  686 |                 $SITE['fctOrg']         = 'yahoo'; 
  687 |                 break; 
  688 |         }
  689 |         $allowed        = array ('icons','meteogram','hwa/mos graphic');
  690 |         if (in_array ($content, $allowed) )   { $SITE['fctContent']     = $content;} 
  691 |         break; 
  692 |     case 'noaa':
  693 |         if ($SITE['region'] <> 'america') {
  694 |                 $SITE['noaaPage']       = false;
  695 |                 $SITE['fctOrg']         = 'yahoo'; 
  696 |                 break; 
  697 |         }
  698 |         if ( in_array ($content, $allowed) )  { $SITE['fctContent']     = $content;} 
  699 |         break; 
  700 |      case 'ec':
  701 |         if ($SITE['region'] <> 'canada') {
  702 |                 $SITE['ecPage']         = false;
  703 |                 $SITE['fctOrg']         = 'yahoo'; 
  704 |                 break; 
  705 |         }
  706 |         break;        
  707 |     default:
  708 |         $SITE['fctOrg']         = 'yahoo';
  709 |         $SITE['fctContent']     = 'text';
  710 | }
  711 | $SITE['fctOrgBackup']	= $SITE['fctOrg'];
  712 | $SITE['fctContentBackup']= $SITE['fctContent'];
  713 | #
  714 | if ($SITE['fctOrg'] == 'yahoo') {$SITE['yahooPage'] = true;}
  715 | if ($SITE['fctOrg'] == 'metno') {$SITE['metnoPage'] = true;}
  716 | if ($SITE['fctOrg'] == 'wxsim') {$SITE['wxsimPage'] = true;}
  717 | if ($SITE['fctOrg'] == 'hwa')   {$SITE['hwaPage']   = true;}
  718 | if ($SITE['fctOrg'] == 'noaa')  {$SITE['noaaPage']  = true;}
  719 | if ($SITE['fctOrg'] == 'ec')    {$SITE['ecPage']    = true;}
  720 | #
  721 | if ($SITE['region'] == 'america')       {$SITE['hwaPage'] = $SITE['ecPage']  = false; }
  722 | if ($SITE['region'] == 'canada')        {$SITE['hwaPage'] = $SITE['noaaPage']= false; }
  723 | if ($SITE['region'] == 'other')         {$SITE['hwaPage'] = $SITE['noaaPage']= $SITE['ecPage']  = false; }
  724 | if ($SITE['region'] == 'europe')        {$SITE['noaaPage']= $SITE['ecPage']  = false; }
  725 | if ($SITE['belgium'] == false && $SITE['netherlands'] == false) {$SITE['hwaPage'] = false;}
  726 | #
  727 | $SITE['allowedFctOrgs'] = array();
  728 | if ($SITE['yahooPage'] === 'yes' ||  $SITE['yahooPage'] === true) {
  729 | 	$SITE['allowedFctOrgs']['yahoo'] 	= array ('text');
  730 | }
  731 | if ($SITE['metnoPage'] === 'yes' ||  $SITE['metnoPage'] === true) {
  732 | 	$SITE['allowedFctOrgs']['metno'] 	= array ('icons','meteogram');
  733 | }
  734 | if ($SITE['hwaPage'] === 'yes' ||  $SITE['hwaPage'] === true) {
  735 | 	$SITE['allowedFctOrgs']['hwa'] 		= array ('icons','meteogram','hwa/mos');
  736 | }
  737 | if ($SITE['wxsimPage'] === 'yes' ||  $SITE['wxsimPage'] === true) {
  738 | 	$SITE['allowedFctOrgs']['wxsim'] 	= array ('icons','meteogram');
  739 | }
  740 | if ($SITE['noaaPage'] === 'yes' ||  $SITE['noaaPage'] === true) {
  741 | 	$SITE['allowedFctOrgs']['noaa'] 	= array ('icons','meteogram');
  742 | }
  743 | if ($SITE['ecPage'] === 'yes' ||  $SITE['ecPage'] === true) {
  744 | 	$SITE['allowedFctOrgs']['ec'] 	= array ('icons');
  745 | }
  746 | # -------- now fetch the weather software settings if the file exists
  747 | if(file_exists("wsSettingsWeather.php")) { 
  748 |         include "wsSettingsWeather.php" ;  }
  749 | #
  750 | $string1  = '';
  751 | if(isset($_SERVER['HTTP_HOST']))   {$string1     .= $_SERVER['HTTP_HOST'];}
  752 | if(isset($_SERVER['PHP_SELF']))    {$string1     .= $_SERVER['PHP_SELF'];}
  753 | $SITE['siteUrl']= 'http://'.str_replace ('index.php','',$string1);
  754 | #
  755 | if (isset ($wsDebug) && $wsDebug) {$SITE['wsDebug'] = true; } else {$SITE['wsDebug'] = false; $wsDebug = false;}
  756 | ?>

wsSettingsWeather.php SettingsFiles should pe password protected - dated: 28-10-2017 14:03

    1 | <?php
    2 | #-----------------------------------------------------------------------
    3 | # display source of script if requested so
    4 | #-----------------------------------------------------------------------
    5 | if (isset($_REQUEST['sce']) && strtolower($_REQUEST['sce']) == 'view' ) {
    6 |    $filenameReal = __FILE__;
    7 |    $download_size = filesize($filenameReal);
    8 |    header('Pragma: public');
    9 |    header('Cache-Control: private');
   10 |    header('Cache-Control: no-cache, must-revalidate');
   11 |    header("Content-type: text/plain");
   12 |    header("Accept-Ranges: bytes");
   13 |    header("Content-Length: $download_size");
   14 |    header('Connection: close');
   15 |    readfile($filenameReal);
   16 |    exit;
   17 | }
   18 | $pageName	= 'wsSettingsWeather.php';
   19 | if (!isset($SITE)){echo "<h3>invalid call to script $pageName</h3>";exit;}
   20 | $pageVersion	= '3.02 2015-01-20';
   21 | $SITE['wsModules'][$pageName] = 'version: ' . $pageVersion;
   22 | $pageFile = basename(__FILE__);	
   23 | if ($pageFile <> $pageName) {$SITE['wsModules'][$pageFile]	= 'this file loaded instead of '.$pageName;}
   24 | $pathString .= '<!-- module '.$pageFile.' ==== '.$SITE['wsModules'][$pageName].' -->'.PHP_EOL;
   25 | #---------------------------------------------------------------------------
   26 | # 3.02 2015-01-20 release version VWS
   27 | #---------------------------------------------------------------------------
   28 | #               Weather Station sensors and options for dashboard
   29 | #---------------------------------------------------------------------------
   30 | $SITE['UV']       	= false;  	// ##### set to false if no UV sensor
   31 | $SITE['SOLAR']    	= false;  	// ##### set to false if no Solar sensor
   32 | $SITE['extraTempLeft']  = true;  	// ##### set to false if no extra sensor available or wanted on Ajax page
   33 | $SITE['extraTempRight'] = false;  	// ##### set to false if no extra sensor available or wanted on Ajax page
   34 | #
   35 | #---------------------------------------------------------------------------
   36 | #               upload time for steelseries data
   37 | #---------------------------------------------------------------------------
   38 | $SITE['steelTime']	= 30;		// wait time to retrieve new info for steelseries gauges / realtime scripts
   39 | #---------------------------------------------------------------------------
   40 | #       Here we first set ALL specific weatherprogram-tag / pages to no
   41 | #       Do not change here as they are reset to values based on which weatherprogram is used
   42 | #---------------------------------------------------------------------------
   43 | $SITE['wdPage'] 	= 'no';		// WeatherDisplay
   44 | $SITE['cwPage'] 	= 'no';		// consolewd (WeatherDisplay for raspberryPI)
   45 | $SITE['wdlPage'] 	= 'no';		// WD  Live (flash)
   46 | $SITE['wlPage'] 	= 'no';		// WeatherLink
   47 | $SITE['wcPage'] 	= 'no';		// WeatherCat
   48 | $SITE['cuPage'] 	= 'no';		// Cumulus
   49 | $SITE['mhPage'] 	= 'no';		// Meteohub
   50 | $SITE['mbPage'] 	= 'yes';		// Meteobridge
   51 | $SITE['MeteoplugPage'] 	= 'no';		// Meteoplug
   52 | $SITE['cltrPage']	= 'no';		// Weather Display Live clientraw files 
   53 | $SITE['trendPage'] 	= 'no';		// trendpage for all weather programs
   54 | $SITE['mwPage'] 	= 'no';	        // meteoware page (flash)
   55 | $SITE['graphsPage'] 	= 'no';		// graphs from weather program
   56 | $SITE['wsYTags']  	= '';           // most weatherprograms do not need a separate yesterday file
   57 | #---------------------------------------------------------------------------
   58 | #       Are you using a DAVIS Weather Station VP or VUE
   59 | #---------------------------------------------------------------------------
   60 | $SITE['DavisVP']  	= false;  	// ##### set to false if not a Davis VP or VUE weather station
   61 | #---------------------------------------------------------------------------
   62 | #       Do you want to show a picture and text of your weather station in sidecolomn or bottom area
   63 | #---------------------------------------------------------------------------
   64 | $SITE['stationShow']	= false;		// ##### set to false if you do not want it
   65 | #
   66 | $SITE['stationTxt']	= 'Davis VP2';
   67 | $SITE['stationJpg']	= 'img/davis_logo.png';
   68 | $SITE['stationLink']	= 'http://www.davisnet.com/weather/products/professional-home-weather-stations.asp';
   69 | #								
   70 | # example for Alecto:
   71 | #$SITE['stationTxt'] 	= 'Alecto WS-5000 ECO';	    	# the brand and name of your station
   72 | #$SITE['stationJpg'] 	= 'img/alecto.jpg';      	# a small picture of your station
   73 | #$SITE['stationLink']	= 'http://www.alecto.nl/TradePoint/Item_View?itemNo=WS-5000%20ECO'; 
   74 | #---------------------------------------------------------------------------
   75 | #       Do you want to show which Website provider you are using
   76 | #---------------------------------------------------------------------------
   77 | $SITE['providerShow']	= false;		// ##### set to false if you do not want it
   78 | #
   79 | $SITE['providerTxt']	= 'My provider';                // you have to fill in your own information
   80 | $SITE['providerJpg']	= 'img/_provider.jpg';          // default picture
   81 | $SITE['providerLink']	= 'http://www.provider.xyz/';   // here also
   82 | #
   83 | #---------------------------------------------------------------------------
   84 | #       Do you want to show which computer you are using for your weatherprograms
   85 | #---------------------------------------------------------------------------
   86 | $SITE['pcShow']		= false;         // ##### 
   87 | #
   88 | $SITE['pcTxt']		= 'My Computer';
   89 | $SITE['pcJpg']		= 'img/_computer.png';
   90 | $SITE['pcLink'] 	= 'http://www.computer.xyz';
   91 | # example for consoleWD on a raspberry
   92 | #$SITE['pcTxt']		= 'RaspberryPI';
   93 | #$SITE['pcJpg']		= 'img/raspi_logo.png';
   94 | #$SITE['pcLink'] 	= 'http://www.raspberrypi.org/';
   95 | # and here one for Meteobridge on an Asus router
   96 | #$SITE['pcTxt']		= 'Asus WL -330N3G';
   97 | #$SITE['pcJpg']		= 'img/asus.png';
   98 | #$SITE['pcLink']	= 'http://www.awekas.at/shop/index.php/awekas-bridge-2.html';
   99 | #---------------------------------------------------------------------------
  100 | #       Below you find all settings PER weatherprogram.
  101 | #               Only change the settings for the weatherprogram you are using
  102 | #---------------------------------------------------------------------------
  103 | switch ($SITE['WXsoftware']) {
  104 | #---------------------------------------------------------------------------
  105 | #               required settings for     M E T E O H U B     
  106 | case 'MH':
  107 | #---------------------------------------------------------------------------
  108 |         $SITE['uploadDir']	=  'uploadMH/';	        // #####	where to store uploaded files (weather variables graphs clientraw)
  109 | #       $SITE['uploadDir']	=  '../';               // #####        example for upload to root
  110 |         $SITE['clientrawDir'] 	= $SITE['uploadDir']; 	// 	clientraw default in same location as other uploaded files
  111 |         $SITE['graphImageDir']  = $SITE['uploadDir'];   // 	graph images for website page also same location as other files
  112 | #
  113 | 	$SITE['wsSeqTemp']	= '°C';     // site default='°C', ='°F'
  114 | 	$SITE['wsSeqBaro']	= ' hPa';	// site default=' hPa', =' mb', =' inHg'
  115 | 	$SITE['wsSeqWind']	= ' kts'; 	// its a pitty but the seq arrays for wind are different compared to the normal values
  116 | 	$SITE['wsSeqRain']	= ' mm';	// site default=' mm', =' in'
  117 | #
  118 | 	$SITE['MeteoplugPage'] 	= 'yes';	// ##### remove line IF YOU DO NOT USE Meteoplug (= paid extention to Meteohub)
  119 | 	$SITE['wdlPage'] 	= 'yes'; 	// ##### remove line IF YOU DO NOT WANT TO USE WeatherDisplay Live 
  120 | 	$SITE['cltrPage']	= 'yes';	// ##### remove line IF YOU DO NOT upload clientraw files
  121 | 	$SITE['mhPage'] 	= 'yes';
  122 | 	$SITE['trendPage'] 	= 'yes';	 
  123 | 	$SITE['graphsPage'] 	= 'yes';
  124 | #
  125 | 	$SITE['WXsoftwareURL']  = 'http://wiki.meteohub.de/Main_Page';
  126 | 	$SITE['WXsoftwareLongName']= 'Meteohub';
  127 | 	$SITE['WXsoftwareIcon'] = 'img/meteohub.jpg';
  128 | 	$SITE['WXsoftwareShow']	= true;		// ##### show a picture and text in sidecolomn or bottom area
  129 | 	
  130 | 	$SITE['wsAjaxDataLoad'] = 'wsAjaxDataLoad_v3.php';
  131 | 	$SITE['realtime']	= 'cltrw';
  132 | #        $SITE['realtime']	= 'none';
  133 |         $SITE['realtime_file']	= $SITE['clientrawDir'].'clientraw.txt';
  134 | 
  135 | #
  136 | 	$SITE['steelFile']	= $SITE['uploadDir'].'realtimeTags.txt';
  137 | 	$SITE['wsTags'] 	= $SITE['uploadDir'].'todayTags.php';	
  138 | 	$SITE['wsYTags']  	= $SITE['uploadDir'].'ydayTags.php';
  139 | 	$SITE['yrnoXmlName']	= 'yowindowRT.php'; 	
  140 |         break;
  141 | #---------------------------------------------------------------------------
  142 | #               required settings for   M E T E O B R I D G E   
  143 | case 'MB':
  144 | #---------------------------------------------------------------------------
  145 |         $SITE['uploadDir']	=  'uploadMB/';	        // #####	where to store uploaded files (weather variables graphs clientraw)
  146 | #       $SITE['uploadDir']	=  '../';               // #####        example for upload to root
  147 |         $SITE['clientrawDir'] 	= $SITE['uploadDir']; 	// 	clientraw default in same location as other uploaded files
  148 |         $SITE['graphImageDir']  = $SITE['uploadDir'];   // 	graph images for website page also same location as other files
  149 | #
  150 | 	$SITE['mbPage'] 	= 'yes';
  151 | 	$SITE['trendPage'] 	= 'yes';
  152 | 	$SITE['graphsPage'] 	= 'yes';
  153 | #
  154 | 	$SITE['WXsoftwareURL']  = 'http://www.meteobridge.com/wiki/index.php/Main_Page';
  155 | 	$SITE['WXsoftwareLongName']= 'Meteobridge';
  156 | 	$SITE['WXsoftwareIcon'] = 'img/meteobridge.jpg';
  157 | 	$SITE['WXsoftwareShow']	= true;		        // ##### show a picture and text in sidecolomn or bottom area
  158 | #
  159 | 	$SITE['steelFile']	= $SITE['uploadDir'].'realtime.txt';
  160 | 	$SITE['wsTags'] 	= $SITE['uploadDir'].'tags.php';
  161 | #	$SITE['wsTags'] 	= $SITE['uploadDir'].'tagsSoil.php';
  162 | 	$SITE['yrnoXmlName']	= $SITE['uploadDir'].'yowindow.xml';
  163 |         break;
  164 | #---------------------------------------------------------------------------
  165 | #               required settings for   W E A T H E R   D I S P L A Y   
  166 | case 'WD':
  167 | #---------------------------------------------------------------------------
  168 |         $SITE['uploadDir']	=  'uploadWD/';	        // #####	where to store uploaded files (weather variables graphs clientraw)
  169 | #       $SITE['uploadDir']	=  '../';               // #####        example for upload to root
  170 |         $SITE['clientrawDir'] 	= $SITE['uploadDir']; 	// 	clientraw default in same location as other uploaded files
  171 |         $SITE['graphImageDir']  = $SITE['uploadDir'];   // 	graph images for website page also same location as other files
  172 | #
  173 | 	$SITE['wdPage'] 	= 'yes';
  174 | 	$SITE['wdlPage'] 	= 'yes'; 	        // ##### remove line IF YOU DO NOT WANT TO USE WeatherDisplay Live 
  175 | 	$SITE['cltrPage']	= 'yes';	        // ##### remove line IF YOU DO NOT WANT upload clientraw files	
  176 | 	$SITE['trendPage'] 	= 'yes';
  177 | 	$SITE['graphsPage'] 	= 'yes';
  178 | #
  179 | 	$SITE['WXsoftwareURL']  = 'http://www.weather-display.com/';
  180 | 	$SITE['WXsoftwareLongName'] = 'Weather Display';
  181 | 	$SITE['WXsoftwareIcon'] = 'img/wd.jpg';
  182 | 	$SITE['WXsoftwareShow']	= true;		// ##### show a picture and text in sidecolomn or bottom area
  183 | #
  184 | 	$SITE['steelFile']	= $SITE['uploadDir'].'customclientraw.txt';
  185 | 	$SITE['wsTags'] 	= $SITE['uploadDir'].'testtags.php'; 
  186 |  	$SITE['yrnoXmlName']	= $SITE['uploadDir'].'yowindow.xml';
  187 |         break;
  188 | #---------------------------------------------------------------------------
  189 | #               required settings for   C O N S O L E  WD  (= on raspberryPI)
  190 | case 'CW':
  191 | #---------------------------------------------------------------------------
  192 |         $SITE['uploadDir']	=  'uploadCW/';	        // #####	where to store uploaded files (weather variables graphs clientraw)
  193 | #       $SITE['uploadDir']	=  '../';               // #####        example for upload to root
  194 |         $SITE['clientrawDir'] 	= $SITE['uploadDir']; 	// 	clientraw default in same location as other uploaded files
  195 |         $SITE['graphImageDir']  = $SITE['uploadDir'];   // 	graph images for website page also same location as other files
  196 | #
  197 | 	$SITE['cwPage'] 	= 'yes';
  198 | 	$SITE['wdlPage'] 	= 'yes'; 	        // ##### remove line IF YOU DO NOT WANT TO USE WeatherDisplay Live 
  199 | 	$SITE['cltrPage']	= 'yes';	        // ##### remove line IF YOU DO NOT WANT upload clientraw files	
  200 | 	$SITE['trendPage'] 	= 'yes';
  201 | 	$SITE['wxsimPage']	= 'no';
  202 | #
  203 | 	$SITE['WXsoftwareURL']  = 'http://www.weather-display.com/';
  204 | 	$SITE['WXsoftwareLongName'] = 'consoleWD';	
  205 | 	$SITE['WXsoftwareIcon'] = 'img/consolewd.png';
  206 | 	$SITE['WXsoftwareShow']	= true;		// ##### show a picture and text in sidecolomn or bottom area
  207 | #
  208 | 	$SITE['steelFile']	= $SITE['uploadDir'].'customclientraw.txt';
  209 | 	$SITE['wsTags'] 	= $SITE['uploadDir'].'testtags.php';
  210 | 	$SITE['yrnoXmlName']	= $SITE['uploadDir'].'yowindow.php';
  211 |         break;
  212 | #---------------------------------------------------------------------------
  213 | #               required settings for   C U M U L U S
  214 | case 'CU':
  215 | #---------------------------------------------------------------------------
  216 |         $SITE['uploadDir']	=  'uploadCU/';	        // #####	where to store uploaded files (weather variables graphs clientraw)
  217 | #       $SITE['uploadDir']	=  '../';               // #####        example for upload to root
  218 |         $SITE['clientrawDir'] 	= $SITE['uploadDir']; 	// 	clientraw default in same location as other uploaded files
  219 |         $SITE['graphImageDir']  = $SITE['uploadDir'];   // 	graph images for website page also same location as other files
  220 | #	$SITE['graphImageDir']	= "../cumulus/images/";	// ##### often CU users store there steelseries and other graphs here 
  221 | #
  222 | 	$SITE['cuPage'] 	= 'yes';
  223 | 	$SITE['trendPage'] 	= 'yes';
  224 | 	$SITE['graphsPage'] 	= 'yes';
  225 | #
  226 | 	$SITE['WXsoftwareURL']  = 'http://sandaysoft.com/products/cumulus';	
  227 | 	$SITE['WXsoftwareLongName'] = 'Cumulus';
  228 | 	$SITE['WXsoftwareIcon'] = 'img/cumulus.gif';
  229 | 	$SITE['WXsoftwareShow']	= true;		// ##### show a picture and text in sidecolomn or bottom area
  230 | #
  231 | 	$SITE['steelFile']	= $SITE['uploadDir'].'realtimeTags.txt';
  232 | 	$SITE['wsTags'] 	= $SITE['uploadDir'].'tags.php';        
  233 | 	$SITE['yrnoXmlName']	= $SITE['uploadDir'].'yowindow.php';
  234 |         break;
  235 | #---------------------------------------------------------------------------
  236 | #               required settings for   W E A T H E R L I N K
  237 | case 'WL':
  238 | #---------------------------------------------------------------------------
  239 |         $SITE['uploadDir']	=  'uploadWL/';	        // #####	where to store uploaded files (weather variables graphs clientraw)
  240 | #       $SITE['uploadDir']	=  '../';               // #####        example for upload to root
  241 |         $SITE['clientrawDir'] 	= $SITE['uploadDir']; 	// 	clientraw default in same location as other uploaded files
  242 |         $SITE['graphImageDir']  = $SITE['uploadDir'];   // 	graph images for website page also same location as other files
  243 | #
  244 | 	$SITE['wsDateTime']	= 'd-m-y';		
  245 | 	$SITE['wlPage'] 	= 'yes';			
  246 | 	$SITE['graphsPage'] 	= 'yes';
  247 | #
  248 | 	$SITE['WXsoftwareURL']  = 'http://www.davisnet.com/index.asp';	
  249 | 	$SITE['WXsoftwareLongName'] = 'WeatherLink';
  250 | 	$SITE['WXsoftwareIcon'] = 'img/weatherlink.png';
  251 | 	$SITE['WXsoftwareShow']	= true;		        // ##### show a picture and text in sidecolomn or bottom area
  252 | #
  253 | 	$SITE['steelFile']	= $SITE['uploadDir'].'realtimeTags.php';
  254 | 	$SITE['wsTags'] 	= $SITE['uploadDir'].'todayTags.php'; 
  255 | 	$SITE['wsYTags']  	= $SITE['uploadDir'].'ydayTags.php';
  256 | 	$SITE['yrnoXmlName']	= $SITE['uploadDir'].'yowindow.php';
  257 | 	$SITE['moonSet']  	= 'inc/astronomy.php'; 	// to calculate moon set & rise values
  258 |         break;
  259 | #---------------------------------------------------------------------------
  260 | #               required settings for   W E A T H E R   C A T  (for Mac)
  261 | case 'WC':
  262 | #---------------------------------------------------------------------------
  263 |         $SITE['uploadDir']	=  'uploadWC/';	        // #####	where to store uploaded files (weather variables graphs clientraw)
  264 | #       $SITE['uploadDir']	=  '../';               // #####        example for upload to root
  265 |         $SITE['clientrawDir'] 	= $SITE['uploadDir']; 	// 	clientraw default in same location as other uploaded files
  266 |         $SITE['graphImageDir']  = $SITE['uploadDir'];   // 	graph images for website page also same location as other files
  267 | #
  268 | #	$SITE['wsDateTime']	= 'd-m-y';		
  269 | 	$SITE['wcPage'] 	= 'yes';			
  270 | 	$SITE['graphsPage'] 	= 'yes';
  271 | #
  272 | 	$SITE['WXsoftwareURL']  = 'http://trixology.com/weathercat/';	
  273 | 	$SITE['WXsoftwareLongName'] = 'WeatherCat';
  274 | 	$SITE['WXsoftwareIcon'] = 'img/weathercat.png';
  275 | 	$SITE['WXsoftwareShow']	= true;		// ##### show a picture and text in sidecolomn or bottom area
  276 | #
  277 | 	$SITE['steelFile']	= $SITE['uploadDir'].'realtimeTags.txt';
  278 | 	$SITE['wsTags'] 	= $SITE['uploadDir'].'wsTagsWC.php'; 
  279 | 	$SITE['yrnoXmlName']	= $SITE['uploadDir'].'yowindow.php';
  280 | 	$SITE['moonSet']  	= 'inc/astronomy.php'; 	// to calculate moon set & rise values
  281 |         break;
  282 | #---------------------------------------------------------------------------
  283 | #               required settings for   WeatherLink.com
  284 | case 'DW':
  285 | #---------------------------------------------------------------------------
  286 |         $SITE['uploadDir']	=  'uploadXX/';
  287 |         $SITE['clientrawDir'] 	= $SITE['uploadDir']; 	// 	clientraw default in same location as other uploaded files
  288 |         $SITE['graphImageDir']  = $SITE['uploadDir'];   // 	graph images for website page also same location as other files
  289 | #
  290 |         $SITE['DavisVP']  	= false;  	        // false as wl.com does not support Davis forecast text in xml
  291 |         $SITE['wlink_key']      = 'xyz';        // #####
  292 |         $SITE['wlink_pw']       = 'xyz';        // #####
  293 | #
  294 | 	$SITE['wlcPage'] 	= 'yes';			
  295 | 	$SITE['graphsPage'] 	= 'yes';
  296 | #
  297 | 	$SITE['WXsoftwareURL']  = 'http://www.weatherlink.com/user/'.$SITE['wlink_key'].'/index.php';	
  298 | 	$SITE['WXsoftwareLongName'] = 'Davis Weatherlink.Com';
  299 | 	$SITE['WXsoftwareIcon'] = 'img/wl_top.png';
  300 | 	$SITE['WXsoftwareShow']	= true;		// ##### show a picture and text in sidecolomn or bottom area
  301 | #
  302 | #	$SITE['steelFile']	= $SITE['uploadDir'].'realtimeTags.txt';
  303 | 	$SITE['wsTags'] 	= $SITE['uploadDir'].'tagsWLCOM.php'; 
  304 | 	$SITE['wsCronTags']  	= $SITE['uploadDir'].'yesterday_tagsWLCOM.php';
  305 | 	$SITE['yrnoXmlName']	= '';
  306 | 	$SITE['moonSet']  	= 'inc/astronomy.php'; 	// to calculate moon set & rise values
  307 |         $SITE['cacheDW']        = 140;  // cache time max allowed in seconds
  308 |         break;
  309 | #---------------------------------------------------------------------------
  310 | #               required settings for   WSWIN / 
  311 | case 'WS':
  312 | #---------------------------------------------------------------------------
  313 |         $SITE['uploadDir']	=  'uploadWS/';	        // #####	where to store uploaded files (weather variables graphs clientraw)
  314 | #       $SITE['uploadDir']	=  '../';               // #####        example for upload to root
  315 |         $SITE['clientrawDir'] 	= $SITE['uploadDir']; 	// 	clientraw default in same location as other uploaded files
  316 |         $SITE['graphImageDir']  = $SITE['uploadDir'];   // 	graph images for website page also same location as other files
  317 | #
  318 | 	$SITE['WXsoftwareShow']	= true;		        // ##### show a picture and text in sidecolomn or bottom area
  319 | 
  320 |         $SITE['cltrPage'] = $SITE['wdlPage'] = 'yes';	// Weather Display Live clientraw files /pages
  321 |  
  322 |         $SITE['trendPage'] 	= 'yes';		// trendpage 
  323 | 
  324 |         $SITE['mwPage'] 	= 'yes';	        // meteoware page (flash)
  325 |         $SITE['meteowareFile']  = './mwlive/mwliveRT.php';
  326 |         		
  327 | #	$SITE['graphsPage'] 	= 'yes';
  328 | #
  329 | #        $SITE['realtime']	= 'json';               // not yet supported for wswin - use ckentraw
  330 | #        $SITE['realtime_file']	= $SITE['uploadDir'].'realtimeTags.txt';
  331 | 
  332 |         $SITE['realtime']	= 'cltrw';
  333 |         $SITE['realtime_file']	= $SITE['clientrawDir'].'clientraw.txt';
  334 | 
  335 | #        $SITE['realtime']	= 'none';
  336 | 
  337 |         $SITE['wsAjaxDataLoad'] = 'wsAjaxDataLoad_v3.php';
  338 |         
  339 |         $SITE['yrnoXmlName']	= 'yowindowRT.php'; 
  340 |          
  341 | 	$SITE['wsTags'] 	= $SITE['uploadDir'].'todayTagsWSWIN.php'; 
  342 |         $SITE['wswin_day_txt']  = $SITE['uploadDir'].'tags.txt';
  343 | 	$SITE['wsCronTags']  	= $SITE['uploadDir'].'yesterdayTagsWSWIN.php';
  344 | 
  345 | 	$SITE['WXsoftwareURL']  = 'http://www.pc-wetterstation.de/en1index.html';	
  346 | 	$SITE['WXsoftwareLongName'] = 'WSWIN';
  347 | 	$SITE['WXsoftwareIcon'] = 'img/wswin.gif';
  348 | #
  349 |         $SITE['gaugespecs']     = false;
  350 |         break;
  351 | #---------------------------------------------------------------------------
  352 | #               required settings for   WVIEW / 
  353 | case 'WV':
  354 | #---------------------------------------------------------------------------
  355 |         $SITE['uploadDir']	=  'uploadWV/';	        // #####	where to store uploaded files (weather variables graphs clientraw)
  356 | #       $SITE['uploadDir']	=  '../';               // #####        example for upload to root
  357 |         $SITE['clientrawDir'] 	= false; 	        // 	clientraw default in same location as other uploaded files
  358 |         $SITE['graphImageDir']  = $SITE['uploadDir'];   // 	graph images for website page also same location as other files
  359 | #
  360 | 	$SITE['WXsoftwareShow']	= true;		        // ##### show a picture and text in sidecolomn or bottom area
  361 | 
  362 |         $SITE['cltrPage'] = $SITE['wdlPage'] = 'no';	// Weather Display Live clientraw files /pages
  363 |  
  364 |         $SITE['trendPage'] 	= 'no';		        // trendpage 
  365 | 
  366 |         $SITE['mwPage'] 	= 'yes';	        // meteoware page (flash)
  367 |         $SITE['meteowareFile']  = './mwlive/mwliveRT.php';
  368 |         		
  369 | #	$SITE['graphsPage'] 	= 'yes';
  370 | #
  371 | #        $SITE['realtime']	= 'json';               // not yet supported for wswin - use ckentraw
  372 | #        $SITE['realtime_file']	= $SITE['uploadDir'].'realtimeTags.txt';
  373 | 
  374 |         $SITE['realtime']	= 'cltrw';
  375 |         $SITE['realtime_file']	= $SITE['clientrawDir'].'clientraw.txt';
  376 | 
  377 |         $SITE['realtime']	= 'none';
  378 | 
  379 |         $SITE['wsAjaxDataLoad'] = 'wsAjaxDataLoad_v3.php';
  380 |         
  381 |         $SITE['yrnoXmlName']	= 'yowindowRT.php'; 
  382 |          
  383 | 	$SITE['wsTags'] 	= $SITE['uploadDir'].'tags.htm'; 
  384 |         $SITE['wview_day_txt']  = $SITE['uploadDir'].'tags.htm';
  385 | 	$SITE['wsCronTags']  	= $SITE['uploadDir'].'yesterdayTagsWVIEW.php';
  386 | 
  387 | 	$SITE['WXsoftwareURL']  = 'http://www.wviewweather.com/';	
  388 | 	$SITE['WXsoftwareLongName'] = 'WVIEW';
  389 | 	$SITE['WXsoftwareIcon'] = 'img/wview.png';
  390 | #
  391 |         $SITE['gaugespecs']     = false;
  392 |         
  393 |         $SITE['tags_ymd']       = 'dd-mm-yyyy';
  394 |         break;
  395 | #---------------------------------------------------------------------------
  396 | #               required settings for   VWS / 
  397 | case 'VW':
  398 | #---------------------------------------------------------------------------
  399 |         $SITE['uploadDir']	=  'uploadVW/';	        // #####	where are uploaded files stored (weather variables graphs clientraw)
  400 | #       $SITE['uploadDir']	=  '../';               // #####        example for upload to root
  401 | 
  402 | 	$SITE['wsTags'] 	= $SITE['uploadDir'].'tags.htx';        // ##### location and name of the uploaded tags file 
  403 | 
  404 |         $SITE['graphImageDir']  = $SITE['uploadDir'];   // 	BETA ! graph images for website page same location as other files
  405 | #
  406 | 	$SITE['WXsoftwareShow']	= true;		        // ##### show a picture and text in sidecolomn or bottom area
  407 | 	$SITE['WXsoftwareURL']  = 'http://www.ambientweather.com/virtualstation.html';	
  408 | 	$SITE['WXsoftwareLongName'] = 'VWS';
  409 | 	$SITE['WXsoftwareIcon'] = 'img/vws.gif';
  410 |  
  411 |         $SITE['mwPage'] 	= 'yes';	        // ##### meteoware page (flash) in menu 
  412 | 
  413 | # ---- VWS realtime ---------------------------------------------------------      		
  414 |         $SITE['realtime']	= 'wflash';             // type of realtime file supported
  415 | #       $SITE['realtime']	= 'none';               // example for no realtime support                              #####
  416 | 
  417 |         $SITE['wflash_folder']  = $SITE['uploadDir'];   // location of wflash files => if we started to use wflash
  418 | #       $SITE['wflash_data']    = '../wflash/data/';    // location of wflash files => if wflash is already used        #####   
  419 | 
  420 |         $SITE['realtime_file']	= $SITE['wflash_folder'].'wflash.txt';  // default names of realtime files
  421 |         $SITE['realtime_file2'] = $SITE['wflash_folder'].'wflash2.txt';       
  422 | 
  423 |     
  424 |         $SITE['tags_ymd']       = array (3,2,1);           // #####  what type of date format is used  BETA test  no experience yet with VWS
  425 |         $SITE['tags_ymd_sep']   = '/';
  426 | #        $SITE['tags_ymd']      = 'mm-dd-yy';
  427 |         break;
  428 | 
  429 | #---------------------------------------------------------------------------
  430 | default:
  431 | 	echo '<H3>Other software not supported (yet)</h3>'.PHP_EOL; exit;
  432 | }
  433 | # --------------------------------------------------------------------------
  434 | $save_to_cache          = true;
  435 | $SITE['wp_scripts']     = $SITE['uploadDir'];
  436 | $SITE['process']        = $SITE['wsTags']; 
  437 | #
  438 | switch ($SITE['WXsoftware']) {
  439 |     case 'WD':
  440 |         $SITE['process']        = 'ws_testtags.php';
  441 |         break;
  442 |     case 'WS':      
  443 |         $SITE['process']        = $SITE['uploadDir'].'todayTagsWSWIN.php';
  444 |         $save_to_cache          = false;
  445 |         break;
  446 |     case 'WV':
  447 |         $SITE['soilUsed']       = false;      
  448 |         $SITE['process']        = $SITE['uploadDir'].'todayTagsWVIEW.php'; 
  449 |         break;
  450 |     case 'DW':
  451 |         $SITE['process']        = $SITE['uploadDir'].'tagsWLCOM.php';
  452 |         $save_to_cache          = false;
  453 |         break;
  454 |     case 'VW':
  455 |         $SITE['wp_scripts']     = 'scriptsVWS/';
  456 |         $SITE['process']        = $SITE['wp_scripts'].'tagsVWS.php';
  457 |         $SITE['wsAjaxDataLoad'] = 'wsAjaxDataLoad_v3.php';
  458 |         $SITE['meteowareFile']  = './mwlive/mwliveRT.php';
  459 |         $SITE['yrnoXmlName']	= 'yowindowRT.php'; 
  460 | 
  461 |         $SITE['gaugespecs']     = false;
  462 |         $SITE['vws_day_txt']    = $SITE['wsTags'];
  463 |         $SITE['soilUsed']       = false; 
  464 |         $SITE['clientrawDir'] 	= false;  
  465 |         $SITE['cltrPage']       = 'no';
  466 |         $SITE['wdlPage']        = 'no';
  467 |         $SITE['trendPage'] 	= 'no';
  468 |         break;
  469 | }
  470 | #---------------------------------------------------------------------------
  471 | $SITE['wsRealTime'] 	= 1*60+30;	// number of seconds before realtime (or clntraw) data is considered obsolete
  472 | $SITE['wsNormTime'] 	= 5*60+30;      // number of seconds before (tags) data is considered obsolete
  473 | $SITE['wsFtpTime'] 	= 60*60+30;	// number of seconds before all data (graphs) is considered obsolete
  474 | $SITE['wsDataTime'] 	= 5*60+30;      // number of seconds before all data (actual internal time) is considered obsolete
  475 | #---------------------------------------------------------------------------
  476 | ?>