Notice: Undefined variable: arrConditions in /home/sv2bzq/domains/mitilini.sv2bzq.gr/public_html/weather2/wsDataGet.php on line 152

Warning: count(): Parameter must be an array or an object that implements Countable in /home/sv2bzq/domains/mitilini.sv2bzq.gr/public_html/weather2/wsDataGet.php on line 152

Notice: Undefined index: tempMaxYday in /home/sv2bzq/domains/mitilini.sv2bzq.gr/public_html/weather2/wsDataLoad.php on line 68

Notice: Undefined index: tempMinYday in /home/sv2bzq/domains/mitilini.sv2bzq.gr/public_html/weather2/wsDataLoad.php on line 69

Notice: Undefined index: tempMinYday in /home/sv2bzq/domains/mitilini.sv2bzq.gr/public_html/weather2/wsDataLoad.php on line 69

Warning: A non-numeric value encountered in /home/sv2bzq/domains/mitilini.sv2bzq.gr/public_html/weather2/wsDataLoad.php on line 170

Warning: A non-numeric value encountered in /home/sv2bzq/domains/mitilini.sv2bzq.gr/public_html/weather2/wsDataLoad.php on line 170

Lesvos Island / Mitilini / Pligoni / SV8DTD



Thunder radar blitzortung!


Rain radar rain snow radar


Visit our other weather sites:

Template documentation
and downloads

And another site



There is a communication problem. Go directly to the Meteoalarm site : www.meteoalarm.eu and check the Weather-warnings there .

Display key values and files

wsSettings.php SettingsFiles should pe password protected - dated: 09-02-2023 00:31


Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /home/sv2bzq/domains/mitilini.sv2bzq.gr/public_html/weather2/printSite.php on line 140
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
<?php
$pageName    
'wsSettings.php';
if (!isset(
$SITE)){echo "<h3>invalid call to script $pageName</h3>";exit;}
$pageVersion    '3.02 2014-11-19';
$SITE['wsModules'][$pageName] = 'version: ' $pageVersion;
$pageFile basename(__FILE__);            // check to see this is the real script
if ($pageFile <> $pageName) {
    
$SITE['wsModules'][$pageFile]    = 'this file loaded instead of '.$pageName;
}
if (!isset(
$pathString)) {$pathString='';}
$pathString .= '<!-- module '.$pageFile.' ==== '.$SITE['wsModules'][$pageFile].' -->'.PHP_EOL;
#---------------------------------------------------------------------------
# '3.02 2014-11-19 release version 
#---------------------------------------------------------------------------
#
# look for #### to find those lines which can / should be changed first   #####
#
$SITE["topfolder"]      = 'weather2/';          # normally  this weather2/  
#
#---------------------------------------------------------------------------
if (!isset ($SITE['WXsoftware']) ) {
#---------------------------------------------------------------------------
# choose your weatherprogram
#---------------------------------------------------------------------------
#     $SITE['WXsoftware']     = 'CU';      // ##### Cumulus
#    $SITE['WXsoftware']     = 'CW';      // ##### consolewd = WeatherDisplay for raspberryPI
#    $SITE['WXsoftware']    = 'MB';        // ##### Meteobridge    
    
$SITE['WXsoftware']    = 'MH';         // ##### Meteohub
#    $SITE['WXsoftware']     = 'WC';      // ##### WeatherCat
#    $SITE['WXsoftware']     = 'WD';      // ##### WeatherDisplay
#    $SITE['WXsoftware']     = 'WL';        // ##### WeatherLink
#    $SITE['WXsoftware']     = 'DW';            // ##### Davis WeatherLink.Com
#    $SITE['WXsoftware']     = 'WS';            // ##### wswin
#---------------------------------------------------------------------------

#---------------------------------------------------------------------------
#                       Select the region you are in or choose other
#---------------------------------------------------------------------------
#$SITE['region']         = 'america';    // #####
#$SITE['region']         = 'canada';     // #####
$SITE['region']         = 'europe';    // #####
#$SITE['region']         = 'other';      // #####
#
#
#
#
#---------------------------------------------------------------------------
#                General settings such as station location, identity 
#---------------------------------------------------------------------------
$SITE['organ']            = 'Lesvos Island / Mitilini / Pligoni / SV8DTD';            // #####        short name used a.o. in heading, forecast pages 
$SITE['yourArea']        = 'PLIGONI';                // #####        the area your city is in
$SITE['yourIP']                = '10.0.0.98';            // #####        your EXTERNAL ip address to skip counting your visits
$SITE['cookieName']        = 'Lesvos Islands';            // #####    cookie name where user changes are kept, use an unique name, not meteo  or weatherstation.
$SITE['contactName']             = 'Periklis';                // #####        Webmaster naam or simply webmaster
$SITE['contactEmail']             = 'sv8dtd@yahoo.gr';        // #####        Webmaster E-mail from
$SITE['contactEmailTo']         = "sv8dtd@yahoo.gr";        // #####        contact E-mail goes to  THIS email adress, so it MUST be a real one
$SITE['password']               = '';                                   // #####
$SITE['noChoice']          = '10';                     // #####     visitors go to this page at first time visit, 10 = home/startpage
$SITE['statsCode']        = './_widgets/histats.txt';            // #####        set your own visitors code or set to false
$SITE['floatTop']               = './_widgets/float_top.php';
$SITE['commaDecimal']            = true;                 //              most europeans use a comma for a decimal point. others a point
$SITE['skipTop']                = true;                                 //              v3.1 go to details of page
#---------------------------------------------------------------------------
$SITE['noaaPage']       = $SITE['ecPage']       = $SITE['cwopPage']     = 'no';  // set to default / no values
$SITE['canada']         = $SITE['europe']       = $SITE['america']      = $SITE['other'] = false;
$SITE['Athens']        = $SITE['greece']  = $SITE['warnArea']     = true// set to default / no values
#---------------------------------------------------------------------------
if ($SITE['region'] ==    'america') {
#---------------------------------------------------------------------------
#  here we define specific settings for  the          U S A 
#---------------------------------------------------------------------------
    
$SITE['latitude']    = '41.30068';             // #####    North=positive, South=negative decimal degrees
    
$SITE['longitude']    = '-72.793671';          // #####    East=positive, West=negative decimal degrees
    
$SITE['warnArea']    = 'ILC045';            // #####    area where this weatherstation is located 
    
$SITE['tz']         = 'America/New_York';            // #####    time zone for the whole of western europe, leave it if you do not know your EXACT timezone description
    
$SITE['METAR']         = 'KHVN';            // #####    nearby METAR for current conditions retrieval and yowindow dynamic on main page
    
$SITE['noaaPage']    = 'yes';              // #####    noaa weather forecast page in menu
    
$SITE['cwopPage']    = 'yes';                        // #####
    
$SITE['noaaIconsOwn']    = false;             // use noaa icons (true) or our template icons (false)
        
$SITE['lang']         = 'en';                         // #####        default language you want to use use
        
$SITE['america']        = true;
#---------------------------------------------------------------------------
} elseif ($SITE['region'] ==    'canada') {
#---------------------------------------------------------------------------
#  here we define specific settings for             C A N A D A
#---------------------------------------------------------------------------
    
$SITE['latitude']    = '49.2500';                 // #####    North=positive, South=negative decimal degrees
    
$SITE['longitude']    = '-123.12';                  // #####    East=positive, West=negative decimal degrees
    
$SITE['tz']         = 'America/Vancouver';         // #####     time zone
    
$SITE['caProvince']    = 'BC';                // #####    http://dd.weather.gc.ca/citypage_weather/docs/site_list_en.csv
    
$SITE['caCityCode']    = 's0000141';            // #####     http://dd.weather.gc.ca/citypage_weather/docs/site_list_en.csv
    
$SITE['METAR']         = 'CYVR';            // #####    nearby METAR for current conditions retrieval and yowindow dynamic on main page
    
$SITE['ecPage']        = 'yes';                        // #####
    
$SITE['cwopPage']    = 'yes';                        // #####
    
$SITE['aqhiArea']    = 'Metro Vancouver - NE';       // #####
    
$SITE['aqhiArea-f']    = 'Vancouver-métro - nord-est';
    
$SITE['caAQHI']     = true;                     // #####
        
$SITE['lang']         = 'en';                         // #####        default language you want to use use
        
$SITE['canada']         = true;
#---------------------------------------------------------------------------
} elseif ($SITE['region'] ==    'europe') {
#---------------------------------------------------------------------------
#  here we define specific settings for             E U R O P E
#---------------------------------------------------------------------------
    
$SITE['latitude']    = '39.0722';             // #####    North=positive, South=negative decimal degrees
    
$SITE['longitude']    = '26.5725';              // #####    East=positive, West=negative decimal degrees
    
$SITE['warnArea']    = 'GR014';            // #####    area where this weatherstation is located BE004 = Vlaams Brabant, NL012 = nl limburg.
    
$SITE['lang']         = 'en';             // #####    default language you want to use use
    
$SITE['tz']         = 'Europe/Athens';         // #####     time zone for the whole of western europe, leave it if you do not know your EXACT timezone description
    
$SITE['METAR']             = 'LGMT';            // #####    nearby METAR for current conditions retrieval and yowindow dynamic on main page
    
$SITE['commaDecimal']    = true;
        
$SITE['europe']         = true;
    
$SITE['belgium']    = false;             // #####
    
$SITE['netherlands']    = false;             // #####
#---------------------------------------------------------------------------
} else {        // region = other
#---------------------------------------------------------------------------
#  here we define specific settings for          rest of the world
#---------------------------------------------------------------------------
    
$SITE['latitude']    = '-44.405617';             // #####    North=positive, South=negative decimal degrees
    
$SITE['longitude']    = '169.075343';             // #####    East=positive, West=negative decimal degrees
    
$SITE['tz']         = 'Pacific/Auckland';         // #####     time zone for the whole of western europe, leave it if you do not know your EXACT timezone description
    
$SITE['METAR']             = 'NZCH';            // #####    nearby METAR for current conditions retrieval and yowindow dynamic on main page
        
$SITE['lang']         = 'en';                         // #####        default language you want to use use
        
$SITE['other']          = true;
}
#
#
#---------------------------------------------------------------------------
# from which source do we get the current conditions. Select one, comment out the other
#------------------------------------------------------------------------- ##### 
#$SITE['curCondFrom']    = 'wd';        // if you are using WeatherDisplay AND have set WD correctly
#$SITE['curCondFrom']    = 'yahoo';    // if you use Yahoo also for the forecast on the startpage no other forecast
$SITE['curCondFrom']    = 'metar';    // default, mostly best choice
#
#
#
#---------------------------------------------------------------------------
# General site settings, valid for all pages
# Normally you do not want to change these settings
#---------------------------------------------------------------------------
$SITE['pageWidth']    = '990';    // #####   
$SITE['menuPlace']      = 'V';        // #####    menu is placed   Vertical (default) or Horizontal
$SITE['header']        = '3';        // #####    normal header = 2 default.  1=small header with less information
$SITE['colorNumber']    = 14;        // #####     this number is the default key which color and style your website will be using
$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');
$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
$SITE['bottomDysplay']    = true;        // #####     show which equipment & software you use and also also which organizations you are a member of
$SITE['showVisitors']    = true;        // #####     show number of visitors in footer
$SITE['pages_visited']  = true;         // #####        count and show visited pages
$SITE['ajaxGizmoShow']     = true;        // show ajaxgizmo in header rotating/changing weather items
$SITE['stripAll']    = false;    // to have only menu, no headers for including template in joomla sites etc
$SITE['stripMenu']    = true;    // to have no menu, f.i.  when using joomla
$SITE['autoRefresh']    = 0;        // the page is automatically refreshed after *** seconds, set to 0 if you do not want this "feature"
$SITE['cookieSupport']    = true;        // use cookies to store user choices. The system asks the user if he allows the use of cookies
$SITE['charset']    = 'UTF-8'# 'UTF-8'; #'windows-1252';             // default character set for webpages (windows-1252)
#
if (!defined('ENT_HTML5')) {define ('ENT_HTML5' , (16|32) );}
$SITE['htmlVersion']    = ENT_HTML5;     // html version of this template
$SITE['curlFollow']    = 'false';    // for sites using safe mode
$SITE['wsAjaxDataTime'] = 30;        // wait time between refresh data on Ajax based pages in seconds
$SITE['menuWidth']    = '140';    // 140 = default width of Vertical menu DO NOT CHANGE
$SITE['tempSimple']    = true;     // true = blue/red color for temp; false = large color range
$SITE['textLowerCase']    = false;     // all text to lowercase = true  or leave all texts as they are supplied (false)
#---------------------------------------------------------------------------
#     Date time info  - this *MUST* be set correctly, please only change when you know what you are doing 
#---------------------------------------------------------------------------
if ($SITE['region'] ==    'america' ) {
#---------------------------------------------------------------------------
#  here we define date time settings for  the  U S A   12 hours  month - date
#---------------------------------------------------------------------------
    
$SITE['timeFormat']     = 'M j Y g:i a';
    
$SITE['timeOnlyFormat'] = 'g:i a';
    
$SITE['hourOnlyFormat'] = 'ga';
    
$SITE['dateOnlyFormat'] = 'M j Y';
    
$SITE['dateMDFormat']     = 'M-m';
    
$SITE['dateLongFormat'] = 'l M j Y';
    
$SITE['hourDisplay']     = '12';    
#---------------------------------------------------------------------------            
} else {
#---------------------------------------------------------------------------
#  here we define date time settings for the rest of the world  24 hours  - day month  year
#---------------------------------------------------------------------------            
    
$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
    
$SITE['timeOnlyFormat'] = 'H:i';        // Euro format hh:mm  (hh=00..23);  US 'g:i a';   5:54 pm
    
$SITE['hourOnlyFormat'] = 'H';             // 
    
$SITE['dateOnlyFormat'] = 'd-m-Y';        // for 31-03-2008   US 'M j Y';
    
$SITE['dateMDFormat']     = 'd-m';        // for 31-03        US 'M-m';
    
$SITE['dateLongFormat'] = 'l d F Y';         // Vrijdag, 5 februari 2013 US   'l M j Y'; 
    
$SITE['hourDisplay']     = '24';                // america 12am - 12pm other 00:00 - 23:59
}
#---------------------------------------------------------------------------
#  Important only change if you understand what the reason is, normally it is correct
#---------------------------------------------------------------------------            
$SITE['nightDayBefore']         = true;                // needed a.o. for the default MetNo forecast        
// if the start hour of a forecast period is between
//          06:00 - 12:00          12:00 - 18:00            18:00 - 24:00    24:00 - 06:00
// the descriptions for these period is translated to based on this setting
// false:    sunday morning        sunday aftyernoon    sunday evening    sunday night
// true:    sunday morning        sunday aftyernoon    sunday evening    monday night
#---------------------------------------------------------------------------
#     Start/home page settings with current weather conditions and some forecast information
#---------------------------------------------------------------------------
#       First we set which forcaster we are using on the start page   #####
#---------------------------------------------------------------------------
#               for all regions available
#$forecast       = 'yahoo        with    5 lines text only';     // all regions

$forecast      'metno        with    icons'
#$forecast      = 'metno        with    meteogram';

#$forecast      = 'wxsim        with    icons';                 // you NEED to have a paid WXSIM program 
#$forecast      = 'wxsim        with    meteogram';             // running on a windows computer to use this selection

#               for Europe - Benelux only
#$forecast      = 'hwa          with    icons';                 
#$forecast      = 'hwa          with    meteogram';
#$forecast      = 'hwa          with    hwa/mos graphic';

#               for U S A only
#$forecast      = 'noaa         with    icons';
#$forecast      = 'noaa         with    meteogram';

#               for Canada only
#$forecast      = 'ec           with    icons';
#---------------------------------------------------------------------------
if (isset ($SITE['skipTop']) && $SITE['skipTop']) {$skiptopText '#data-area';} else {$skiptopText '';}
#
#---------------------------------------------------------------------------
#    side colomn  and bottom area on all pages
#---------------------------------------------------------------------------
$SITE['partners']     = 'B';            // ##### show other websites (partners)  with your weatherdata side('V') or bottom('B') or not ('')
$SITE['equipment']    = 'B';            // ##### show links about the equipment / provider we use: V or B or ''
$SITE['otherWS']     = 'V';            // ##### show links to other weatherstations in side column: V  ''
#
#---------------------------------------------------------------------------
#    webcam can only be shown in side area. there is also a separate page in the menu
#---------------------------------------------------------------------------
$SITE['webcam']     = false;         // ##### show webcam in side column when the sidecolumn is displayed, otherwise ignored 
$SITE['webcamFeed']     = 'index.php?p=99';
#                              // Weather underground settings
#                        // ##### there are multiple different WU settings. Lookup yours ion the WU sites
$SITE['webcamID']    = 'I769/';             // ##### your wunderground WEBCAMID id goes here
$SITE['webcamImg']    = 'http://icons.wunderground.com/webcamramdisk/w/v/'.$SITE['webcamID'].'current.jpg?'.time();
#                                               // or use your own image
$SITE['webcamImg']    = 'http://www.sv2bzq.gr/webcam/TinCam1.jpg';       //  these are for demonstration only, replace with yours
$SITE['webcamImgNight']    = 'http://www.sv2bzq.gr/webcam/TinCam1.jpg';  //  set to ''; if you do not have a night image
#
$SITE['webcamImg']    = 'switch_webcam.php';                  // example script for complex day-night switch
#
#---------------------------------------------------------------------------
#    social site support can be shown in sidecolom below menu or in header below the language select
#---------------------------------------------------------------------------
$SITE['socialSiteSupport']    = "V";         // ##### '' no support; "H"orizontal or "V"ertical  display of facebook icons and others
$SITE['socialSiteKey']        = "ra-4fd8a66b72fa8566";// your key from http://www.addthis.com/   free service
#---------------------------------------------------------------------------
#    small radars in the side column only
#---------------------------------------------------------------------------
$SITE['wrnRain']        = true;        // ##### set to true is always small map with rain in side area
$SITE['pageRainCode']        = 14;        // ##### page nr for full page rain radar
$SITE['wrnLightning']        = true;     // #####  same for rain radar
$SITE['pageLightningCode']    = 45;        // #####
#
#---------------------------------------------------------------------------
#                     warnings  general settings
#---------------------------------------------------------------------------
$SITE['warnings']         = true;        // ##### show (optional) meteo warnings on every page
$SITE['warningInside']            = true;         // true = warning after headers and menu in data area, otherwise outside everything and displayed first
$SITE['warningGreen']            = true;            // true = always display warning, even when no warning in effect
$SITE['warningsXtnd']             = false;            // false =  one line per warning, true = also the long text description = DO NOT USE IN BELGIUM
$SITE['warningDetail']            = 5;            // number of individual warnings before warnings are combined
$SITE['warn1Box']        = true;            // true = put all separate warnings in one box;  false = one separate box for every separate warning
#---------------------------------------------------------------------------
$SITE['warningsEuro']    = $SITE['warningsNOAA']    = $SITE['warningsNWS']    = $SITE['warningsec']    = false// 
$SITE['warnImg']= false;  // set all default no
#---------------------------------------------------------------------------
$SITE['warningsMenu']             = 'index.php?p=57';    // menu choice for separate warningspage
#
if ($SITE['region'] ==    'america') {
#---------------------------------------------------------------------------
#  here we define specific settings for  the          U S A 
#---------------------------------------------------------------------------
    
$SITE['useCurly']        = true;        ##### use template/noaa script or curly's script
#
    
if ($SITE['useCurly']) {
        
$SITE['warningScript']    = 'nws-alerts/wsnws-alerts.php';
        
$SITE['warningsNWS']    = true;
    } else {
        
$SITE['warningScript']    = 'noaa/noaaWarning.php';
        
$SITE['warningsNOAA']    =  $SITE['warnings'] ;
        
$SITE['warnImg']    = './wsIcons/NOAA_Icons_small/';
    }
#---------------------------------------------------------------------------    
} elseif ($SITE['region'] == 'canada') {
#---------------------------------------------------------------------------
#  here we define specific settings for             C A N A D A
#---------------------------------------------------------------------------    
    
$SITE['warningScript']    = 'canada/ecWarning.php';    // Environment Canada
     
$SITE['warningsec']    = $SITE['warnings'];
#---------------------------------------------------------------------------
} elseif ($SITE['region'] ==    'europe') {
#---------------------------------------------------------------------------
#  here we define specific settings for             E U R O P E
#---------------------------------------------------------------------------
    
$SITE['warningScript']    = 'wrnWarningv3.php';        // Euro
    
$SITE['warningsEuro']    = $SITE['warnings'];
    
$SITE['warnImg']    = './img/wrnImages/warn_';
#---------------------------------------------------------------------------
} else {        // region = other
#---------------------------------------------------------------------------
#  here we define specific settings for          rest of the world
#---------------------------------------------------------------------------
        
$SITE['warningsMenu']     = false;
        
$SITE['warnings']     = false;
        
$SITE['warningScript']    = 'wrnWarningv3.php';   // default script
}
#    separate warningspage 
#
$SITE['warnPage']    = 'yes';             // 'yes' default our own page 'no' go directly to meteoalarm site
#                            // for more detailed info when there is a warning displayed
#
$SITE['noaawarningURL']    = 'http://alerts.weather.gov/cap/wwaatmget.php?x='.$SITE['warnArea'].'&y=1';
$SITE['EUwarningURL']    = 'http://www.meteoalarm.eu/index3.php?area='.$SITE['warnArea'].'&day=0&lang=gr_GR';
#
#     your own warning box. This is an extra file with your own messages which can be used for messages about maintenance etc.
#                
$SITE['warningTxt']        = false;         //#####  display this file always (true) when it exists
$SITE['warnTxt']        = './warning.txt';      //
#
#-----------------------------------------------------------------------------------------
# Banners for ads and other extra's
#-----------------------------------------------------------------------------------------
$SITE['banners']        = true;
$SITE['bannerTop']        = true;
$SITE['bannerBottom']        = false;
$SITE['bannerTopTxt']        = './banner.txt';       // can be .txt - .html file or .php
$SITE['bannerBottomTxt']    = './banner.txt';
#-----------------------------------------------------------------------------------------
#  Which areas of the website may be customized by the visitor. 
#  This info is processed in the first part of index.php
#-----------------------------------------------------------------------------------------
$SITE['userChangeDebug']    = true;            // true to let user set debug=Y  to use ini_set('display_errors', 'On');   error_reporting(E_ALL);    
$SITE['userChangeColors']    = true;            // let user select website colors / photos according to $SITE['colorStyles']
$SITE['userChangeMenu']        = true;         // user can choose Vertical or Horizontal menus
$SITE['userChangeHeader']    = true;                 // user can select their own header
$SITE['userChangeChoice']    = true;            // user can choose which page to displayed on next visit other than standard page
$SITE['userChangeLang']        = true;            // should be on to let user change to one of the supported languages
$SITE['userChangeUOM']        = true;            // let user select thier own units of measurement
$SITE['userChangeForecast']    = true;            // let user select thier own forecast
#
#
#---------------------------------------------------------------------------
# mobile site
# detection which mobile device is used is done in index.php using the code from 
# http://detectmobilebrowsers.mobi/  This Code is Free for Personal & Non Profit Usage
#---------------------------------------------------------------------------
$SITE['mobileSite']        = 'mobi/mobi.php';      // for switching to mobile site; set to "" when no mobile support is needed
$SITE['mobilePageNr']        = 110
#
#
#---------------------------------------------------------------------------
$SITE['imgDir']        = 'img/';        // directory under topfolder used for general images 
$SITE['cacheDir']    = 'cache/';        // directory to cache files 
$SITE['javascriptsDir']    = 'javaScripts/';    // all general javascripts
$SITE['forecastsDir']    = 'forecasts/';        //
$SITE['iconsDir']    = 'wsIcons/';
$SITE['defaultIconsDir']= $SITE['iconsDir'].'default_icons/';
$SITE['defaultIconsSml']= $SITE['iconsDir'].'default_icons_small/';
$SITE['windIcons']    = $SITE['iconsDir'].'windIcons/';
$SITE['windIconsSmall']    = $SITE['iconsDir'].'windIconsSmall/';
#
#
#
#
##---------------------------------------------------------------------------
# soil  moistere + temp  & leaf moistere readings
#---------------------------------------------------------------------------
$SITE['soilUsed']    = false;                 // true = we use soil moistere & temp sensors | false = no soil
$SITE['soilPage']    = false;                 // set to true if you have soil sensors and want a separate page with soil leaf information
$SITE['soilCount']    = '2';                    // 4 = max number of sensors
$SITE['soilDepth'][1]    = '10';                    // depth in $SITE['uomSnow'] (either cm  or inch)
$SITE['soilDepth'][2]    = '30';                    // sensor1 shallowest  sensor4 deepest
$SITE['soilDepth'][3]    = '50';                    // 
$SITE['soilDepth'][4]    = '75';                    // 
$SITE['uomMoist']    = ' cb';                // Unit of measure for moisture in soil: cb (default) or Kpa. 
$SITE['leafUsed']    = false;                 // do we use leaf moistere sensors 
$SITE['leafCount']    = '0';                    // 4 = max numer of leaf sensors
$SITE['soilPageNr']    = '69';                    // soilpage number from menudata.xml
#---------------------------------------------------------------------------
# show extra information about visitors in footer
#
# 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 
# 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
#
$SITE['geoKey']        = '';                    // ##### your key for use in inc/geoip: http://www.ipgp.net/api/xml/  $ip / $SITE['geoKey']
$SITE['visitorsFile']    = 'wolExported.str';                    // ip info about visitors is kept in this file (in cache directory), if not present it is created 
#
#---------------------------------------------------------------------------
#    Multi-language support 
#
$SITE['langFlags']    = true;                    // true=show flags
$SITE['langDir']    = 'lang/';                // all language translation files are store here
#
#
#---------------------------------------------------------------------------
# contact info
#---------------------------------------------------------------------------
$SITE['contactPage']    = 'yes';                // #####    do we want a contact page
$SITE['contactLink']    = 'index.php?p=86';                     // link to contact page
$SITE['contactDir']    = 'contact/';
$SITE['contactScript']    = $SITE['contactDir'].'incContact.php';
#
# ----------------- space page ---------------------------------------------
#
#
#
#
#---------------------------------------------------------------------------
# The units-of-measurement UOM for the correct display of your weatherdata   
#---------------------------------------------------------------------------
if ($SITE['region'] ==    'america' ) {
#---------------------------------------------------------------------------
#  here we define unit settings for  the  U S A   = imperial
#---------------------------------------------------------------------------
    
$SITE['uomTemp']        = '&deg;F';
    
$SITE['uomBaro']    = ' inHg';
    
$SITE['uomWind']     = ' mph';
    
$SITE['uomRain']    = ' in';
    
$SITE['uomSnow']    = ' in';
    
$SITE['uomDistance']    = ' mi';
    
$SITE['uomPerHour']     = '/hr';
    
$SITE['uomHeight']    = 'ft';
#---------------------------------------------------------------------------            
} else {
#---------------------------------------------------------------------------
#  here we define unit settings for  the for the rest of the world = metric
#---------------------------------------------------------------------------            
    
$SITE['uomTemp']        = '&deg;C';     // '&deg;C';  // ='&deg;C', ='&deg;F'
    
$SITE['uomBaro']    = ' hPa';       //'  hPa';    // =' hPa', =' mb', =' inHg'
    
$SITE['uomWind']     = ' km/h';      // ' km/h';   // =' km/h', =' kts', =' m/s', =' mph'
    
$SITE['uomRain']    = ' mm';        // ' mm';     // =' mm', =' in'
    
$SITE['uomSnow']    = ' cm';      // ' cm', =' in'
    
$SITE['uomDistance']    = ' km';      // ' km' or ' mi'  -- used for visibillity Wind Run display
    
$SITE['uomPerHour']     = '/hr';
    
$SITE['uomHeight']    = 'm';          // 'ft'  or 'm'    cloud height
}
#
#---------------------------------------------------------------------------
#  forecast settings
#
#---------------------------------------------------------------------------
#    do we use wxsim. Can be on starttpage or as separate page
#
$SITE['wxsimPage']    = false;         // ##### 
$SITE['wxsimDir']    = './wsWxsim/';
$SITE['wxsimData']    = '../';        // root folder   ####################
$SITE['wxsimIconsDir']    = $SITE['iconsDir'].'yrno_icons/';
$SITE['wxsimIconsSml']    = $SITE['iconsDir'].'yrno_icons_small/';
$SITE['wxsimIconsOwn']    = false;          // use wxsim icons (true) or our template icons (false)
#
#
#---------------------------------------------------------------------------
#    WU  settings for forecast  only as a separate page
#                                        
$SITE['wuPage']        = 'yes';           // #####  WU forecastpage in menu
#
# if set to false or 'no' do not bother with other $SITE["wu ...] settings as they are not used than
#
$SITE['wuKey']        = '4a35d63826422341';     // ##### set to your (free) Wunderground API key to retreive weatherinfo in xml
$SITE['wuFctId']    = 'I769';     // ##### Forecast XML set to Wunderground city id or to your pws id:  "Belgium/Leuven"  or "PWS:IVLAAMSG47"
$SITE['wuIconsDir']    = $SITE['iconsDir'].'wu_icons/';    
$SITE['wuIconsOwn']    = false;          // use wu icons (true) or our template icons (false)
$SITE['wuIconsCache']    = true;            // use wu icons from our cache (true) or our wu icons from wu url (false)
#---------------------------------------------------------------------------
#     MET.no settings  used for the forecasts
#---------------------------------------------------------------------------
#
$SITE['metnoPage']    = 'yes';    // #####  metno forecast page in menu    
#                                               this is the extensive forecast with graphs and icons
#       following icon settings for metno AND for yrno forecast
$SITE['yrnoIconsOwn']    = false;     // use yrno icons (true) or our template icons (false)
$SITE['yrnoIconsDir']    = $SITE['iconsDir'].'yrno_icons/';      // location of the icons    
#---------------------------------------------------------------------------
#     YR.no settings  used for the forecasts  for main-site - mobile site and graphical forecast display on mainpage                                             
#--------------------------------------------------------------------------- 
#                            
$SITE['yrnoPage']    = 'yes';    // #####  yrno forecast page in menu this is the one-page forecast with meteogram only    
#
#    if you set the page to 'no' for the main site you still YOU HAVE TO SET the other settings correctly
#       for background yowindow and mobile site
$SITE['yrnoID']        = 'Greece/North_Aegean/Mytilíni/';    // #####   generic adres for .png forecast
#$SITE['yrnoID']    = 'Sverige/Skåne/Råå/';                    // example for sewdisch city
$SITE['yrnoFcst']    = 'wsyrnofct/startMobi.php';    // forecast script location used in mobile site
#---------------------------------------------------------------------------
# HWA Het Weer Actueel settings  Settings used for the HWA forecast page and (graphical) forecast display on mainpage
#---------------------------------------------------------------------------
#    
$SITE['hwaPage']    = false;        // ##### hwa forecast page in menu
#    You can set the separate page to false BUT if you want to use HWA as a forecast on the main page
#       set the other $SITE["hwa ...] settings correctly
#     if you do not use HWA do not bother with other $SITE["hwa ...] settings as they are not used
#
$SITE['hwaXmlId']    = '000';                // ##### your Het Weer Actueel ID to retreive xml info
$SITE['hwaXmlKey']    = 'x67f7fb873eaf29526a11a9b7ac33bfac';  // ##### your Het Weer Actueel key to retreive xml info
$SITE['hwaIconsDir']    = 'wsHwa/hwa_icons/';    
$SITE['hwaIconsOwn']    = false;         // use hwa icons from cache (true) or our template icons (false)
#
#
#
#
#
#---------------------------------------------------------------------------
# Yahoo settings       Yahoo can be used for 1. the current conditions 2. forecast on mainpage and 3. a separate page with the forecast
#---------------------------------------------------------------------------
#
$SITE['yahooPage']    = 'yes';        // here you specify if you want a separate page
#    if you use yahoo to supply the current weather conditions you HAVE to set the other settings correctly
#    https://weather.yahoo.com find your city and copy the number, check for Leuven and you find 973505
$SITE['yaPlaceID']    = '957508';            // ##### 973505 = Leuven 
$SITE['yahooIconsOwn']    = true;        // use yahoo icons (true) or our template icons (false)
#
#---------------------------------------------------------------------------
# World Weather settings        World Weather can be used for a small separate forecast page
#---------------------------------------------------------------------------
#    
$SITE['worldPage']    = 'no';     // ##### world weather forecast page in menu
#       if set to false or '' do not bother with other $SITE["world ...] settings as they are not used
#
$SITE['worldKey']    = 'xegdt5rnspg8ypk8zuwpnnbw8';          #####
#       set your own key  request a (free) key if you want to use their forecast
$SITE['worldID']    = trim($SITE['latitude']).','.trim($SITE['longitude']);
$SITE['worldIconsOwn']    = false;     // use worldweather icons (true) or our template icons (false)
#---------------------------------------------------------------------------
#    Partner information:
#---------------------------------------------------------------------------
#     your id's for weather sites, mostly used to display logo and make a link to your weatherdata on their site
#    set to false if you do not cooperate with them
#
# WU  settings for your data at wunderground site  IVLBRABA2
#
$SITE['wuId']        = 'I769';        // ##### the ID of your personal weather station at the Wunderground site
$SITE['wuStart']    = '01-01-2013';     // #####  Stations first day of operation at wunderground format dd-mm-yyyy for wu history page
#
$SITE['wuHistPage']    = 'yes';          // ##### set to no is you are not a member of WeatherUnderground
#
$SITE['wuIdHome']    = 'http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID='.$SITE['wuId'];
#
# other sites where your data is shown
#
$SITE['hwaID']        = false;     // ##### Example  $SITE[hwaID']        = 'abcdefg';
$SITE['wowID']        = false;    // ##### Example  $SITE['wowID']        = 1234567;
$SITE['awekasID']    = false;    // ##### Example  $SITE['awekasID']    = 1234;
$SITE['anWeID']        = false;    // ##### Example  $SITE['anWeID']    = 1234567;
$SITE['pwsID']        = false;    // ##### Example  $SITE['pwsID']    = 'abcd99';
$SITE['cwopId']        = 'AP617';    // ##### Example  $SITE['cwopId']       = 'C6440';
$SITE['weatherlinkID']    = false;    // ##### Example  $SITE['weatherlinkID']= 'abcdefgh';
$SITE['wp24ID']        = false;       // ##### true or false
$SITE['uswg']        = false;       // ##### true or false
#---------------------------------------------------------------------------
# Mesonet id's and names
#---------------------------------------------------------------------------
$SITE['mesoID']        = false;            // #####  'WCWN';  'BNLWN';
$SITE['mesoName']    = 'xyz Weather Network';    // #####  'Benelux Weather Network';
$SITE['mesoLink']    = 'http://www.xyz.com/';    // #####  'http://www.beneluxweather.net/';
#
$SITE['ewnID']        = true;             // #####
#------------------------------------------------------------------------- #####
# end of configurable settings  - please do NOT change the settings below
#---------------------------------------------------------------------------
if ($SITE['region'] <> 'europe') {$SITE['ewnID'] = false;}      // ewn only works  in europ
#---------------------------------------------------------------------------
# Ajax
#---------------------------------------------------------------------------
$SITE['imgAjaxDir']    = 'ajaxImages/';        // directory for ajaxImages with trailing slash
$SITE['wsAjaxScript']   = 'javaScripts/ajax.js';    // for AJAX enabled display
$SITE['wsAjaxDataLoad'] = 'wsAjaxDataLoad.php';        // load fresh data for ajax page at users site
$SITE['ajaxGizmojs']    = 'javaScripts/ajaxgizmo.js';     // rotate gizmo info
$SITE['ajaxGizmo']     = 'incAjaxGizmo.php';         // default Giozmo
#---------------------------------------------------------------------------
# Which scripts to use to process the supplied data
#---------------------------------------------------------------------------
$SITE['functions']    = 'wsFunctions.php';          // weather functions, override
$SITE['langFunc']    = 'wsLangFunctions.php';    // general functions for languages
$SITE['menuXml']     = 'wsMenuData.xml';        // menu processes 'incMenuDataWilsele.xml';
$SITE['menuLoad']     = 'wsMenuLoad.php';
$SITE['spidersTxt']    = 'spiders.txt';
$SITE['uvScript']    = 'uvforecastv3.php';            // worldwide forecast script for UV Index
$SITE['uvLink']         = 'index.php?p=58';
$SITE['sideInc']    = 'wsSideColom.php';
$SITE['bottomInc']    = 'wsBottom.php';
$SITE['footer']      = 'wsFooter.php';
#---------------------------------------------------------------------------
#  script names for conversion of weatherprogram data to website/ajax data
#---------------------------------------------------------------------------
$SITE['getData']    = 'wsDataGet.php';        // data from ws tags to intermidiate array
$SITE['loadData']    = 'wsDataLoad.php';        // load data into variables (mostly ajax)
#---------------------------------------------------------------------------
# Website CSS files
#---------------------------------------------------------------------------
$SITE['CSSscreen']    = 'styleMain30.css';        // general stylesheet all pages
$SITE['CSSprint']    = 'stylePrint20.css';        // general stylesheet all pages for printing
$SITE['CSStable']    = 'styleTable20.css';        // general stylesheet all tables
$SITE['CSSmenuHor']    = 'styleMenuDrop20.css';    // stylesheet horizontal drop down menus
$SITE['CSSmenuVer']    = 'styleMenuVert20.css';    // stylesheet vertical fly-out menus
$SITE['CSSmood']    = 'styleMood20.css';        // stylesheet for adapting colors based on current  weathercondition

$SITE['noChoiceBackup']    = $SITE['noChoice'];
$SITE['menuPlaceBackup']= $SITE['menuPlace'];
$SITE['colorBackup']      = $SITE['colorNumber'];
$SITE['headerBackup']      = $SITE['header'];
$SITE['langBackup']    = $SITE['lang'];
#
# Multilanguage support constants 
$SITE['installedLanguages'] = array (
'nl' => 'Nederlands',
'en' => 'English',
'fr' => 'Fran&ccedil;ais',
'de' => 'Deutsch',
);
#
$uomBackup = array (
    
'uomTemp'     => $SITE['uomTemp'],
    
'uomBaro'     => $SITE['uomBaro'],
    
'uomWind'     => $SITE['uomWind'],
    
'uomRain'    => $SITE['uomRain'],
    
'uomSnow'     => $SITE['uomSnow'],
    
'uomDistance'     => $SITE['uomDistance'],
    
'uomPerHour'     => $SITE['uomPerHour'],
    
'uomHeight'     => $SITE['uomHeight']
);    
#
$SITE['supportedUnits'] = array ();
$SITE['supportedUnits'] ['temp'] = array('&deg;C',    '&deg;F');
$SITE['supportedUnits'] ['baro'] = array(' hPa',    ' mb',    ' inHg');
$SITE['supportedUnits'] ['wind'] = array(' km/h',    ' kts',    ' m/s',    ' mph');
$SITE['supportedUnits'] ['rain'] = array(' mm',        ' in');

# set the Timezone abbreviation automatically based on $SITE['tz'];
if (!function_exists('date_default_timezone_set')) {
     
putenv("TZ=" $SITE['tz']);
} else {
     
date_default_timezone_set($SITE['tz']);
}
$SITE['tzName']    = date("T",time());
#
#---------------------------------------------------------------------------
# Automatic Info we might need
#---------------------------------------------------------------------------
if(isset($_SERVER['REMOTE_ADDR']))   {$SITE['REMOTE_ADDR']    = $_SERVER['REMOTE_ADDR'];}
if(isset(
$_SERVER['REMOTE_HOST']))   {$SITE['REMOTE_HOST']    = $_SERVER['REMOTE_HOST'];}
if(isset(
$_SERVER['DOCUMENT_ROOT'])) {$SITE['WEBROOT']        = $_SERVER['DOCUMENT_ROOT'];}
if(isset(
$_SERVER['REQUEST_URI']))   {$SITE['REQURI']        = $_SERVER['REQUEST_URI'];}
if(isset(
$_SERVER['SERVER_NAME']))   {$SITE['SERVERNAME']    = $_SERVER['SERVER_NAME'];}
#---------------------------------------------------------------------------
# misc
$SITE['pageAstroCode']  = 67;
#---------------------------------------------------------------------------
if (!isset ($forecast) ) {$forecast  'yahoo  with 5 lines text only';}
$arr                    explode ('with'$forecast );
$org                    trim($arr[0]);
if (!isset (
$arr[1]) ) {$arr[1] = 'icons';}
$content                trim ($arr[1]);
$allowed                = array ('icons','meteogram'); 
$SITE['fctOrg']         = $org;
$SITE['fctContent']     = 'icons';
switch (
$org){
     case 
'metno':
        if (
in_array ($content$allowed) )   { $SITE['fctContent']     = $content;} 
        break;
     case 
'wxsim':
        if (
in_array ($content$allowed) )   { $SITE['fctContent']     = $content;} 
        break; 
    case 
'hwa':
        if (
$SITE['region'] <> 'europe' || ($SITE['belgium'] == false && $SITE['netherlands'] == false) ) {
                
$SITE['hwaPage']        = false;
                
$SITE['fctOrg']         = 'yahoo'
                break; 
        }
        
$allowed        = array ('icons','meteogram','hwa/mos graphic');
        if (
in_array ($content$allowed) )   { $SITE['fctContent']     = $content;} 
        break; 
    case 
'noaa':
        if (
$SITE['region'] <> 'america') {
                
$SITE['noaaPage']       = false;
                
$SITE['fctOrg']         = 'yahoo'
                break; 
        }
        if ( 
in_array ($content$allowed) )  { $SITE['fctContent']     = $content;} 
        break; 
     case 
'ec':
        if (
$SITE['region'] <> 'canada') {
                
$SITE['ecPage']         = false;
                
$SITE['fctOrg']         = 'yahoo'
                break; 
        }
        break;        
    default:
        
$SITE['fctOrg']         = 'yahoo';
        
$SITE['fctContent']     = 'text';
}
$SITE['fctOrgBackup']    = $SITE['fctOrg'];
$SITE['fctContentBackup']= $SITE['fctContent'];
#
if ($SITE['fctOrg'] == 'yahoo') {$SITE['yahooPage'] = true;}
if (
$SITE['fctOrg'] == 'metno') {$SITE['metnoPage'] = true;}
if (
$SITE['fctOrg'] == 'wxsim') {$SITE['wxsimPage'] = true;}
if (
$SITE['fctOrg'] == 'hwa')   {$SITE['hwaPage']   = true;}
if (
$SITE['fctOrg'] == 'noaa')  {$SITE['noaaPage']  = true;}
if (
$SITE['fctOrg'] == 'ec')    {$SITE['ecPage']    = true;}
#
if ($SITE['region'] == 'america')       {$SITE['hwaPage'] = $SITE['ecPage']  = false; }
if (
$SITE['region'] == 'canada')        {$SITE['hwaPage'] = $SITE['noaaPage']= false; }
if (
$SITE['region'] == 'other')         {$SITE['hwaPage'] = $SITE['noaaPage']= $SITE['ecPage']  = false; }
if (
$SITE['region'] == 'europe')        {$SITE['noaaPage']= $SITE['ecPage']  = false; }
if (
$SITE['belgium'] == false && $SITE['netherlands'] == false) {$SITE['hwaPage'] = false;}
#
$SITE['allowedFctOrgs'] = array();
if (
$SITE['yahooPage'] === 'yes' ||  $SITE['yahooPage'] === true) {
    
$SITE['allowedFctOrgs']['yahoo']     = array ('text');
}
if (
$SITE['metnoPage'] === 'yes' ||  $SITE['metnoPage'] === true) {
    
$SITE['allowedFctOrgs']['metno']     = array ('icons','meteogram');
}
if (
$SITE['hwaPage'] === 'yes' ||  $SITE['hwaPage'] === true) {
    
$SITE['allowedFctOrgs']['hwa']         = array ('icons','meteogram','hwa/mos');
}
if (
$SITE['wxsimPage'] === 'yes' ||  $SITE['wxsimPage'] === true) {
    
$SITE['allowedFctOrgs']['wxsim']     = array ('icons','meteogram');
}
if (
$SITE['noaaPage'] === 'yes' ||  $SITE['noaaPage'] === true) {
    
$SITE['allowedFctOrgs']['noaa']     = array ('icons','meteogram');
}
if (
$SITE['ecPage'] === 'yes' ||  $SITE['ecPage'] === true) {
    
$SITE['allowedFctOrgs']['ec']     = array ('icons');
}
# -------- now fetch the weather software settings if the file exists
if(file_exists("wsSettingsWeather.php")) { 
        include 
"wsSettingsWeather.php" ;  }
#
$string1  '';
if(isset(
$_SERVER['HTTP_HOST']))   {$string1     .= $_SERVER['HTTP_HOST'];}
if(isset(
$_SERVER['PHP_SELF']))    {$string1     .= $_SERVER['PHP_SELF'];}
$SITE['siteUrl']= 'http://'.str_replace ('index.php','',$string1);
#
if (isset ($wsDebug) && $wsDebug) {$SITE['wsDebug'] = true; } else {$SITE['wsDebug'] = false$wsDebug false;}
?>

wsSettingsWeather.php SettingsFiles should pe password protected - dated: 09-02-2023 00:31


Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /home/sv2bzq/domains/mitilini.sv2bzq.gr/public_html/weather2/printSite.php on line 140
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
<?php
#-----------------------------------------------------------------------
# display source of script if requested so
#-----------------------------------------------------------------------
if (isset($_REQUEST['sce']) && strtolower($_REQUEST['sce']) == 'view' ) {
   
$filenameReal __FILE__;
   
$download_size filesize($filenameReal);
   
header('Pragma: public');
   
header('Cache-Control: private');
   
header('Cache-Control: no-cache, must-revalidate');
   
header("Content-type: text/plain");
   
header("Accept-Ranges: bytes");
   
header("Content-Length: $download_size");
   
header('Connection: close');
   
readfile($filenameReal);
   exit;
}
$pageName    'wsSettingsWeather.php';
if (!isset(
$SITE)){echo "<h3>invalid call to script $pageName</h3>";exit;}
$pageVersion    '3.00 2014-09-13';
$SITE['wsModules'][$pageName] = 'version: ' $pageVersion;
$pageFile basename(__FILE__);    
if (
$pageFile <> $pageName) {$SITE['wsModules'][$pageFile]    = 'this file loaded instead of '.$pageName;}
$pathString .= '<!-- module '.$pageFile.' ==== '.$SITE['wsModules'][$pageName].' -->'.PHP_EOL;
#---------------------------------------------------------------------------
# 3.00 release version 
#---------------------------------------------------------------------------
#               Weather Station sensors and options for dashboard
#---------------------------------------------------------------------------
$SITE['UV']           = true;      // ##### set to false if no UV sensor
$SITE['SOLAR']        = true;      // ##### set to false if no Solar sensor
$SITE['extraTempLeft']  = false;      // ##### set to false if no extra sensor available or wanted on Ajax page
$SITE['extraTempRight'] = false;      // ##### set to false if no extra sensor available or wanted on Ajax page
#
#---------------------------------------------------------------------------
#               upload time for steelseries data
#---------------------------------------------------------------------------
$SITE['steelTime']    = 20;        // wait time to retrieve new info for steelseries gauges / realtime scripts
#---------------------------------------------------------------------------
#       Here we first set ALL specific weatherprogram-tag / pages to no
#       Do not change here as they are reset to values based on which weatherprogram is used
#---------------------------------------------------------------------------
$SITE['wdPage']     = 'no';        // WeatherDisplay
$SITE['cwPage']     = 'no';        // consolewd (WeatherDisplay for raspberryPI)
$SITE['wdlPage']     = 'no';        // WD  Live (flash)
$SITE['wlPage']     = 'no';        // WeatherLink
$SITE['wcPage']     = 'no';        // WeatherCat
$SITE['cuPage']     = 'no';        // Cumulus
$SITE['mhPage']     = 'yes';        // Meteohub
$SITE['mbPage']     = 'no';        // Meteobridge
$SITE['MeteoplugPage']     = 'no';        // Meteoplug
$SITE['cltrPage']    = 'no';        // Weather Display Live clientraw files 
$SITE['trendPage']     = 'no';        // trendpage for all weather programs
$SITE['mwPage']     = 'no';            // meteoware page (flash)
$SITE['graphsPage']     = 'no';        // graphs from weather program
$SITE['wsYTags']      = '';           // most weatherprograms do not need a separate yesterday file
#---------------------------------------------------------------------------
#       Are you using a DAVIS Weather Station VP or VUE
#---------------------------------------------------------------------------
$SITE['DavisVP']      = false;      // ##### set to false if not a Davis VP or VUE weather station
#---------------------------------------------------------------------------
#       Do you want to show a picture and text of your weather station in sidecolomn or bottom area
#---------------------------------------------------------------------------
$SITE['stationShow']    = true;        // ##### set to false if you do not want it
#
$SITE['stationTxt']    = 'Davis VP2';
$SITE['stationJpg']    = 'img/davis_logo.png';
$SITE['stationLink']    = 'http://www.davisnet.com/weather/products/professional-home-weather-stations.asp';
#                                
# example for Alecto:
#$SITE['stationTxt']     = 'Alecto WS-5000 ECO';            # the brand and name of your station
#$SITE['stationJpg']     = 'img/alecto.jpg';          # a small picture of your station
#$SITE['stationLink']    = 'http://www.alecto.nl/TradePoint/Item_View?itemNo=WS-5000%20ECO'; 
#---------------------------------------------------------------------------
#       Do you want to show which Website provider you are using
#---------------------------------------------------------------------------
$SITE['providerShow']    = true;        // ##### set to false if you do not want it
#
$SITE['providerTxt']    = 'My provider';                // you have to fill in your own information
$SITE['providerJpg']    = 'img/_provider.jpg';          // default picture
$SITE['providerLink']    = 'http://www.provider.xyz/';   // here also
#
#---------------------------------------------------------------------------
#       Do you want to show which computer you are using for your weatherprograms
#---------------------------------------------------------------------------
$SITE['pcShow']        = true;         // ##### 
#
$SITE['pcTxt']        = 'RaspBerry PI';
$SITE['pcJpg']        = 'img/raspi_logo.png';
$SITE['pcLink']     = 'http://www.raspberrypi.org/';
# example for consoleWD on a raspberry
#$SITE['pcTxt']        = 'RaspberryPI';
#$SITE['pcJpg']        = 'img/raspi_logo.png';
#$SITE['pcLink']     = 'http://www.raspberrypi.org/';
# and here one for Meteobridge on an Asus router
#$SITE['pcTxt']        = 'Asus WL -330N3G';
#$SITE['pcJpg']        = 'img/asus.png';
#$SITE['pcLink']    = 'http://www.awekas.at/shop/index.php/awekas-bridge-2.html';
#---------------------------------------------------------------------------
#       Below you find all settings PER weatherprogram.
#               Only change the settings for the weatherprogram you are using
#---------------------------------------------------------------------------
switch ($SITE['WXsoftware']) {
#---------------------------------------------------------------------------
#               required settings for     M E T E O H U B     
case 'MH':
#---------------------------------------------------------------------------
        
$SITE['uploadDir']    =  'uploadMH/';            // #####    where to store uploaded files (weather variables graphs clientraw)
#       $SITE['uploadDir']    =  '../';               // #####        example for upload to root
        
$SITE['clientrawDir']     = $SITE['uploadDir'];     //     clientraw default in same location as other uploaded files
        
$SITE['graphImageDir']  = $SITE['uploadDir'];   //     graph images for website page also same location as other files
#
    
$SITE['wsSeqTemp']    = '&deg;C';     // site default='&deg;C', ='&deg;F'
    
$SITE['wsSeqBaro']    = ' hPa';    // site default=' hPa', =' mb', =' inHg'
    
$SITE['wsSeqWind']    = ' km/h';     // its a pitty but the seq arrays for wind are different compared to the normal values
    
$SITE['wsSeqRain']    = ' mm';    // site default=' mm', =' in'
#
    
$SITE['MeteoplugPage']     = 'yes';    // ##### remove line IF YOU DO NOT USE Meteoplug (= paid extention to Meteohub)
    
$SITE['wdlPage']     = 'yes';     // ##### remove line IF YOU DO NOT WANT TO USE WeatherDisplay Live 
    
$SITE['cltrPage']    = 'yes';    // ##### remove line IF YOU DO NOT upload clientraw files
    
$SITE['mhPage']     = 'yes';
    
$SITE['trendPage']     = 'yes';     
    
$SITE['graphsPage']     = 'yes';
#
    
$SITE['WXsoftwareURL']  = 'http://wiki.meteohub.de/Main_Page';
    
$SITE['WXsoftwareLongName']= 'Meteohub';
    
$SITE['WXsoftwareIcon'] = 'img/meteohub.jpg';
    
$SITE['WXsoftwareShow']    = true;        // ##### show a picture and text in sidecolomn or bottom area
    
    
$SITE['wsAjaxDataLoad'] = 'wsAjaxDataLoad_v3.php';
    
$SITE['realtime']    = 'cltrw';
#        $SITE['realtime']    = 'none';
        
$SITE['realtime_file']    = $SITE['clientrawDir'].'clientraw.txt';

#
    
$SITE['steelFile']    = $SITE['uploadDir'].'realtimeTags.txt';
    
$SITE['wsTags']     = $SITE['uploadDir'].'todayTags.php';    
    
$SITE['wsYTags']      = $SITE['uploadDir'].'ydayTags.php';
    
$SITE['yrnoXmlName']    = 'yowindowRT.php';     
        break;
#---------------------------------------------------------------------------
#               required settings for   M E T E O B R I D G E   
case 'MB':
#---------------------------------------------------------------------------
        
$SITE['uploadDir']    =  'uploadMB/';            // #####    where to store uploaded files (weather variables graphs clientraw)
#       $SITE['uploadDir']    =  '../';               // #####        example for upload to root
        
$SITE['clientrawDir']     = $SITE['uploadDir'];     //     clientraw default in same location as other uploaded files
        
$SITE['graphImageDir']  = $SITE['uploadDir'];   //     graph images for website page also same location as other files
#
    
$SITE['mbPage']     = 'yes';
    
$SITE['trendPage']     = 'yes';
    
$SITE['graphsPage']     = 'yes';
#
    
$SITE['WXsoftwareURL']  = 'http://www.meteobridge.com/wiki/index.php/Main_Page';
    
$SITE['WXsoftwareLongName']= 'Meteobridge';
    
$SITE['WXsoftwareIcon'] = 'img/meteobridge.jpg';
    
$SITE['WXsoftwareShow']    = true;                // ##### show a picture and text in sidecolomn or bottom area
#
    
$SITE['steelFile']    = $SITE['uploadDir'].'realtime.txt';
    
$SITE['wsTags']     = $SITE['uploadDir'].'tags.php';
    
$SITE['wsTags']     = $SITE['uploadDir'].'tagsSoil.php';
    
$SITE['yrnoXmlName']    = $SITE['uploadDir'].'yowindow.xml';
        break;
#---------------------------------------------------------------------------
#               required settings for   W E A T H E R   D I S P L A Y   
case 'WD':
#---------------------------------------------------------------------------
        
$SITE['uploadDir']    =  'uploadWD/';            // #####    where to store uploaded files (weather variables graphs clientraw)
#       $SITE['uploadDir']    =  '../';               // #####        example for upload to root
        
$SITE['clientrawDir']     = $SITE['uploadDir'];     //     clientraw default in same location as other uploaded files
        
$SITE['graphImageDir']  = $SITE['uploadDir'];   //     graph images for website page also same location as other files
#
    
$SITE['wdPage']     = 'yes';
    
$SITE['wdlPage']     = 'yes';             // ##### remove line IF YOU DO NOT WANT TO USE WeatherDisplay Live 
    
$SITE['cltrPage']    = 'yes';            // ##### remove line IF YOU DO NOT WANT upload clientraw files    
    
$SITE['trendPage']     = 'yes';
    
$SITE['graphsPage']     = 'yes';
#
    
$SITE['WXsoftwareURL']  = 'http://www.weather-display.com/';
    
$SITE['WXsoftwareLongName'] = 'Weather Display';
    
$SITE['WXsoftwareIcon'] = 'img/wd.jpg';
    
$SITE['WXsoftwareShow']    = true;        // ##### show a picture and text in sidecolomn or bottom area
#
    
$SITE['steelFile']    = $SITE['uploadDir'].'customclientraw.txt';
    
$SITE['wsTags']     = $SITE['uploadDir'].'testtags.php'
     
$SITE['yrnoXmlName']    = $SITE['uploadDir'].'yowindow.xml';
        break;
#---------------------------------------------------------------------------
#               required settings for   C O N S O L E  WD  (= on raspberryPI)
case 'CW':
#---------------------------------------------------------------------------
        
$SITE['uploadDir']    =  'uploadCW/';            // #####    where to store uploaded files (weather variables graphs clientraw)
#       $SITE['uploadDir']    =  '../';               // #####        example for upload to root
        
$SITE['clientrawDir']     = $SITE['uploadDir'];     //     clientraw default in same location as other uploaded files
        
$SITE['graphImageDir']  = $SITE['uploadDir'];   //     graph images for website page also same location as other files
#
    
$SITE['cwPage']     = 'yes';
    
$SITE['wdlPage']     = 'yes';             // ##### remove line IF YOU DO NOT WANT TO USE WeatherDisplay Live 
    
$SITE['cltrPage']    = 'yes';            // ##### remove line IF YOU DO NOT WANT upload clientraw files    
    
$SITE['trendPage']     = 'yes';
    
$SITE['wxsimPage']    = 'no';
#
    
$SITE['WXsoftwareURL']  = 'http://www.weather-display.com/';
    
$SITE['WXsoftwareLongName'] = 'consoleWD';    
    
$SITE['WXsoftwareIcon'] = 'img/consolewd.png';
    
$SITE['WXsoftwareShow']    = true;        // ##### show a picture and text in sidecolomn or bottom area
#
    
$SITE['steelFile']    = $SITE['uploadDir'].'customclientraw.txt';
    
$SITE['wsTags']     = $SITE['uploadDir'].'testtags.php';
    
$SITE['yrnoXmlName']    = $SITE['uploadDir'].'yowindow.php';
        break;
#---------------------------------------------------------------------------
#               required settings for   C U M U L U S
case 'CU':
#---------------------------------------------------------------------------
        
$SITE['uploadDir']    =  'uploadCU/';            // #####    where to store uploaded files (weather variables graphs clientraw)
#       $SITE['uploadDir']    =  '../';               // #####        example for upload to root
        
$SITE['clientrawDir']     = $SITE['uploadDir'];     //     clientraw default in same location as other uploaded files
        
$SITE['graphImageDir']  = $SITE['uploadDir'];   //     graph images for website page also same location as other files
#    $SITE['graphImageDir']    = "../cumulus/images/";    // ##### often CU users store there steelseries and other graphs here 
#
    
$SITE['cuPage']     = 'yes';
    
$SITE['trendPage']     = 'yes';
    
$SITE['graphsPage']     = 'yes';
#
    
$SITE['WXsoftwareURL']  = 'http://sandaysoft.com/products/cumulus';    
    
$SITE['WXsoftwareLongName'] = 'Cumulus';
    
$SITE['WXsoftwareIcon'] = 'img/cumulus.gif';
    
$SITE['WXsoftwareShow']    = true;        // ##### show a picture and text in sidecolomn or bottom area
#
    
$SITE['steelFile']    = $SITE['uploadDir'].'realtimeTags.txt';
    
$SITE['wsTags']     = $SITE['uploadDir'].'tags.php';        
    
$SITE['yrnoXmlName']    = $SITE['uploadDir'].'yowindow.php';
        break;
#---------------------------------------------------------------------------
#               required settings for   W E A T H E R L I N K
case 'WL':
#---------------------------------------------------------------------------
        
$SITE['uploadDir']    =  'uploadWL/';            // #####    where to store uploaded files (weather variables graphs clientraw)
#       $SITE['uploadDir']    =  '../';               // #####        example for upload to root
        
$SITE['clientrawDir']     = $SITE['uploadDir'];     //     clientraw default in same location as other uploaded files
        
$SITE['graphImageDir']  = $SITE['uploadDir'];   //     graph images for website page also same location as other files
#
    
$SITE['wsDateTime']    = 'd-m-y';        
    
$SITE['wlPage']     = 'yes';            
    
$SITE['graphsPage']     = 'yes';
#
    
$SITE['WXsoftwareURL']  = 'http://www.davisnet.com/index.asp';    
    
$SITE['WXsoftwareLongName'] = 'WeatherLink';
    
$SITE['WXsoftwareIcon'] = 'img/weatherlink.png';
    
$SITE['WXsoftwareShow']    = true;                // ##### show a picture and text in sidecolomn or bottom area
#
    
$SITE['steelFile']    = $SITE['uploadDir'].'realtimeTags.php';
    
$SITE['wsTags']     = $SITE['uploadDir'].'todayTags.php'
    
$SITE['wsYTags']      = $SITE['uploadDir'].'ydayTags.php';
    
$SITE['yrnoXmlName']    = $SITE['uploadDir'].'yowindow.php';
    
$SITE['moonSet']      = 'inc/astronomy.php';     // to calculate moon set & rise values
        
break;
#---------------------------------------------------------------------------
#               required settings for   W E A T H E R   C A T  (for Mac)
case 'WC':
#---------------------------------------------------------------------------
        
$SITE['uploadDir']    =  'uploadWC/';            // #####    where to store uploaded files (weather variables graphs clientraw)
#       $SITE['uploadDir']    =  '../';               // #####        example for upload to root
        
$SITE['clientrawDir']     = $SITE['uploadDir'];     //     clientraw default in same location as other uploaded files
        
$SITE['graphImageDir']  = $SITE['uploadDir'];   //     graph images for website page also same location as other files
#
#    $SITE['wsDateTime']    = 'd-m-y';        
    
$SITE['wcPage']     = 'yes';            
    
$SITE['graphsPage']     = 'yes';
#
    
$SITE['WXsoftwareURL']  = 'http://trixology.com/weathercat/';    
    
$SITE['WXsoftwareLongName'] = 'WeatherCat';
    
$SITE['WXsoftwareIcon'] = 'img/weathercat.png';
    
$SITE['WXsoftwareShow']    = true;        // ##### show a picture and text in sidecolomn or bottom area
#
    
$SITE['steelFile']    = $SITE['uploadDir'].'realtimeTags.txt';
    
$SITE['wsTags']     = $SITE['uploadDir'].'wsTagsWC.php'
    
$SITE['yrnoXmlName']    = $SITE['uploadDir'].'yowindow.php';
    
$SITE['moonSet']      = 'inc/astronomy.php';     // to calculate moon set & rise values
        
break;
#---------------------------------------------------------------------------
#               required settings for   WeatherLink.com
case 'DW':
#---------------------------------------------------------------------------
        
$SITE['uploadDir']    =  'uploadXX/';
        
$SITE['clientrawDir']     = $SITE['uploadDir'];     //     clientraw default in same location as other uploaded files
        
$SITE['graphImageDir']  = $SITE['uploadDir'];   //     graph images for website page also same location as other files
#
        
$SITE['DavisVP']      = false;              // false as wl.com does not support Davis forecast text in xml
        
$SITE['wlink_key']      = 'xyz';        // #####
        
$SITE['wlink_pw']       = 'xyz';        // #####
#
    
$SITE['wlcPage']     = 'yes';            
    
$SITE['graphsPage']     = 'yes';
#
    
$SITE['WXsoftwareURL']  = 'http://www.weatherlink.com/user/'.$SITE['wlink_key'].'/index.php';    
    
$SITE['WXsoftwareLongName'] = 'WSWIN / PC-Wetterstation';
    
$SITE['WXsoftwareIcon'] = 'img/wl_top.png';
    
$SITE['WXsoftwareShow']    = true;        // ##### show a picture and text in sidecolomn or bottom area
#
#    $SITE['steelFile']    = $SITE['uploadDir'].'realtimeTags.txt';
    
$SITE['wsTags']     = $SITE['uploadDir'].'tagsWLCOM.php'
    
$SITE['wsCronTags']      = $SITE['uploadDir'].'yesterday_tagsWLCOM.php';
    
$SITE['yrnoXmlName']    = '';
    
$SITE['moonSet']      = 'inc/astronomy.php';     // to calculate moon set & rise values
        
$SITE['cacheDW']        = 140;  // cache time max allowed in seconds
        
break;
#---------------------------------------------------------------------------
#               required settings for   wswin / 
case 'WS':
#---------------------------------------------------------------------------
        
$SITE['uploadDir']    =  'uploadWS/';            // #####    where to store uploaded files (weather variables graphs clientraw)
#       $SITE['uploadDir']    =  '../';               // #####        example for upload to root
        
$SITE['clientrawDir']     = $SITE['uploadDir'];     //     clientraw default in same location as other uploaded files
        
$SITE['graphImageDir']  = $SITE['uploadDir'];   //     graph images for website page also same location as other files
#
    
$SITE['WXsoftwareShow']    = true;                // ##### show a picture and text in sidecolomn or bottom area

        
$SITE['cltrPage'] = $SITE['wdlPage'] = 'yes';    // Weather Display Live clientraw files /pages
 
        
$SITE['trendPage']     = 'yes';        // trendpage 

        
$SITE['mwPage']     = 'yes';            // meteoware page (flash)
        
$SITE['meteowareFile']  = './mwlive/mwliveRT.php';
                
#    $SITE['graphsPage']     = 'yes';
#
#        $SITE['realtime']    = 'json';               // not yet supported for wswin - use ckentraw
#        $SITE['realtime_file']    = $SITE['uploadDir'].'realtimeTags.txt';

        
$SITE['realtime']    = 'cltrw';
        
$SITE['realtime_file']    = $SITE['clientrawDir'].'clientraw.txt';

#        $SITE['realtime']    = 'none';

        
$SITE['wsAjaxDataLoad'] = 'wsAjaxDataLoad_v3.php';
        
        
$SITE['yrnoXmlName']    = 'yowindowRT.php'
         
    
$SITE['wsTags']     = $SITE['uploadDir'].'todayTagsWSWIN.php'
        
$SITE['wswin_day_txt']  = $SITE['uploadDir'].'tags.txt';
    
$SITE['wsCronTags']      = $SITE['uploadDir'].'yesterdayTagsWSWIN.php';

    
$SITE['WXsoftwareURL']  = 'http://www.pc-wetterstation.de/en1index.html';    
    
$SITE['WXsoftwareLongName'] = 'WSWIN';
    
$SITE['WXsoftwareIcon'] = 'img/wswin.gif';
#
        
$SITE['gaugespecs']     = false;
        break;

#---------------------------------------------------------------------------
default:
    echo 
'<H3>Other software not supported (yet)</h3>'.PHP_EOL; exit;
}
#---------------------------------------------------------------------------
$SITE['wsRealTime']     = 1*60+30;    // number of seconds before realtime (or clntraw) data is considered obsolete
$SITE['wsNormTime']     = 5*60+30;      // number of seconds before (tags) data is considered obsolete
$SITE['wsFtpTime']     = 60*60+30;    // number of seconds before all data (graphs) is considered obsolete
$SITE['wsDataTime']     = 5*60+30;      // number of seconds before all data (actual internal time) is considered obsolete
#---------------------------------------------------------------------------
?>

You find our weather info also at:


European Weather Network

Weather Underground

Citizen Weather Observer Program (CWOP)

Equipment we use:


Weather-station
Davis VP2

Weather-program
Meteohub

Weather-server
RaspBerry PI

Provider
My provider

Davis VP2

Meteohub

RaspBerry PI

My provider