Custom file does not exist C:\wdisplay\webfiles\testtags.txt
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'] = 'Hørning By Vejr'; // ##### short name used a.o. in heading, forecast pages
51 | $SITE['yourArea'] = 'for Hørning by'; // ##### the area your city is in
52 | $SITE['yourIP'] = '192.168.0.109'; // ##### your EXTERNAL ip address to skip counting your visits
53 | $SITE['cookieName'] = 'wstTabHoerningByVejr'; // ##### cookie name where user changes are kept, use an unique name, not meteo or weatherstation.
54 | $SITE['contactName'] = 'Erik M Madsen'; // ##### Webmaster naam or simply webmaster
55 | $SITE['contactEmail'] = 'dkduck@gmail.com'; // ##### Webmaster E-mail from
56 | $SITE['contactEmailTo'] = "dkduck@gmail.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'] = '49.2500'; // ##### North=positive, South=negative decimal degrees
88 | $SITE['longitude'] = '-123.12'; // ##### East=positive, West=negative decimal degrees
89 | $SITE['tz'] = 'America/Vancouver'; // ##### time zone
90 | $SITE['caProvince'] = 'BC'; // ##### http://dd.weather.gc.ca/citypage_weather/docs/site_list_en.csv
91 | $SITE['caCityCode'] = 's0000141'; // ##### http://dd.weather.gc.ca/citypage_weather/docs/site_list_en.csv
92 | $SITE['METAR'] = 'CYVR'; // ##### nearby METAR for current conditions retrieval and yowindow dynamic on main page
93 | $SITE['ecPage'] = 'yes'; // #####
94 | $SITE['cwopPage'] = 'yes'; // #####
95 | $SITE['aqhiArea'] = 'Metro Vancouver - NE'; // #####
96 | $SITE['aqhiArea-f'] = 'Vancouver-métro - nord-est';
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'] = '56.0826'; // ##### North=positive, South=negative decimal degrees
106 | $SITE['longitude'] = '10.0224'; // ##### East=positive, West=negative decimal degrees
107 | $SITE['warnArea'] = 'DK004'; // ##### 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/Copenhagen'; // ##### time zone for the whole of western europe, leave it if you do not know your EXACT timezone description
110 | $SITE['METAR'] = 'EKAH'; // ##### nearby METAR for current conditions retrieval and yowindow dynamic on main page
111 | $SITE['commaDecimal'] = true;
112 | $SITE['europe'] = true;
113 | $SITE['belgium'] = false; // #####
114 | $SITE['netherlands'] = false; // #####
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'] = '1024'; // #####
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'] = 2; // ##### 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'] = false; // ##### 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'] = 'windows-1252'; # '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'] = false; // ##### 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'] = 'xxxxxx/x/'; // ##### your wunderground WEBCAMID id goes here
244 | $SITE['webcamImg'] = 'http://icons.wunderground.com/webcamramdisk/w/v/'.$SITE['webcamID'].'current.jpg?'.time();
245 | # // or use your own image
246 | $SITE['webcamImg'] = 'http://www.wiri.be/image.jpg'; // 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'] = false; //##### 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'] = false;
335 | $SITE['bannerBottom'] = false;
336 | $SITE['bannerTopTxt'] = './banner.txt'; // 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'] = true; // true = we use soil moistere & temp sensors | false = no soil
379 | $SITE['soilPage'] = true; // 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 | #
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'] = ' m/s'; // ' 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'] = 'bbdd377aaea2b47789d377aea2b0778f3'; // ##### set to your (free) Wunderground API key to retreive weatherinfo in xml
470 | $SITE['wuFctId'] = 'PWS:IMIDTJYL27'; // ##### 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'] = true; // 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'] = 'Belgium/Flanders/Leuven/'; // ##### generic adres for .png forecast
492 | $SITE['yrnoID'] = 'Danmark/Midtjylland/Hørning/'; // Hørning
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'] = '973505'; // ##### 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'] = 'IMIDTJYL27'; // ##### the ID of your personal weather station at the Wunderground site
542 | $SITE['wuStart'] = '26-05-2013'; // ##### Stations first day of operation at wunderground format dd-mm-yyyy for wu history page
543 | #
544 | $SITE['wuHistPage'] = 'yes'; // ##### 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'] = false; // ##### Example $SITE['wowID'] = 1234567;
552 | $SITE['awekasID'] = false; // ##### Example $SITE['awekasID'] = 1234;
553 | $SITE['anWeID'] = false; // ##### Example $SITE['anWeID'] = 1234567;
554 | $SITE['pwsID'] = false; // ##### Example $SITE['pwsID'] = 'abcd99';
555 | $SITE['cwopId'] = false; // ##### 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'] = 'xyz Weather Network'; // ##### 'Benelux Weather Network';
564 | $SITE['mesoLink'] = 'http://www.xyz.com/'; // ##### 'http://www.beneluxweather.net/';
565 | #
566 | $SITE['ewnID'] = true; // #####
567 | #------------------------------------------------------------------------- #####
568 | # end of configurable settings - please do NOT change the settings below
569 | #---------------------------------------------------------------------------
570 | if ($SITE['region'] <> 'europe') {$SITE['ewnID'] = false;} // ewn only works in europ
571 | #---------------------------------------------------------------------------
572 | # Ajax
573 | #---------------------------------------------------------------------------
574 | $SITE['imgAjaxDir'] = 'ajaxImages/'; // directory for ajaxImages with trailing slash
575 | $SITE['wsAjaxScript'] = 'javaScripts/ajax.js'; // for AJAX enabled display
576 | $SITE['wsAjaxDataLoad'] = 'wsAjaxDataLoad.php'; // load fresh data for ajax page at users site
577 | $SITE['ajaxGizmojs'] = 'javaScripts/ajaxgizmo.js'; // rotate gizmo info
578 | $SITE['ajaxGizmo'] = 'incAjaxGizmo.php'; // default Giozmo
579 | #---------------------------------------------------------------------------
580 | # Which scripts to use to process the supplied data
581 | #---------------------------------------------------------------------------
582 | $SITE['functions'] = 'wsFunctions.php'; // weather functions, override
583 | $SITE['langFunc'] = 'wsLangFunctions.php'; // general functions for languages
584 | $SITE['menuXml'] = 'wsMenuData.xml'; // menu processes 'incMenuDataWilsele.xml';
585 | $SITE['menuLoad'] = 'wsMenuLoad.php';
586 | $SITE['spidersTxt'] = 'spiders.txt';
587 | $SITE['uvScript'] = 'uvforecastv3.php'; // worldwide forecast script for UV Index
588 | $SITE['uvLink'] = 'index.php?p=58';
589 | $SITE['sideInc'] = 'wsSideColom.php';
590 | $SITE['bottomInc'] = 'wsBottom.php';
591 | $SITE['footer'] = 'wsFooter.php';
592 | #---------------------------------------------------------------------------
593 | # script names for conversion of weatherprogram data to website/ajax data
594 | #---------------------------------------------------------------------------
595 | $SITE['getData'] = 'wsDataGet.php'; // data from ws tags to intermidiate array
596 | $SITE['loadData'] = 'wsDataLoad.php'; // load data into variables (mostly ajax)
597 | #---------------------------------------------------------------------------
598 | # Website CSS files
599 | #---------------------------------------------------------------------------
600 | $SITE['CSSscreen'] = 'styleMain30.css'; // general stylesheet all pages
601 | $SITE['CSSprint'] = 'stylePrint20.css'; // general stylesheet all pages for printing
602 | $SITE['CSStable'] = 'styleTable20.css'; // general stylesheet all tables
603 | $SITE['CSSmenuHor'] = 'styleMenuDrop20.css'; // stylesheet horizontal drop down menus
604 | $SITE['CSSmenuVer'] = 'styleMenuVert20.css'; // stylesheet vertical fly-out menus
605 | $SITE['CSSmood'] = 'styleMood20.css'; // stylesheet for adapting colors based on current weathercondition
606 |
607 | $SITE['noChoiceBackup'] = $SITE['noChoice'];
608 | $SITE['menuPlaceBackup']= $SITE['menuPlace'];
609 | $SITE['colorBackup'] = $SITE['colorNumber'];
610 | $SITE['headerBackup'] = $SITE['header'];
611 | $SITE['langBackup'] = $SITE['lang'];
612 | #
613 | # Multilanguage support constants
614 | $SITE['installedLanguages'] = array (
615 | 'nl' => 'Nederlands',
616 | 'en' => 'English',
617 | 'fr' => 'Français',
618 | 'de' => 'Deutsch',
619 | 'dk' => 'Dansk',
620 | );
621 | #
622 | $uomBackup = array (
623 | 'uomTemp' => $SITE['uomTemp'],
624 | 'uomBaro' => $SITE['uomBaro'],
625 | 'uomWind' => $SITE['uomWind'],
626 | 'uomRain' => $SITE['uomRain'],
627 | 'uomSnow' => $SITE['uomSnow'],
628 | 'uomDistance' => $SITE['uomDistance'],
629 | 'uomPerHour' => $SITE['uomPerHour'],
630 | 'uomHeight' => $SITE['uomHeight']
631 | );
632 | #
633 | $SITE['supportedUnits'] = array ();
634 | $SITE['supportedUnits'] ['temp'] = array('°C', '°F');
635 | $SITE['supportedUnits'] ['baro'] = array(' hPa', ' mb', ' inHg');
636 | $SITE['supportedUnits'] ['wind'] = array(' km/h', ' kts', ' m/s', ' mph');
637 | $SITE['supportedUnits'] ['rain'] = array(' mm', ' in');
638 |
639 | # set the Timezone abbreviation automatically based on $SITE['tz'];
640 | if (!function_exists('date_default_timezone_set')) {
641 | putenv("TZ=" . $SITE['tz']);
642 | } else {
643 | date_default_timezone_set($SITE['tz']);
644 | }
645 | $SITE['tzName'] = date("T",time());
646 | #
647 | #---------------------------------------------------------------------------
648 | # Automatic Info we might need
649 | #---------------------------------------------------------------------------
650 | if(isset($_SERVER['REMOTE_ADDR'])) {$SITE['REMOTE_ADDR'] = $_SERVER['REMOTE_ADDR'];}
651 | if(isset($_SERVER['REMOTE_HOST'])) {$SITE['REMOTE_HOST'] = $_SERVER['REMOTE_HOST'];}
652 | if(isset($_SERVER['DOCUMENT_ROOT'])) {$SITE['WEBROOT'] = $_SERVER['DOCUMENT_ROOT'];}
653 | if(isset($_SERVER['REQUEST_URI'])) {$SITE['REQURI'] = $_SERVER['REQUEST_URI'];}
654 | if(isset($_SERVER['SERVER_NAME'])) {$SITE['SERVERNAME'] = $_SERVER['SERVER_NAME'];}
655 | #---------------------------------------------------------------------------
656 | # misc
657 | $SITE['pageAstroCode'] = 67;
658 | #---------------------------------------------------------------------------
659 | if (!isset ($forecast) ) {$forecast = 'yahoo with 5 lines text only';}
660 | $arr = explode ('with', $forecast );
661 | $org = trim($arr[0]);
662 | if (!isset ($arr[1]) ) {$arr[1] = 'icons';}
663 | $content = trim ($arr[1]);
664 | $allowed = array ('icons','meteogram');
665 | $SITE['fctOrg'] = $org;
666 | $SITE['fctContent'] = 'icons';
667 | switch ($org){
668 | case 'metno':
669 | if (in_array ($content, $allowed) ) { $SITE['fctContent'] = $content;}
670 | break;
671 | case 'wxsim':
672 | if (in_array ($content, $allowed) ) { $SITE['fctContent'] = $content;}
673 | break;
674 | case 'hwa':
675 | if ($SITE['region'] <> 'europe' || ($SITE['belgium'] == false && $SITE['netherlands'] == false) ) {
676 | $SITE['hwaPage'] = false;
677 | $SITE['fctOrg'] = 'yahoo';
678 | break;
679 | }
680 | $allowed = array ('icons','meteogram','hwa/mos graphic');
681 | if (in_array ($content, $allowed) ) { $SITE['fctContent'] = $content;}
682 | break;
683 | case 'noaa':
684 | if ($SITE['region'] <> 'america') {
685 | $SITE['noaaPage'] = false;
686 | $SITE['fctOrg'] = 'yahoo';
687 | break;
688 | }
689 | if ( in_array ($content, $allowed) ) { $SITE['fctContent'] = $content;}
690 | break;
691 | case 'ec':
692 | if ($SITE['region'] <> 'canada') {
693 | $SITE['ecPage'] = false;
694 | $SITE['fctOrg'] = 'yahoo';
695 | break;
696 | }
697 | break;
698 | default:
699 | $SITE['fctOrg'] = 'yahoo';
700 | $SITE['fctContent'] = 'text';
701 | }
702 | $SITE['fctOrgBackup'] = $SITE['fctOrg'];
703 | $SITE['fctContentBackup']= $SITE['fctContent'];
704 | #
705 | if ($SITE['fctOrg'] == 'yahoo') {$SITE['yahooPage'] = true;}
706 | if ($SITE['fctOrg'] == 'metno') {$SITE['metnoPage'] = true;}
707 | if ($SITE['fctOrg'] == 'wxsim') {$SITE['wxsimPage'] = true;}
708 | if ($SITE['fctOrg'] == 'hwa') {$SITE['hwaPage'] = true;}
709 | if ($SITE['fctOrg'] == 'noaa') {$SITE['noaaPage'] = true;}
710 | if ($SITE['fctOrg'] == 'ec') {$SITE['ecPage'] = true;}
711 | #
712 | if ($SITE['region'] == 'america') {$SITE['hwaPage'] = $SITE['ecPage'] = false; }
713 | if ($SITE['region'] == 'canada') {$SITE['hwaPage'] = $SITE['noaaPage']= false; }
714 | if ($SITE['region'] == 'other') {$SITE['hwaPage'] = $SITE['noaaPage']= $SITE['ecPage'] = false; }
715 | if ($SITE['region'] == 'europe') {$SITE['noaaPage']= $SITE['ecPage'] = false; }
716 | if ($SITE['belgium'] == false && $SITE['netherlands'] == false) {$SITE['hwaPage'] = false;}
717 | #
718 | $SITE['allowedFctOrgs'] = array();
719 | if ($SITE['yahooPage'] === 'yes' || $SITE['yahooPage'] === true) {
720 | $SITE['allowedFctOrgs']['yahoo'] = array ('text');
721 | }
722 | if ($SITE['metnoPage'] === 'yes' || $SITE['metnoPage'] === true) {
723 | $SITE['allowedFctOrgs']['metno'] = array ('icons','meteogram');
724 | }
725 | if ($SITE['hwaPage'] === 'yes' || $SITE['hwaPage'] === true) {
726 | $SITE['allowedFctOrgs']['hwa'] = array ('icons','meteogram','hwa/mos');
727 | }
728 | if ($SITE['wxsimPage'] === 'yes' || $SITE['wxsimPage'] === true) {
729 | $SITE['allowedFctOrgs']['wxsim'] = array ('icons','meteogram');
730 | }
731 | if ($SITE['noaaPage'] === 'yes' || $SITE['noaaPage'] === true) {
732 | $SITE['allowedFctOrgs']['noaa'] = array ('icons','meteogram');
733 | }
734 | if ($SITE['ecPage'] === 'yes' || $SITE['ecPage'] === true) {
735 | $SITE['allowedFctOrgs']['ec'] = array ('icons');
736 | }
737 | # -------- now fetch the weather software settings if the file exists
738 | if(file_exists("wsSettingsWeather.php")) {
739 | include "wsSettingsWeather.php" ; }
740 | #
741 | $string1 = '';
742 | if(isset($_SERVER['HTTP_HOST'])) {$string1 .= $_SERVER['HTTP_HOST'];}
743 | if(isset($_SERVER['PHP_SELF'])) {$string1 .= $_SERVER['PHP_SELF'];}
744 | $SITE['siteUrl']= 'http://'.str_replace ('index.php','',$string1);
745 | #
746 | if (isset ($wsDebug) && $wsDebug) {$SITE['wsDebug'] = true; } else {$SITE['wsDebug'] = false; $wsDebug = false;}
747 | ?>
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'] = true; // ##### 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'] = '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'] = '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 | ?>