Northport NY Webcam more information Northport NY Webcam


Visit our other weather sites:

Template documentation
and downloads

And another site



Display key values and files

scriptsWD/testtags.txt - dated: Sep 7 2017 1:44 pm


Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /home/portan24/public_html/weather28/printSite.php on line 134
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
<?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    'testtags.php';
if (!isset(
$SITE)){echo "<h3>invalid call to script $pageName</h3>";exit;}
$pageVersion    '2.6 2014-10-10 11:55:45 ';
$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;}
echo 
'<!-- module '.$pageFile.' ==== '.$SITE['wsModules'][$pageFile]." -->".PHP_EOL;
#-----------------------------------------------------------------------
# 3.00 2014-09-22 release version 3.01 added ET conversion
# --------------------------------------- version ----------------------
$ws['tags.php']        = $pageName.'-'.$pageVersion;
# --------------------------------------- conditions--------------------
$weathercond         '%weathercond%';
$ws['wdCurCond']     = '%Currentsolardescription%';
$ws['wdCurIcon']    = '%iconnumber%';            // Current icon number
$ws['wdMetarCcn']    = '%weatherreport%';        // Current weather conditions from selected METAR
$ws['wdMetarCld']    = '%metarcloudreport%';        // Cloud METAR label from the metargif
# ------------------------------------------ units ---------------------
$wdDist     '%uomdistance%';     // = 'mi','km'  (for windrun variables)
# ------------------------------------------- date - time --------------
$wdDatefmt     '%datefmt%';         //  = 'd/m/y', 'm/d/y'
$wdSeconds    '00';
$wdMinute     '%time-minute%';    // Current minute '20'
$wdHour     '%time-hour%';    // Current hour '17'
$wdDay         '%date-day%';        // Current day  '15'
$wdMonth     '%date-month%';    // Current month '06'
$wdYear     '%date-year%';    // Current year '2012'
$ymd        = (string) $wdYear.$wdMonth.$wdDay;   // 
$ws['actTime']    = (string) $ymd.$wdHour.$wdMinute.$wdSeconds// '20120523113945';
# ------------------------------------------ temperature ---------------
$to     $SITE['uomTemp'];
$from    '%uomtemp%';         //  = 'C', 'F',  (or  '°C', '°F', or '&deg;C', '&deg;F' )

$ws['tempMinTodayTime']    = wdDate('%mintempt%');
$ws['tempMinYdayTime']    = wdDate('%mintempyestt%');
$ws['tempMinMonthTime']    = wdYMD('%mrecordlowtempyear%','%mrecordlowtempmonth%','%mrecordlowtempday%');
$ws['tempMinYearTime']    = wdYMD('%yrecordlowtempyear%','%yrecordlowtempmonth%','%yrecordlowtempday%');
$ws['tempMaxTodayTime']    = wdDate('%maxtempt%'); 
$ws['tempMaxYdayTime']    = wdDate('%maxtempyestt%'); //yday
$ws['tempMaxMonthTime']    = wdYMD('%mrecordhightempyear%','%mrecordhightempmonth%','%mrecordhightempday%');
$ws['tempMaxYearTime']    = wdYMD('%yrecordhightempyear%','%yrecordhightempmonth%','%yrecordhightempday%');
$ws['dewpMinTodayTime']    = wdDate('%mindewt%');
$ws['dewpMinYdayTime']    = wdDate('%mindewyestt%'); //yday
$ws['dewpMaxTodayTime']    = wdDate('%maxdewt%');
$ws['dewpMaxYdayTime']    = wdDate('%maxdewyestt%');  // yday
$ws['heatMaxTodayTime']    = wdDate('%maxheatt%');
$ws['heatMaxYdayTime']    = wdDate('%maxheatyestt%');
$ws['heatMaxMonthTime']    = wdYMD('%mrecordhighheatindexyear%','%mrecordhighheatindexmonth%','%mrecordhighheatindexday%');
$ws['heatMaxYearTime']    = wdYMD('%yrecordhighheatindexyear%','%yrecordhighheatindexmonth%','%yrecordhighheatindexday%');
$ws['chilMinTodayTime']    = wdDate('%minwindcht%');
$ws['chilMinYdayTime']    = wdDate('%minchillyestt%'); // yday
$ws['chilMinMonthTime'] = wdYMD('%mrecordlowchillyear%','%mrecordlowchillmonth%','%mrecordlowchillday%','12','00');
$ws['chilMinYearTime']    = wdYMD('%yrecordlowchillyear%','%yrecordlowchillmonth%','%yrecordlowchillday%','12','00'); 

$ws['tempAct']        = wsConvertTemperature('%temp%'$from);  // convert and clean of units
$ws['tempActInside']    = wsConvertTemperature('%indoortemp%'$from);
$ws['tempActExtra1']    = wsConvertTemperature('%none%'$from);    
$ws['tempDelta']    = wsConvertTemperature('%tempchangelasthourmetric%'$from);    
$ws['tempToday']    = wsConvertTemperature('%avtempsincemidnight%'$from);
$ws['tempMinToday']    = wsConvertTemperature('%mintemp%'$from);
$ws['tempMinYday']    = wsConvertTemperature('%mintempyest%'$from);
$ws['tempMinMonth']    = wsConvertTemperature('%mrecordlowtemp%'$from);
$ws['tempMinYear']    = wsConvertTemperature('%yrecordlowtemp%'$from);
$ws['tempMaxToday']    = wsConvertTemperature('%maxtemp%'$from);
$ws['tempMaxYday']    = wsConvertTemperature('%maxtempyest%'$from);
$ws['tempMaxMonth']    = wsConvertTemperature('%mrecordhightemp%'$from);
$ws['tempMaxYear']    = wsConvertTemperature('%yrecordhightemp%'$from);

$ws['dewpAct']      = wsConvertTemperature('%dew%'$from);
$ws['dewpDelta']    = wsConvertTemperature('%dewchangelasthour%'$from);
$ws['dewpMinToday']      = wsConvertTemperature('%mindew%'$from);
$ws['dewpMinYday']      = wsConvertTemperature('%mindewyest%'$from);
$ws['dewpMaxToday']      = wsConvertTemperature('%maxdew%'$from);
$ws['dewpMaxYday']      = wsConvertTemperature('%maxdewyest%'$from);

$ws['heatAct']      = wsConvertTemperature('%heati%'$from);
$ws['heatDelta']    = 0;
$ws['heatMaxToday']    = wsConvertTemperature('%maxheat%'$from);
$ws['heatMaxYday']    = wsConvertTemperature('%maxheatyest%'$from);
$ws['heatMaxMonth']    = wsConvertTemperature('%mrecordhighheatindex%'$from);
$ws['heatMaxYear']    = wsConvertTemperature('%yrecordhighheatindex%'$from);
    
$ws['chilAct']        = wsConvertTemperature('%windch%'$from);
$ws['chilDelta']    = 0;
$ws['chilMinToday']    = wsConvertTemperature('%minwindch%'$from);
$ws['chilMinYday']    = wsConvertTemperature('%minchillyest%'$from);
$ws['chilMinMonth']    = wsConvertTemperature('%mrecordlowchill%'$from);
$ws['chilMinYear']    = wsConvertTemperature('%yrecordlowchill%'$from);

$ws['hudxAct']         = wsConvertTemperature('%humidexcelsius%''C');
$ws['hudxDelta']     = 0;
$ws['hudxMaxToday']     = wsConvertTemperature('%todayhihumidex%',  'C');

# ------------------------------------------ extreme temp   ------------
$ws['daysXHigh']    = '%daysTmax>30C%';
$ws['daysHigh']        = '%daysTmax>25C%';
$ws['daysLow']        = '%daysTmin<0C%';
$ws['daysXLow']        = '%daysTmin<-15C%';
# ------------------------------------------ pressure / baro -----------
$to     $SITE['uomBaro'];
$from    '%uombaro%';         //  = 'inHg', 'hPa', 'kPa', 'mb'

$ws['baroMinTodayTime']    = wdDate('%lowbarot%');
$ws['baroMinYdayTime']    = wdDate('%minbaroyestt%'); // ytd
$ws['baroMinMonthTime']    = wdYMD('%mrecordlowbaroyear%','%mrecordlowbaromonth%','%mrecordlowbaroday%');
$ws['baroMinYearTime']    = wdYMD('%yrecordlowbaroyear%','%yrecordlowbaromonth%','%yrecordlowbaroday%');
$ws['baroMaxTodayTime']    = wdDate('%highbarot%');
$ws['baroMaxYdayTime']    = wdDate('%maxbaroyestt%');  // ytd
$ws['baroMaxMonthTime']    = wdYMD('%mrecordhighbaroyear%','%mrecordhighbaromonth%','%mrecordhighbaroday%');
$ws['baroMaxYearTime']    = wdYMD('%yrecordhighbaroyear%','%yrecordhighbaromonth%','%yrecordhighbaroday%');

$ws['baroAct']         = wsConvertBaro('%baro%'$from);
$ws['baroDelta']    = wsConvertBaro('%trend%'$from);
$ws['baroMinToday']    = wsConvertBaro('%lowbaro%'$from);
$ws['baroMinYday']    = wsConvertBaro('%minbaroyest%'$from);
$ws['baroMinMonth']    = wsConvertBaro('%mrecordlowbaro%'$from);
$ws['baroMinYear']     = wsConvertBaro('%yrecordlowbaro%'$from);    
$ws['baroMaxToday']    = wsConvertBaro('%highbaro%'$from);
$ws['baroMaxYday']    = wsConvertBaro('%maxbaroyest%'$from);
$ws['baroMaxMonth']    = wsConvertBaro('%mrecordhighbaro%'$from);
$ws['baroMaxYear']     = wsConvertBaro('%yrecordhighbaro%'$from);

# ------------------------------------------ humidity  -----------------
$ws['humiMinTodayTime ']= wdDate('%lowhumt%');
$ws['humiMinYdayTime ']    = wdDate('%minhumyestt%');   // ytd
$ws['humiMaxTodayTime'] = wdDate('%highhumt%');
$ws['humiMaxYdayTime']     = wdDate('%maxhumyestt%');   // ytd

$ws['humiAct']        = '%hum%'*1.0;
$ws['humiExtra']    = '%none%'*1.0;
$ws['humiDelta']    = '%humchangelasthour%'*1.0;
$ws['humiMinToday']     = '%lowhum%'*1.0;
$ws['humiMinYday']     = '%minhumyest%'*1.0;
$ws['humiMaxToday']    = '%highhum%'*1.0;
$ws['humiMaxYday']    = '%maxhumyest%'*1.0;

# ------------------------------------------ rain  ---------------------
$to     $SITE['uomRain'];
$from    '%uomrain%';         //  = 'mm', 'in'

$ws['rainDayMnth']     = '%dayswithrain%';      // %dayswithrain%         Days with rain for the month
$ws['rainDayYear']     = '%dayswithrainyear%';    // %dayswithrainyear%    Days with rain for the year

$ws['rainRateAct']     = wsConvertRainfall('%currentrainrate%'$from);
$ws['rainRateToday']     = wsConvertRainfall('%maxrainrate%'$from);        
$ws['rainHour']        = wsConvertRainfall('%hourrn%'$from);
$ws['rainToday']    = wsConvertRainfall('%dayrn%'$from);
$ws['rainYday']        = wsConvertRainfall('%ystdyrain%'$from);
$ws['rainMonth']    = wsConvertRainfall('%monthrn%'$from);
$ws['rainYear']        = wsConvertRainfall('%yearrn%'$from);
$ws['rainDaysWithNo']    = '%dayswithnorain%';
$ws['rainWeek']        = wsConvertRainfall('%raincurrentweek%'$from);
# ------------------------------------------ EVAPOTRANSPIRATION --------
$ws['etToday']         = wsConvertRainfall('%VPet%'$from);
$ws['etYday']         = wsConvertRainfall('%yesterdaydaviset%'$from);
$ws['etMonth']         = wsConvertRainfall('%VPetmonth%'$from);

# ------------------------------------------ wind  ---------------------
$to     $SITE['uomWind'];
$from    '%uomwind%';         //  = 'kts','mph','kmh','km/h','m/s','Bft'

$ws['windActDsc']    = '%dirlabel%';
$ws['windBeafort']    = '%beaufortnum%';
$ws['gustMaxTodayTime']    = wdDate('%maxgstt%');
$ws['gustMaxYdayTime']    = wdDate('%maxgustyestt%');
$ws['gustMaxMonthTime']    = wdYMD('%mrecordhighgustyear%','%mrecordhighgustmonth%','%mrecordhighgustday%');
$ws['gustMaxYearTime']    = wdYMD('%yrecordhighgustyear%','%yrecordhighgustmonth%','%yrecordhighgustday%');

$ws['windAct']        = wsConvertWindspeed('%avgspd%'$from);
$ws['gustAct']        = wsConvertWindspeed('%gstspd%'$from);
$ws['gustMaxHour']    = wsConvertWindspeed('%maxgsthr%'$from);    
$ws['gustMaxToday']    = wsConvertWindspeed('%maxgst%'$from);
$ws['gustMaxYday']    = wsConvertWindspeed('%maxgustyestnodir%'$from); 
$ws['gustMaxMonth']    = wsConvertWindspeed('%mrecordwindgust%'$from);
$ws['gustMaxYear']    = wsConvertWindspeed('%yrecordwindgust%'$from);    

if (
$ws['gustAct'] <= $ws['windAct'])    {$ws['gustAct'] = $ws['windAct'];}
# ------------------------------------------  UV   ---------------------
$ws['uvMaxTodayTime']     = wdDate('%highuvtime%');
$ws['uvMaxYdayTime']     = wdDate('%highuvyesttime%');
$ws['uvMaxMonthTime']     = wdYMD('%mrecordhighuvyear%','%mrecordhighuvmonth%','%mrecordhighuvday%');
$ws['uvMaxYearTime']     = wdYMD('%yrecordhighuvyear%','%yrecordhighuvmonth%','%yrecordhighuvday%');

$ws['uvAct']        = '%VPuv%';
$ws['uvMaxToday']    = '%highuv%';
$ws['uvMaxYday']    = '%highuvyest%';
$ws['uvMaxMonth']    = '%mrecordhighuv%';
$ws['uvMaxYear']    = '%yrecordhighuv%';
# ------------------------------------------ Solar  --------------------
$ws['solarMaxTodayTime']= wdDate('%highsolartime%');
$ws['solarMaxYdayTime'] = wdDate('%highsolaryesttime%');
$ws['solarMaxMonthTime']= wdYMD('%mrecordhighsolaryear%','%mrecordhighsolarmonth%','%mrecordhighsolarday%');
$ws['solarMaxYearTime'] = wdYMD('%yrecordhighsolaryear%','%yrecordhighsolarmonth%','%yrecordhighsolarday%');

$ws['solarAct']        = '%VPsolar%'*1.0;
$ws['solActPerc']    = '%currentsolarpctplain%';
$ws['solarMaxToday']    = '%highsolar%';
$ws['solarMaxYday']    = '%highsolaryest%';
$ws['solarMaxMonth']    = '%mrecordhighsolar%';
$ws['solarMaxYear']    = '%yrecordhighsolar%';
# ------------------------------------------ cloud height --------------
$to    $SITE['uomHeight'];
$from    'ft';

$ws['cloudHeight']    = wsConvertDistance('%cloudheightfeet%',$from);
# ------------------------------------------ forecasts -----------------
$ws['fcstWD']           = '%iconnumber%';
$ws['fcstTxt']             = str_replace('_',' ','%vpforecasttext%');

# ------------------------------------------ sun and moon --------------
$ws['sunrise']        = date($SITE['timeOnlyFormat'],strtotime('%sunrise%'));
$ws['sunset']        = date($SITE['timeOnlyFormat'],strtotime('%sunset%'));
$ws['moonrise']        = date($SITE['timeOnlyFormat'],strtotime('%moonrise%'));
$ws['moonset']        = date($SITE['timeOnlyFormat'],strtotime('%moonset%'));
$ws['lunarPhasePerc']    = '%moonphase%'*1.0;
$ws['lunarAge']        = substr('%moonage%'93); // %moonphasename% %moonlunation% 
# ------------------------------------------ some more -----------------
$ws['wsVersion']    = 'version %wdversion% b %wdbuild%';
$ws['wsHardware']     = '';   // unknown
$ws['wsUptime']        = '%windowsuptime%';

if (!isset (
$wsTrends)){$wsTrends = array() ;}
$i=0;
$wsTrends[$i] ['min']    = 0;
$wsTrends[$i] ['temp']    = '%temp0minuteago%';
$wsTrends[$i] ['wind']    = '%wind0minuteago%';
$wsTrends[$i] ['gust']    = '%gust0minuteago%';
$wsTrends[$i] ['dir']    = langtransstr('%dir0minuteago%');
$wsTrends[$i] ['hum']    = '%hum0minuteago%';
$wsTrends[$i] ['dew']    = '%dew0minuteago%';
$wsTrends[$i] ['baro']    = '%baro0minuteago%';
$wsTrends[$i] ['rain']    = '%rain0minuteago%';
$wsTrends[$i] ['sol']    = '%VPsolar0minuteago%';
$wsTrends[$i] ['uv']    = '%VPuv0minuteago%';
$i=1;
$wsTrends[$i] ['min']    = 5;
$wsTrends[$i] ['temp']    = '%temp5minuteago%';
$wsTrends[$i] ['wind']    = '%wind5minuteago%';
$wsTrends[$i] ['gust']    = '%gust5minuteago%';
$wsTrends[$i] ['dir']    = langtransstr('%dir5minuteago%');
$wsTrends[$i] ['hum']    = '%hum5minuteago%';
$wsTrends[$i] ['dew']    = '%dew5minuteago%';
$wsTrends[$i] ['baro']    = '%baro5minuteago%';
$wsTrends[$i] ['rain']    = '%rain5minuteago%';
$wsTrends[$i] ['sol']    = '%VPsolar5minuteago%';
$wsTrends[$i] ['uv']    = '%VPuv5minuteago%';
$i=2;
$wsTrends[$i] ['min']    = 10;
$wsTrends[$i] ['temp']    = '%temp10minuteago%';
$wsTrends[$i] ['wind']    = '%wind10minuteago%';
$wsTrends[$i] ['gust']    = '%gust10minuteago%';
$wsTrends[$i] ['dir']    = langtransstr('%dir10minuteago%');
$wsTrends[$i] ['hum']    = '%hum10minuteago%';
$wsTrends[$i] ['dew']    = '%dew10minuteago%';
$wsTrends[$i] ['baro']    = '%baro10minuteago%';
$wsTrends[$i] ['rain']    = '%rain10minuteago%';
$wsTrends[$i] ['sol']    = '%VPsolar10minuteago%';
$wsTrends[$i] ['uv']    = '%VPuv10minuteago%';
$i=3;
$wsTrends[$i] ['min']    = 15;
$wsTrends[$i] ['temp']    = '%temp15minuteago%';
$wsTrends[$i] ['wind']    = '%wind15minuteago%';
$wsTrends[$i] ['gust']    = '%gust15minuteago%';
$wsTrends[$i] ['dir']    = langtransstr('%dir15minuteago%');
$wsTrends[$i] ['hum']    = '%hum15minuteago%';
$wsTrends[$i] ['dew']    = '%dew15minuteago%';
$wsTrends[$i] ['baro']    = '%baro15minuteago%';
$wsTrends[$i] ['rain']    = '%rain15minuteago%';
$wsTrends[$i] ['sol']    = '%VPsolar15minuteago%';
$wsTrends[$i] ['uv']    = '%VPuv15minuteago%';
$i=4;
$wsTrends[$i] ['min']    = 20;
$wsTrends[$i] ['temp']    = '%temp20minuteago%';
$wsTrends[$i] ['wind']    = '%wind20minuteago%';
$wsTrends[$i] ['gust']    = '%gust20minuteago%';
$wsTrends[$i] ['dir']    = langtransstr('%dir20minuteago%');
$wsTrends[$i] ['hum']    = '%hum20minuteago%';
$wsTrends[$i] ['dew']    = '%dew20minuteago%';
$wsTrends[$i] ['baro']    = '%baro20minuteago%';
$wsTrends[$i] ['rain']    = '%rain20minuteago%';
$wsTrends[$i] ['sol']    = '%VPsolar20minuteago%';
$wsTrends[$i] ['uv']    = '%VPuv20minuteago%';
$i=5;
$wsTrends[$i] ['min']    = 30;
$wsTrends[$i] ['temp']    = '%temp30minuteago%';
$wsTrends[$i] ['wind']    = '%wind30minuteago%';
$wsTrends[$i] ['gust']    = '%gust30minuteago%';
$wsTrends[$i] ['dir']    = langtransstr('%dir30minuteago%');
$wsTrends[$i] ['hum']    = '%hum30minuteago%';
$wsTrends[$i] ['dew']    = '%dew30minuteago%';
$wsTrends[$i] ['baro']    = '%baro30minuteago%';
$wsTrends[$i] ['rain']    = '%rain30minuteago%';
$wsTrends[$i] ['sol']    = '%VPsolar30minuteago%';
$wsTrends[$i] ['uv']    = '%VPuv30minuteago%';
$i=6;
$wsTrends[$i] ['min']    = 45;
$wsTrends[$i] ['temp']    = '%temp45minuteago%';
$wsTrends[$i] ['wind']    = '%wind45minuteago%';
$wsTrends[$i] ['gust']    = '%gust45minuteago%';
$wsTrends[$i] ['dir']    = langtransstr('%dir45minuteago%');
$wsTrends[$i] ['hum']    = '%hum45minuteago%';
$wsTrends[$i] ['dew']    = '%dew45minuteago%';
$wsTrends[$i] ['baro']    = '%baro45minuteago%';
$wsTrends[$i] ['rain']    = '%rain45minuteago%';
$wsTrends[$i] ['sol']    = '%VPsolar45minuteago%';
$wsTrends[$i] ['uv']    = '%VPuv45minuteago%';
$i=7;
$wsTrends[$i] ['min']    = 60;
$wsTrends[$i] ['temp']    = '%temp60minuteago%';
$wsTrends[$i] ['wind']    = '%wind60minuteago%';
$wsTrends[$i] ['gust']    = '%gust60minuteago%';
$wsTrends[$i] ['dir']    = langtransstr('%dir60minuteago%');
$wsTrends[$i] ['hum']    = '%hum60minuteago%';
$wsTrends[$i] ['dew']    = '%dew60minuteago%';
$wsTrends[$i] ['baro']    = '%baro60minuteago%';
$wsTrends[$i] ['rain']    = '%rain60minuteago%';
$wsTrends[$i] ['sol']    = '%VPsolar60minuteago%';
$wsTrends[$i] ['uv']    = '%VPuv60minuteago%';
$i=8;
$wsTrends[$i] ['min']    = 75;
$wsTrends[$i] ['temp']    = '%temp75minuteago%';
$wsTrends[$i] ['wind']    = '%wind75minuteago%';
$wsTrends[$i] ['gust']    = '%gust75minuteago%';
$wsTrends[$i] ['dir']    = langtransstr('%dir75minuteago%');
$wsTrends[$i] ['hum']    = '%hum75minuteago%';
$wsTrends[$i] ['dew']    = '%dew75minuteago%';
$wsTrends[$i] ['baro']    = '%baro75minuteago%';
$wsTrends[$i] ['rain']    = '%rain75minuteago%';
$wsTrends[$i] ['sol']    = '%VPsolar75minuteago%';
$wsTrends[$i] ['uv']    = '%VPuv75minuteago%';
$i=9;
$wsTrends[$i] ['min']    = 90;
$wsTrends[$i] ['temp']    = '%temp90minuteago%';
$wsTrends[$i] ['wind']    = '%wind90minuteago%';
$wsTrends[$i] ['gust']    = '%gust90minuteago%';
$wsTrends[$i] ['dir']    = langtransstr('%dir90minuteago%');
$wsTrends[$i] ['hum']    = '%hum90minuteago%';
$wsTrends[$i] ['dew']    = '%dew90minuteago%';
$wsTrends[$i] ['baro']    = '%baro90minuteago%';
$wsTrends[$i] ['rain']    = '%rain90minuteago%';
$wsTrends[$i] ['sol']    = '%VPsolar90minuteago%';
$wsTrends[$i] ['uv']    = '%VPuv90minuteago%';
$i=10;
$wsTrends[$i] ['min']    = 105;
$wsTrends[$i] ['temp']    = '%temp105minuteago%';
$wsTrends[$i] ['wind']    = '%wind105minuteago%';
$wsTrends[$i] ['gust']    = '%gust105minuteago%';
$wsTrends[$i] ['dir']    = langtransstr('%dir105minuteago%');
$wsTrends[$i] ['hum']    = '%hum105minuteago%';
$wsTrends[$i] ['dew']    = '%dew105minuteago%';
$wsTrends[$i] ['baro']    = '%baro105minuteago%';
$wsTrends[$i] ['rain']    = '%rain105minuteago%';
$wsTrends[$i] ['sol']    = '%VPsolar105minuteago%';
$wsTrends[$i] ['uv']    = '%VPuv105minuteago%';
$i=11;
$wsTrends[$i] ['min']    = 120;
$wsTrends[$i] ['temp']    = '%temp120minuteago%';
$wsTrends[$i] ['wind']    = '%wind120minuteago%';
$wsTrends[$i] ['gust']    = '%gust120minuteago%';
$wsTrends[$i] ['dir']    = langtransstr('%dir120minuteago%');
$wsTrends[$i] ['hum']    = '%hum120minuteago%';
$wsTrends[$i] ['dew']    = '%dew120minuteago%';
$wsTrends[$i] ['baro']    = '%baro120minuteago%';
$wsTrends[$i] ['rain']    = '%rain120minuteago%';
$wsTrends[$i] ['sol']    = '%VPsolar120minuteago%';
$wsTrends[$i] ['uv']    = '%VPuv120minuteago%';

#--------------------- soil leaf measurement ---------------------------
$to     $SITE['uomTemp'];
$from    '%uomtemp%';         //  = 'C', 'F',  (or  '°C', '°F', or '&deg;C', '&deg;F' )

# Temp sensor 1 actual value
$ws['soilTempAct'][1]        = wsConvertTemperature('%soiltemp%'$from);  // convert and clean of units
# Temp sensor 1 maximum value for today month and year
$ws['soilTempMaxToday'][1]    = wsConvertTemperature('%maxsoiltemp%'$from);
$ws['soilTempMaxMonth'][1]    = wsConvertTemperature('%mrecordhighsoil%'$from);
$ws['soilTempMaxMonthTime'][1]    = wdYMD('%mrecordhighsoilyear%','%mrecordhighsoilmonth%','%mrecordhighsoilday%');
$ws['soilTempMaxYear'][1]    = wsConvertTemperature('%yrecordhighsoil%'$from);
$ws['soilTempMaxYearTime'][1]    = wdYMD('%yrecordhighsoilyear%','%yrecordhighsoilmonth%','%yrecordhighsoilday%');
$ws['soilTempMaxAlltime'][1]    = wsConvertTemperature('%recordhighsoil%'$from);
$ws['soilTempMaxAlltimeTime'][1]= wdYMD('%recordhighsoilyear%','%recordhighsoilmonth%','%recordhighsoilday%');
# Temp sensor 1 minimum value for today month and year
$ws['soilTempMinToday'][1]    = wsConvertTemperature('%minsoiltemp%'$from);
$ws['soilTempMinMonth'][1]    = wsConvertTemperature('%mrecordlowsoil%'$from);
$ws['soilTempMinMonthTime'][1]    = wdYMD('%mrecordlowsoilyear%','%mrecordlowsoilmonth%','%mrecordlowsoilday%');
$ws['soilTempMinYear'][1]    = wsConvertTemperature('%yrecordlowsoil%'$from);
$ws['soilTempMinYearTime'][1]    = wdYMD('%yrecordlowsoilyear%','%yrecordlowsoilmonth%','%yrecordlowsoilday%');
$ws['soilTempMinAlltime'][1]    = wsConvertTemperature('%recordlowsoil%'$from);
$ws['soilTempMinAlltimeTime'][1]= wdYMD('%recordlowsoilyear%','%recordlowsoilmonth%','%recordlowsoilday%');
# Temp sensor 2 actual value & Values and time for  min and max  for today - month and year 
$ws['soilTempAct'][2]        = wsConvertTemperature('%VPsoiltemp2%'$from);  // convert and clean of units
$ws['soilTempMaxToday'][2]    = wsConvertTemperature('%hiVPsoiltemp2%'$from);
$ws['soilTempMaxMonth'][2]    = wsConvertTemperature('%mrecordhighsoil2%'$from);
$ws['soilTempMaxMonthTime'][2]    = wdYMD('%mrecordhighsoilyear2%','%mrecordhighsoilmonth2%','%mrecordhighsoilday2%');
$ws['soilTempMaxYear'][2]    = wsConvertTemperature('%yrecordhighsoil2%'$from);
$ws['soilTempMaxYearTime'][2]    = wdYMD('%yrecordhighsoilyear2%','%yrecordhighsoilmonth2%','%yrecordhighsoilday2%');
$ws['soilTempMaxAlltime'][2]    = wsConvertTemperature('%recordhighsoil2%'$from);
$ws['soilTempMaxAlltimeTime'][2]= wdYMD('%recordhighsoilyear2%','%recordhighsoilmonth2%','%recordhighsoilday2%');
$ws['soilTempMinToday'][2]    = wsConvertTemperature('%loVPsoiltemp2%'$from);
$ws['soilTempMinMonth'][2]    = wsConvertTemperature('%mrecordlowsoil2%'$from);
$ws['soilTempMinMonthTime'][2]    = wdYMD('%mrecordlowsoilyear2%','%mrecordlowsoilmonth2%','%mrecordlowsoilday2%');
$ws['soilTempMinYear'][2]    = wsConvertTemperature('%yrecordlowsoil2%'$from);
$ws['soilTempMinYearTime'][2]    = wdYMD('%yrecordlowsoilyear2%','%yrecordlowsoilmonth2%','%yrecordlowsoilday2%');
$ws['soilTempMinAlltime'][2]    = wsConvertTemperature('%recordlowsoil2%'$from);
$ws['soilTempMinAlltimeTime'][2]= wdYMD('%recordlowsoilyear2%','%recordlowsoilmonth2%','%recordlowsoilday2%');
# Temp sensor 3 actual value & Values and time for  min and max  for today - month and year 
$ws['soilTempAct'][3]        = wsConvertTemperature('%VPsoiltemp3%'$from);  // convert and clean of units
$ws['soilTempMaxToday'][3]    = wsConvertTemperature('%hiVPsoiltemp3%'$from);
$ws['soilTempMaxMonth'][3]    = wsConvertTemperature('%mrecordhighsoil3%'$from);
$ws['soilTempMaxMonthTime'][3]    = wdYMD('%mrecordhighsoilyear3%','%mrecordhighsoilmonth3%','%mrecordhighsoilday3%');
$ws['soilTempMaxYear'][3]    = wsConvertTemperature('%yrecordhighsoil3%'$from);
$ws['soilTempMaxYearTime'][3]    = wdYMD('%yrecordhighsoilyear3%','%yrecordhighsoilmonth3%','%yrecordhighsoilday3%');
$ws['soilTempMaxAlltime'][3]    = wsConvertTemperature('%recordhighsoil3%'$from);
$ws['soilTempMaxAlltimeTime'][3]= wdYMD('%recordhighsoilyear3%','%recordhighsoilmonth3%','%recordhighsoilday3%');
$ws['soilTempMinToday'][3]    = wsConvertTemperature('%loVPsoiltemp3%'$from);
$ws['soilTempMinMonth'][3]    = wsConvertTemperature('%mrecordlowsoil3%'$from);
$ws['soilTempMinMonthTime'][3]    = wdYMD('%mrecordlowsoilyear3%','%mrecordlowsoilmonth3%','%mrecordlowsoilday3%');
$ws['soilTempMinYear'][3]    = wsConvertTemperature('%yrecordlowsoil3%'$from);
$ws['soilTempMinYearTime'][3]    = wdYMD('%yrecordlowsoilyear3%','%yrecordlowsoilmonth3%','%yrecordlowsoilday3%');
$ws['soilTempMinAlltime'][3]    = wsConvertTemperature('%recordlowsoil3%'$from);
$ws['soilTempMinAlltimeTime'][3]= wdYMD('%recordlowsoilyear3%','%recordlowsoilmonth3%','%recordlowsoilday3%');
# Temp sensor 4 actual value & Values and time for  min and max  for today - month and year 
$ws['soilTempAct'][4]        = wsConvertTemperature('%VPsoiltemp3%'$from);  // convert and clean of units
$ws['soilTempMaxToday'][4]    = wsConvertTemperature('%hiVPsoiltemp3%'$from);
$ws['soilTempMaxMonth'][4]    = wsConvertTemperature('%mrecordhighsoil3%'$from);
$ws['soilTempMaxMonthTime'][4]    = wdYMD('%mrecordhighsoilyear3%','%mrecordhighsoilmonth3%','%mrecordhighsoilday3%');
$ws['soilTempMaxYear'][4]    = wsConvertTemperature('%yrecordhighsoil3%'$from);
$ws['soilTempMaxYearTime'][4]    = wdYMD('%yrecordhighsoilyear3%','%yrecordhighsoilmonth3%','%yrecordhighsoilday3%');
$ws['soilTempMaxAlltime'][4]    = wsConvertTemperature('%recordhighsoil3%'$from);
$ws['soilTempMaxAlltimeTime'][4]= wdYMD('%recordhighsoilyear3%','%recordhighsoilmonth3%','%recordhighsoilday3%');
$ws['soilTempMinToday'][4]    = wsConvertTemperature('%loVPsoiltemp3%'$from);
$ws['soilTempMinMonth'][4]    = wsConvertTemperature('%mrecordlowsoil3%'$from);
$ws['soilTempMinMonthTime'][4]    = wdYMD('%mrecordlowsoilyear3%','%mrecordlowsoilmonth3%','%mrecordlowsoilday3%');
$ws['soilTempMinYear'][4]    = wsConvertTemperature('%yrecordlowsoil3%'$from);
$ws['soilTempMinYearTime'][4]    = wdYMD('%yrecordlowsoilyear3%','%yrecordlowsoilmonth3%','%yrecordlowsoilday3%');
$ws['soilTempMinAlltime'][4]    = wsConvertTemperature('%recordlowsoil3%'$from);
$ws['soilTempMinAlltimeTime'][4]= wdYMD('%recordlowsoilyear3%','%recordlowsoilmonth3%','%recordlowsoilday3%');
#
# Moisture sensor 1 actual value
$ws['moistAct'][1]        = '%VPsoilmoisture%';
# Moisture sensor 1 maximum value for today month and year
$ws['moistMaxToday'][1]        = '%hiVPsoilmoisture%';
$ws['moistMaxMonth'][1]        = '%mrecordhighsoilmoist%';
$ws['moistMaxMonthTime'][1]    = wdYMD('%mrecordhighsoilmoistyear%','%mrecordhighsoilmoistmonth%','%mrecordhighsoilmoistday%');
$ws['moistMaxYear'][1]        = '%yrecordhighsoilmoist%';
$ws['moistMaxYearTime'][1]    = wdYMD('%yrecordhighsoilmoistyear%','%yrecordhighsoilmoistmonth%','%yrecordhighsoilmoistday%');
$ws['moistMaxAlltime'][1]    = '%recordhighsoilmoist%';
$ws['moistMaxAlltimeTime'][1]    = wdYMD('%recordhighsoilmoistyear%','%recordhighsoilmoistmonth%','%recordhighsoilmoistday%');

# Moisture sensor 1 mimimum value for today  
$ws['moistMinToday'][1]        = '%loVPsoilmoisture%';
# Moisture sensor 1 date/time maximum occured
# Moisture sensor 2 actual value & Values and time for  min and max  for today - month and year 
$ws['moistAct'][2]        = '%VPsoilmoisture2%';
$ws['moistMaxToday'][2]        = '%hiVPsoilmoisture2%';
$ws['moistMinToday'][2]        = '%loVPsoilmoisture2%';
# Moisture sensor 3 actual value & Values and time for  min and max  for today - month and year 
$ws['moistAct'][3]        = '%VPsoilmoisture3%';
$ws['moistMaxToday'][3]        = '%hiVPsoilmoisture3%';
$ws['moistMinToday'][3]        = '%loVPsoilmoisture3%';
# Moisture sensor 4 actual value & Values and time for  min and max  for today - month and year 
$ws['moistAct'][4]        = '%VPsoilmoisture4%';
$ws['moistMaxToday'][4]        = '%hiVPsoilmoisture4%';
$ws['moistMinToday'][4]        = '%loVPsoilmoisture4%';
#
$ws['moistAvMonth'][1]            = '%avtempjansoil%';    // Average soil temperature for january from your data
$ws['moistAvMonth'][2]            = '%avtempfebsoil%';
$ws['moistAvMonth'][3]            = '%avtempmarsoil%';
$ws['moistAvMonth'][4]            = '%avtempaprsoil%';
$ws['moistAvMonth'][5]            = '%avtempmaysoil%';
$ws['moistAvMonth'][6]            = '%avtempjunsoil%';
$ws['moistAvMonth'][7]            = '%avtempjulsoil%';
$ws['moistAvMonth'][8]            = '%avtempaugsoil%';
$ws['moistAvMonth'][9]            = '%avtempsepsoil%';
$ws['moistAvMonth'][10]            = '%avtempoctsoil%';
$ws['moistAvMonth'][11]            = '%avtempnovsoil%';
$ws['moistAvMonth'][12]     = '%avtempdecsoil%';

$ws['moistAvMonthThisyear'][1]    = '%avtempjannowsoil%'// Average soil temperature for january from your data, this year
$ws['moistAvMonthThisyear'][2]    = '%avtempfebnowsoil%';
$ws['moistAvMonthThisyear'][3]    = '%avtempmarnowsoil%';
$ws['moistAvMonthThisyear'][4]    = '%avtempaprnowsoil%';
$ws['moistAvMonthThisyear'][5]    = '%avtempmaynowsoil%';
$ws['moistAvMonthThisyear'][6]    = '%avtempjunnowsoil%';
$ws['moistAvMonthThisyear'][7]    = '%avtempjulnowsoil%';
$ws['moistAvMonthThisyear'][8]    = '%avtempaugnowsoil%';
$ws['moistAvMonthThisyear'][9]    = '%avtempsepnowsoil%';
$ws['moistAvMonthThisyear'][10]    = '%avtempoctnowsoil%';
$ws['moistAvMonthThisyear'][11]    = '%avtempnovnowsoil%';
$ws['moistAvMonthThisyear'][12]    = '%avtempdecnowsoil%';

#----------------------------------------------------------------------
# leaf sensor 1 - 4
$ws['leafAct'][1]        = '%VPleaf%';
$ws['leafWetLast10'][1]     = '%leafminlast10min%';    // Minutes last 10 minutes leaf wetness was above zero
$ws['leafWetLast60'][1]     = '%leafminlast60min%';    // Minutes last 10 minutes leaf wetness was above zero
$ws['leafMaxToday'][1]        = '%hiVPleaf%';
$ws['leafMinToday'][1]        = '%loVPleaf%';
$ws['leafMaxMonth'][1]        = '%mrecordhighleaf%';
$ws['leafMaxYear'][1]        = '%yrecordhighleaf%';
$ws['leafMaxMonthTime'][1]    = wdYMD('%mrecordhighleafyear%','%mrecordhighleafmonth%','%mrecordhighleafday%');
$ws['leafMaxYearTime'][1]    = wdYMD('%yrecordhighleafyear%','%yrecordhighleafmonth%','%yrecordhighleafday%');
$ws['leafAct'][2]        = '%VPleaf2%';
$ws['leafHighToday'][2]        = '%hiVPleaf2%';
$ws['leafLowToday'][2]        = '%loVPleaf2%';
$ws['leafWetLast10'][2]     = '%leafminlast10min2%';    // Minutes last 10 minutes leaf wetness was above zero
$ws['leafWetLast60'][2]     = '%leafminlast60min2%';    // Minutes last 10 minutes leaf wetness was above zero
$ws['leafAct'][3]            = '%VPleaf3%';
$ws['leafAct'][4]            = '%VPleaf4%';
#-----------------------------------------------------------------------------------------
$ws['check_ok']         = '3.00';
// end of testtags.txt/testtags.php
?>

You find our weather info also at:

Weather Underground

AWEKAS

Citizen Weather Observer Program (CWOP)

Equipment we use:

Weather-station
Davis VP2

Davis VP2