This website is under construction - Deze website is in opbouw - Ce site est en construction - Diese Website ist im Aufbau.
Please return later. Schauen Sie bitte später nochmals an.  S'il vous plaît revenir plus tard.  Komt u straks nog eens terug


Webcam Webcam


Thunder radar blitzortung!


Rain radar rain snow radar


Visit our other weather sites:

Template documentation
and downloads

And another site



warning high priority WINTER STORM WARNING IN EFFECT

Display key values and files

wsSettings.php SettingsFiles should pe password protected - dated: 01-04-2016 06:22

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

wsSettingsWeather.php SettingsFiles should pe password protected - dated: 25-01-2015 21:58

    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.00 2014-09-13';
   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.00 release version 
   27 | #---------------------------------------------------------------------------
   28 | #               Weather Station sensors and options for dashboard
   29 | #---------------------------------------------------------------------------
   30 | $SITE['UV']       	= true;  	// ##### set to false if no UV sensor
   31 | $SITE['SOLAR']    	= true;  	// ##### 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'] = true;  	// ##### 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'] 	= 'no';		// 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']  	= true;  	// ##### 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']	= true;		// ##### 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']		= true;         // ##### 
   87 | #
   88 | $SITE['pcTxt']		= 'SheevaPlug';
   89 | $SITE['pcJpg']		= 'img/SheevaPlug-logo.jpg';
   90 | $SITE['pcLink'] 	= 'https://www.globalscaletechnologies.com/t-sheevaplugs.aspx';
   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']	=  '../topic/';               // #####        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'] 	= 'no';	// ##### 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'] = 'WSWIN / PC-Wetterstation';
  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 | #---------------------------------------------------------------------------
  353 | default:
  354 | 	echo '<H3>Other software not supported (yet)</h3>'.PHP_EOL; exit;
  355 | }
  356 | #---------------------------------------------------------------------------
  357 | $SITE['wsRealTime'] 	= 1*60+30;	// number of seconds before realtime (or clntraw) data is considered obsolete
  358 | $SITE['wsNormTime'] 	= 5*60+30;      // number of seconds before (tags) data is considered obsolete
  359 | $SITE['wsFtpTime'] 	= 60*60+30;	// number of seconds before all data (graphs) is considered obsolete
  360 | $SITE['wsDataTime'] 	= 5*60+30;      // number of seconds before all data (actual internal time) is considered obsolete
  361 | #---------------------------------------------------------------------------
  362 | ?>

You find our weather info also at:


UK Metoffice

AWEKAS

Weather Underground

Citizen Weather Observer Program (CWOP)

HAMweather, WeatherForYou, PWS Weather

Equipment we use:


Weather-station
Davis VP2

Weather-program
Meteohub

Weather-server
SheevaPlug

Davis VP2

Meteohub

SheevaPlug