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