Custom file does not exist C:\wdisplay\webfiles\testtags.txt


Thunder radar blitzortung!


Rain radar rain snow radar


Visit our other weather sites:

Template documentation
and downloads

And another site



No particular awareness of the weather is required.    There are no Weather-warnings

Display key values and files

uploadWD/testtags.txt - dated: 29-04-2016 22:56

    1 | <?php
    2 | if (!isset($SITE)){
    3 | 	header ("Location: ../index.php")  ;	// back to index/startpage if someone tries an
    4 | 	exit;  									//  page to load without menu system//
    5 | }
    6 | $pageName		= 'testtags.php';
    7 | $pageVersion	= '2.5a 2014-05-24 16:03:23 ';
    8 | $SITE['wsModules'][$pageName] = 'version: ' . $pageVersion;
    9 | $pageFile = basename(__FILE__) ;			// check to see this is the real script
   10 | if ($pageFile <> $pageName) {
   11 | 	$SITE['wsModules'][$pageFile]	= 'this file loaded instead of '.$pageName;
   12 | }
   13 | echo '<!-- module '.$pageFile.' ==== '.$SITE['wsModules'][$pageFile]." -->".PHP_EOL;
   14 | # ----------------------------------------------------------------------------------------
   15 | # version 2.00 for release 2.0 of the template. No changes other than the version number
   16 | # --------------------------------------- version ----------------------------------------
   17 | $ws['testtags.php']	= $pageName.'-'.$pageVersion;
   18 | # --------------------------------------- conditions--------------------------------------
   19 | $weathercond 		= '%weathercond%';
   20 | $ws['wdCurCond'] 	= '%Currentsolardescription%';
   21 | $ws['wdCurIcon']	= '%iconnumber%';			// Current icon number
   22 | $ws['wdMetarCcn']	= '%weatherreport%';		// Current weather conditions from selected METAR
   23 | $ws['wdMetarCld']	= '%metarcloudreport%';		// Cloud METAR label from the metargif
   24 | # ------------------------------------------ units ---------------------------------------
   25 | $wdDist 	= '%uomdistance%'; 	// = 'mi','km'  (for windrun variables)
   26 | # ------------------------------------------- date - time --------------------------------
   27 | $wdDatefmt 	= '%datefmt%'; 		//  = 'd/m/y', 'm/d/y'
   28 | $wdSeconds	= '00';
   29 | $wdMinute 	= '%time-minute%';	// Current minute '20'
   30 | $wdHour 	= '%time-hour%';	// Current hour '17'
   31 | $wdDay 		= '%date-day%';		// Current day  '15'
   32 | $wdMonth 	= '%date-month%';	// Current month '06'
   33 | $wdYear 	= '%date-year%';	// Current year '2012'
   34 | $ymd		= (string) $wdYear.$wdMonth.$wdDay;   // 
   35 | $ws['actTime']		= (string) $ymd.$wdHour.$wdMinute.$wdSeconds; // '20120523113945';
   36 | # ------------------------------------------ temperature ---------------------------------
   37 | $to 	= $SITE['uomTemp'];
   38 | $from	= '%uomtemp%'; 		//  = 'C', 'F',  (or  '°C', '°F', or '°C', '°F' )
   39 | 
   40 | $ws['tempMinTodayTime']	= wdDate('%mintempt%');
   41 | $ws['tempMinYdayTime']	= wdDate('%mintempyestt%');
   42 | $ws['tempMinMonthTime']	= wdYMD('%mrecordlowtempyear%','%mrecordlowtempmonth%','%mrecordlowtempday%');
   43 | $ws['tempMinYearTime']	= wdYMD('%yrecordlowtempyear%','%yrecordlowtempmonth%','%yrecordlowtempday%');
   44 | $ws['tempMaxTodayTime']	= wdDate('%maxtempt%'); 
   45 | $ws['tempMaxYdayTime']	= wdDate('%maxtempyestt%'); //yday
   46 | $ws['tempMaxMonthTime']	= wdYMD('%mrecordhightempyear%','%mrecordhightempmonth%','%mrecordhightempday%');
   47 | $ws['tempMaxYearTime']	= wdYMD('%yrecordhightempyear%','%yrecordhightempmonth%','%yrecordhightempday%');
   48 | $ws['dewpMinTodayTime']	= wdDate('%mindewt%');
   49 | $ws['dewpMinYdayTime']	= wdDate('%mindewyestt%'); //yday
   50 | $ws['dewpMaxTodayTime']	= wdDate('%maxdewt%');
   51 | $ws['dewpMaxYdayTime']	= wdDate('%maxdewyestt%');  // yday
   52 | $ws['heatMaxTodayTime']	= wdDate('%maxheatt%');
   53 | $ws['heatMaxYdayTime']	= wdDate('%maxheatyestt%');
   54 | $ws['heatMaxMonthTime']	= wdYMD('%mrecordhighheatindexyear%','%mrecordhighheatindexmonth%','%mrecordhighheatindexday%');
   55 | $ws['heatMaxYearTime']	= wdYMD('%yrecordhighheatindexyear%','%yrecordhighheatindexmonth%','%yrecordhighheatindexday%');
   56 | $ws['chilMinTodayTime']	= wdDate('%minwindcht%');
   57 | $ws['chilMinYdayTime']	= wdDate('%minchillyestt%'); // yday
   58 | $ws['chilMinMonthTime'] = wdYMD('%mrecordlowchillyear%','%mrecordlowchillmonth%','%mrecordlowchillday%','%mrecordlowchillhour%','%mrecordlowchillminute%');
   59 | $ws['chilMinYearTime']	= wdYMD('%yrecordlowchillyear%','%yrecordlowchillmonth%','%yrecordlowchillday%','%yrecordlowchillhour%','%yrecordlowchillminute%'); 
   60 | 
   61 | $ws['tempAct']			= wsConvertTemperature('%temp%', $from, $to);  // convert and clean of units
   62 | $ws['tempActInside']	= wsConvertTemperature('%indoortemp%', $from, $to);
   63 | $ws['tempActExtra1']	= wsConvertTemperature('%none%', $from, $to);	
   64 | $ws['tempDelta']		= wsConvertTemperature('%tempchangelasthourmetric%', $from, $to);	
   65 | $ws['tempToday']		= wsConvertTemperature('%avtempsincemidnight%', $from, $to);
   66 | $ws['tempMinToday']		= wsConvertTemperature('%mintemp%', $from, $to);
   67 | $ws['tempMinYday']		= wsConvertTemperature('%mintempyest%', $from, $to);
   68 | $ws['tempMinMonth']		= wsConvertTemperature('%mrecordlowtemp%', $from, $to);
   69 | $ws['tempMinYear']		= wsConvertTemperature('%yrecordlowtemp%', $from, $to);
   70 | $ws['tempMaxToday']		= wsConvertTemperature('%maxtemp%', $from, $to);
   71 | $ws['tempMaxYday']		= wsConvertTemperature('%maxtempyest%', $from, $to);
   72 | $ws['tempMaxMonth']		= wsConvertTemperature('%mrecordhightemp%', $from, $to);
   73 | $ws['tempMaxYear']		= wsConvertTemperature('%yrecordhightemp%', $from, $to);
   74 | 
   75 | $ws['dewpAct']  		= wsConvertTemperature('%dew%', $from, $to);
   76 | $ws['dewpDelta']		= wsConvertTemperature('%dewchangelasthour%', $from, $to);
   77 | $ws['dewpMinToday']  	= wsConvertTemperature('%mindew%', $from, $to);
   78 | $ws['dewpMinYday']  	= wsConvertTemperature('%mindewyest%', $from, $to);
   79 | $ws['dewpMaxToday']  	= wsConvertTemperature('%maxdew%', $from, $to);
   80 | $ws['dewpMaxYday']  	= wsConvertTemperature('%maxdewyest%', $from, $to);
   81 | 
   82 | $ws['heatAct']  		= wsConvertTemperature('%heati%', $from, $to);
   83 | $ws['heatDelta']		= 0;
   84 | $ws['heatMaxToday']		= wsConvertTemperature('%maxheat%', $from, $to);
   85 | $ws['heatMaxYday']		= wsConvertTemperature('%maxheatyest%', $from, $to);
   86 | $ws['heatMaxMonth']		= wsConvertTemperature('%mrecordhighheatindex%', $from, $to);
   87 | $ws['heatMaxYear']		= wsConvertTemperature('%yrecordhighheatindex%', $from, $to);
   88 | 	
   89 | $ws['chilAct']			= wsConvertTemperature('%windch%', $from, $to);
   90 | $ws['chilDelta']		= 0;
   91 | $ws['chilMinToday']		= wsConvertTemperature('%minwindch%', $from, $to);
   92 | $ws['chilMinYday']		= wsConvertTemperature('%minchillyest%', $from, $to);
   93 | $ws['chilMinMonth']		= wsConvertTemperature('%mrecordlowchill%', $from, $to);
   94 | $ws['chilMinYear']		= wsConvertTemperature('%yrecordlowchill%', $from, $to);
   95 | 
   96 | $ws['hudxAct'] 			= wsConvertTemperature('%humidexcelsius%', 'C', $to);
   97 | $ws['hudxDelta'] 		= 0;
   98 | $ws['hudxMaxToday'] 	= wsConvertTemperature('%todayhihumidex%',  'C', $to);
   99 | 
  100 | # ------------------------------------------ extreme temp   ------------------------------
  101 | $ws['daysXHigh']		= '%daysTmax>30C%';
  102 | $ws['daysHigh']			= '%daysTmax>25C%';
  103 | $ws['daysLow']			= '%daysTmin<0C%';
  104 | $ws['daysXLow']			= '%daysTmin<-15C%';
  105 | # ------------------------------------------ EVAPOTRANSPIRATION --------------------------
  106 | $ws['etToday'] 			= '%VPet%';
  107 | $ws['etYday'] 			= '%yesterdaydaviset%';
  108 | $ws['etMonth'] 			= '%VPetmonth%';
  109 | # ------------------------------------------ pressure / baro -----------------------------
  110 | $to 	= $SITE['uomBaro'];
  111 | $from	= '%uombaro%'; 		//  = 'inHg', 'hPa', 'kPa', 'mb'
  112 | 
  113 | $ws['baroMinTodayTime']	= wdDate('%lowbarot%');
  114 | $ws['baroMinYdayTime']	= wdDate('%minbaroyestt%'); // ytd
  115 | $ws['baroMinMonthTime']	= wdYMD('%mrecordlowbaroyear%','%mrecordlowbaromonth%','%mrecordlowbaroday%');
  116 | $ws['baroMinYearTime']	= wdYMD('%yrecordlowbaroyear%','%yrecordlowbaromonth%','%yrecordlowbaroday%');
  117 | $ws['baroMaxTodayTime']	= wdDate('%highbarot%');
  118 | $ws['baroMaxYdayTime']	= wdDate('%maxbaroyestt%');  // ytd
  119 | $ws['baroMaxMonthTime']	= wdYMD('%mrecordhighbaroyear%','%mrecordhighbaromonth%','%mrecordhighbaroday%');
  120 | $ws['baroMaxYearTime']	= wdYMD('%yrecordhighbaroyear%','%yrecordhighbaromonth%','%yrecordhighbaroday%');
  121 | 
  122 | $ws['baroAct'] 			= wsConvertBaro('%baro%', $from, $to);
  123 | $ws['baroDelta']		= wsConvertBaro('%trend%', $from, $to);
  124 | $ws['baroMinToday']		= wsConvertBaro('%lowbaro%', $from, $to);
  125 | $ws['baroMinYday']		= wsConvertBaro('%minbaroyest%', $from, $to);
  126 | $ws['baroMinMonth']		= wsConvertBaro('%mrecordlowbaro%', $from, $to);
  127 | $ws['baroMinYear'] 		= wsConvertBaro('%yrecordlowbaro%', $from, $to);	
  128 | $ws['baroMaxToday']		= wsConvertBaro('%highbaro%', $from, $to);
  129 | $ws['baroMaxYday']		= wsConvertBaro('%maxbaroyest%', $from, $to);
  130 | $ws['baroMaxMonth']		= wsConvertBaro('%mrecordhighbaro%', $from, $to);
  131 | $ws['baroMaxYear'] 		= wsConvertBaro('%yrecordhighbaro%', $from, $to);
  132 | 
  133 | # ------------------------------------------ humidity  -----------------------------------
  134 | $ws['humiMinTodayTime ']= wdDate('%lowhumt%');
  135 | $ws['humiMinYdayTime ']	= wdDate('%minhumyestt%');   // ytd
  136 | $ws['humiMaxTodayTime'] = wdDate('%highhumt%');
  137 | $ws['humiMaxYdayTime'] 	= wdDate('%maxhumyestt%');   // ytd
  138 | 
  139 | $ws['humiAct']			= '%hum%'*1.0;
  140 | $ws['humiExtra']		= '%none%'*1.0;
  141 | $ws['humiDelta']		= '%humchangelasthour%'*1.0;
  142 | $ws['humiMinToday'] 	= '%lowhum%'*1.0;
  143 | $ws['humiMinYday'] 		= '%minhumyest%'*1.0;
  144 | $ws['humiMaxToday']		= '%highhum%'*1.0;
  145 | $ws['humiMaxYday']		= '%maxhumyest%'*1.0;
  146 | 
  147 | # ------------------------------------------ rain  ---------------------------------------
  148 | $to 	= $SITE['uomRain'];
  149 | $from	= '%uomrain%'; 		//  = 'mm', 'in'
  150 | 
  151 | $ws['rainDayMnth'] 		= '%dayswithrain%';  	// %dayswithrain% 		Days with rain for the month
  152 | $ws['rainDayYear'] 		= '%dayswithrainyear%';	// %dayswithrainyear%	Days with rain for the year
  153 | 
  154 | $ws['rainRateAct'] 		= wsConvertRainfall('%currentrainrate%', $from, $to);
  155 | $ws['rainRateToday'] 	= wsConvertRainfall('%maxrainrate%', $from, $to);		
  156 | $ws['rainHour']			= wsConvertRainfall('%hourrn%', $from, $to);
  157 | $ws['rainToday']		= wsConvertRainfall('%dayrn%', $from, $to);
  158 | $ws['rainYday']			= wsConvertRainfall('%ystdyrain%', $from, $to);
  159 | $ws['rainMonth']		= wsConvertRainfall('%monthrn%', $from, $to);
  160 | $ws['rainYear']			= wsConvertRainfall('%yearrn%', $from, $to);
  161 | $ws['rainDaysWithNo']	= '%dayswithnorain%';
  162 | $ws['rainWeek']			= wsConvertRainfall('%raincurrentweek%', $from, $to);
  163 | 
  164 | # ------------------------------------------ wind  ---------------------------------------
  165 | $to 	= $SITE['uomWind'];
  166 | $from	= '%uomwind%'; 		//  = 'kts','mph','kmh','km/h','m/s','Bft'
  167 | 
  168 | $ws['windActDsc']		= '%dirlabel%';
  169 | $ws['windBeafort']		= '%beaufortnum%';
  170 | $ws['gustMaxTodayTime']	= wdDate('%maxgstt%');
  171 | $ws['gustMaxYdayTime']	= wdDate('%maxgustyestt%');
  172 | $ws['gustMaxMonthTime']	= wdYMD('%mrecordhighgustyear%','%mrecordhighgustmonth%','%mrecordhighgustday%');
  173 | $ws['gustMaxYearTime']	= wdYMD('%yrecordhighgustyear%','%yrecordhighgustmonth%','%yrecordhighgustday%');
  174 | 
  175 | $ws['windAct']			= wsConvertWindspeed('%avgspd%', $from ,$to);
  176 | $ws['gustAct']			= wsConvertWindspeed('%gstspd%', $from ,$to);
  177 | $ws['gustMaxHour']		= wsConvertWindspeed('%maxgsthr%', $from ,$to);	
  178 | $ws['gustMaxToday']		= wsConvertWindspeed('%maxgst%', $from ,$to);
  179 | $ws['gustMaxYday']		= wsConvertWindspeed('%maxgustyestnodir%', $from ,$to); 
  180 | $ws['gustMaxMonth']		= wsConvertWindspeed('%mrecordwindgust%', $from ,$to);
  181 | $ws['gustMaxYear']		= wsConvertWindspeed('%yrecordwindgust%', $from ,$to);	
  182 | 
  183 | if ($ws['gustAct'] <= $ws['windAct'])	{$ws['gustAct'] = $ws['windAct'];}
  184 | # ------------------------------------------  UV   ---------------------------------------
  185 | $ws['uvMaxTodayTime'] 	= wdDate('%highuvtime%');
  186 | $ws['uvMaxYdayTime'] 	= wdDate('%highuvyesttime%');
  187 | $ws['uvMaxMonthTime'] 	= wdYMD('%mrecordhighuvyear%','%mrecordhighuvmonth%','%mrecordhighuvday%');
  188 | $ws['uvMaxYearTime'] 	= wdYMD('%yrecordhighuvyear%','%yrecordhighuvmonth%','%yrecordhighuvday%');
  189 | 
  190 | $ws['uvAct']			= '%VPuv%';
  191 | $ws['uvMaxToday']		= '%highuv%';
  192 | $ws['uvMaxYday']		= '%highuvyest%';
  193 | $ws['uvMaxMonth']		= '%mrecordhighuv%';
  194 | $ws['uvMaxYear']		= '%yrecordhighuv%';
  195 | # ------------------------------------------ Solar  --------------------------------------
  196 | $ws['solarMaxTodayTime'] = wdDate('%highsolartime%');
  197 | $ws['solarMaxYdayTime'] = wdDate('%highsolaryesttime%');
  198 | $ws['solarMaxMonthTime'] = wdYMD('%mrecordhighsolaryear%','%mrecordhighsolarmonth%','%mrecordhighsolarday%');
  199 | $ws['solarMaxYearTime']  = wdYMD('%yrecordhighsolaryear%','%yrecordhighsolarmonth%','%yrecordhighsolarday%');
  200 | 
  201 | $ws['solarAct']			= '%VPsolar%'*1.0;
  202 | $ws['solActPerc']		= '%currentsolarpctplain%';
  203 | $ws['solarMaxToday']	= '%highsolar%';
  204 | $ws['solarMaxYday']		= '%highsolaryest%';
  205 | $ws['solarMaxMonth']	= '%mrecordhighsolar%';
  206 | $ws['solarMaxYear']		= '%yrecordhighsolar%';
  207 | # ------------------------------------------ cloud height --------------------------------
  208 | $to		= $SITE['uomHeight'];
  209 | $from	= 'ft';
  210 | 
  211 | $ws['cloudHeight']	    = wsConvertDistance('%cloudheightfeet%',$from, $to);
  212 | # ------------------------------------------ forecasts -----------------------------------
  213 | $ws['fcstWD'] 	  			= '%iconnumber%';
  214 | $ws['fcstTxt'] 	  			= '%vpforecasttext%';
  215 | # ------------------------------------------ sun and moon --------------------------------
  216 | $ws['sunrise']				= date($SITE['timeOnlyFormat'],strtotime('%sunrise%'));
  217 | $ws['sunset']				= date($SITE['timeOnlyFormat'],strtotime('%sunset%'));
  218 | $ws['moonrise']				= date($SITE['timeOnlyFormat'],strtotime('%moonrise%'));
  219 | $ws['moonset']				= date($SITE['timeOnlyFormat'],strtotime('%moonset%'));
  220 | $ws['lunarPhasePerc']		= '%moonphase%'*1.0;
  221 | $ws['lunarAge']				= substr('%moonage%', 9, 3); // %moonphasename% %moonlunation% 
  222 | # ------------------------------------------ some more -----------------------------------
  223 | $ws['wsVersion']			= 'version %wdversion% b %wdbuild%';
  224 | $ws['wsHardware'] 			= '';   // unknown
  225 | $ws['wsUptime']				= '%windowsuptime%';
  226 | $ws['wsVPissstatus']		= '%vpissstatus%';
  227 | $ws['wsVPconsolebattery']	= '%vpconsolebattery%';
  228 | $ws['wsVPreception']		= '%vpreception%';
  229 | $ws['wsVPreception2']		= '%vpreception2%';
  230 | 
  231 | if (!isset ($wsTrends)){$wsTrends = array() ;}
  232 | $i=0;
  233 | $wsTrends[$i] ['min']	= 0;
  234 | $wsTrends[$i] ['temp']	= '%temp0minuteago%';
  235 | $wsTrends[$i] ['wind']	= '%wind0minuteago%';
  236 | $wsTrends[$i] ['gust']	= '%gust0minuteago%';
  237 | $wsTrends[$i] ['dir']	= langtransstr('%dir0minuteago%');
  238 | $wsTrends[$i] ['hum']	= '%hum0minuteago%';
  239 | $wsTrends[$i] ['dew']	= '%dew0minuteago%';
  240 | $wsTrends[$i] ['baro']	= '%baro0minuteago%';
  241 | $wsTrends[$i] ['rain']	= '%rain0minuteago%';
  242 | $wsTrends[$i] ['sol']	= '%VPsolar0minuteago%';
  243 | $wsTrends[$i] ['uv']	= '%VPuv0minuteago%';
  244 | $i=1;
  245 | $wsTrends[$i] ['min']	= 5;
  246 | $wsTrends[$i] ['temp']	= '%temp5minuteago%';
  247 | $wsTrends[$i] ['wind']	= '%wind5minuteago%';
  248 | $wsTrends[$i] ['gust']	= '%gust5minuteago%';
  249 | $wsTrends[$i] ['dir']	= langtransstr('%dir5minuteago%');
  250 | $wsTrends[$i] ['hum']	= '%hum5minuteago%';
  251 | $wsTrends[$i] ['dew']	= '%dew5minuteago%';
  252 | $wsTrends[$i] ['baro']	= '%baro5minuteago%';
  253 | $wsTrends[$i] ['rain']	= '%rain5minuteago%';
  254 | $wsTrends[$i] ['sol']	= '%VPsolar5minuteago%';
  255 | $wsTrends[$i] ['uv']	= '%VPuv5minuteago%';
  256 | $i=2;
  257 | $wsTrends[$i] ['min']	= 10;
  258 | $wsTrends[$i] ['temp']	= '%temp10minuteago%';
  259 | $wsTrends[$i] ['wind']	= '%wind10minuteago%';
  260 | $wsTrends[$i] ['gust']	= '%gust10minuteago%';
  261 | $wsTrends[$i] ['dir']	= langtransstr('%dir10minuteago%');
  262 | $wsTrends[$i] ['hum']	= '%hum10minuteago%';
  263 | $wsTrends[$i] ['dew']	= '%dew10minuteago%';
  264 | $wsTrends[$i] ['baro']	= '%baro10minuteago%';
  265 | $wsTrends[$i] ['rain']	= '%rain10minuteago%';
  266 | $wsTrends[$i] ['sol']	= '%VPsolar10minuteago%';
  267 | $wsTrends[$i] ['uv']	= '%VPuv10minuteago%';
  268 | $i=3;
  269 | $wsTrends[$i] ['min']	= 15;
  270 | $wsTrends[$i] ['temp']	= '%temp15minuteago%';
  271 | $wsTrends[$i] ['wind']	= '%wind15minuteago%';
  272 | $wsTrends[$i] ['gust']	= '%gust15minuteago%';
  273 | $wsTrends[$i] ['dir']	= langtransstr('%dir15minuteago%');
  274 | $wsTrends[$i] ['hum']	= '%hum15minuteago%';
  275 | $wsTrends[$i] ['dew']	= '%dew15minuteago%';
  276 | $wsTrends[$i] ['baro']	= '%baro15minuteago%';
  277 | $wsTrends[$i] ['rain']	= '%rain15minuteago%';
  278 | $wsTrends[$i] ['sol']	= '%VPsolar15minuteago%';
  279 | $wsTrends[$i] ['uv']	= '%VPuv15minuteago%';
  280 | $i=4;
  281 | $wsTrends[$i] ['min']	= 20;
  282 | $wsTrends[$i] ['temp']	= '%temp20minuteago%';
  283 | $wsTrends[$i] ['wind']	= '%wind20minuteago%';
  284 | $wsTrends[$i] ['gust']	= '%gust20minuteago%';
  285 | $wsTrends[$i] ['dir']	= langtransstr('%dir20minuteago%');
  286 | $wsTrends[$i] ['hum']	= '%hum20minuteago%';
  287 | $wsTrends[$i] ['dew']	= '%dew20minuteago%';
  288 | $wsTrends[$i] ['baro']	= '%baro20minuteago%';
  289 | $wsTrends[$i] ['rain']	= '%rain20minuteago%';
  290 | $wsTrends[$i] ['sol']	= '%VPsolar20minuteago%';
  291 | $wsTrends[$i] ['uv']	= '%VPuv20minuteago%';
  292 | $i=5;
  293 | $wsTrends[$i] ['min']	= 30;
  294 | $wsTrends[$i] ['temp']	= '%temp30minuteago%';
  295 | $wsTrends[$i] ['wind']	= '%wind30minuteago%';
  296 | $wsTrends[$i] ['gust']	= '%gust30minuteago%';
  297 | $wsTrends[$i] ['dir']	= langtransstr('%dir30minuteago%');
  298 | $wsTrends[$i] ['hum']	= '%hum30minuteago%';
  299 | $wsTrends[$i] ['dew']	= '%dew30minuteago%';
  300 | $wsTrends[$i] ['baro']	= '%baro30minuteago%';
  301 | $wsTrends[$i] ['rain']	= '%rain30minuteago%';
  302 | $wsTrends[$i] ['sol']	= '%VPsolar30minuteago%';
  303 | $wsTrends[$i] ['uv']	= '%VPuv30minuteago%';
  304 | $i=6;
  305 | $wsTrends[$i] ['min']	= 45;
  306 | $wsTrends[$i] ['temp']	= '%temp45minuteago%';
  307 | $wsTrends[$i] ['wind']	= '%wind45minuteago%';
  308 | $wsTrends[$i] ['gust']	= '%gust45minuteago%';
  309 | $wsTrends[$i] ['dir']	= langtransstr('%dir45minuteago%');
  310 | $wsTrends[$i] ['hum']	= '%hum45minuteago%';
  311 | $wsTrends[$i] ['dew']	= '%dew45minuteago%';
  312 | $wsTrends[$i] ['baro']	= '%baro45minuteago%';
  313 | $wsTrends[$i] ['rain']	= '%rain45minuteago%';
  314 | $wsTrends[$i] ['sol']	= '%VPsolar45minuteago%';
  315 | $wsTrends[$i] ['uv']	= '%VPuv45minuteago%';
  316 | $i=7;
  317 | $wsTrends[$i] ['min']	= 60;
  318 | $wsTrends[$i] ['temp']	= '%temp60minuteago%';
  319 | $wsTrends[$i] ['wind']	= '%wind60minuteago%';
  320 | $wsTrends[$i] ['gust']	= '%gust60minuteago%';
  321 | $wsTrends[$i] ['dir']	= langtransstr('%dir60minuteago%');
  322 | $wsTrends[$i] ['hum']	= '%hum60minuteago%';
  323 | $wsTrends[$i] ['dew']	= '%dew60minuteago%';
  324 | $wsTrends[$i] ['baro']	= '%baro60minuteago%';
  325 | $wsTrends[$i] ['rain']	= '%rain60minuteago%';
  326 | $wsTrends[$i] ['sol']	= '%VPsolar60minuteago%';
  327 | $wsTrends[$i] ['uv']	= '%VPuv60minuteago%';
  328 | $i=8;
  329 | $wsTrends[$i] ['min']	= 75;
  330 | $wsTrends[$i] ['temp']	= '%temp75minuteago%';
  331 | $wsTrends[$i] ['wind']	= '%wind75minuteago%';
  332 | $wsTrends[$i] ['gust']	= '%gust75minuteago%';
  333 | $wsTrends[$i] ['dir']	= langtransstr('%dir75minuteago%');
  334 | $wsTrends[$i] ['hum']	= '%hum75minuteago%';
  335 | $wsTrends[$i] ['dew']	= '%dew75minuteago%';
  336 | $wsTrends[$i] ['baro']	= '%baro75minuteago%';
  337 | $wsTrends[$i] ['rain']	= '%rain75minuteago%';
  338 | $wsTrends[$i] ['sol']	= '%VPsolar75minuteago%';
  339 | $wsTrends[$i] ['uv']	= '%VPuv75minuteago%';
  340 | $i=9;
  341 | $wsTrends[$i] ['min']	= 90;
  342 | $wsTrends[$i] ['temp']	= '%temp90minuteago%';
  343 | $wsTrends[$i] ['wind']	= '%wind90minuteago%';
  344 | $wsTrends[$i] ['gust']	= '%gust90minuteago%';
  345 | $wsTrends[$i] ['dir']	= langtransstr('%dir90minuteago%');
  346 | $wsTrends[$i] ['hum']	= '%hum90minuteago%';
  347 | $wsTrends[$i] ['dew']	= '%dew90minuteago%';
  348 | $wsTrends[$i] ['baro']	= '%baro90minuteago%';
  349 | $wsTrends[$i] ['rain']	= '%rain90minuteago%';
  350 | $wsTrends[$i] ['sol']	= '%VPsolar90minuteago%';
  351 | $wsTrends[$i] ['uv']	= '%VPuv90minuteago%';
  352 | $i=10;
  353 | $wsTrends[$i] ['min']	= 105;
  354 | $wsTrends[$i] ['temp']	= '%temp105minuteago%';
  355 | $wsTrends[$i] ['wind']	= '%wind105minuteago%';
  356 | $wsTrends[$i] ['gust']	= '%gust105minuteago%';
  357 | $wsTrends[$i] ['dir']	= langtransstr('%dir105minuteago%');
  358 | $wsTrends[$i] ['hum']	= '%hum105minuteago%';
  359 | $wsTrends[$i] ['dew']	= '%dew105minuteago%';
  360 | $wsTrends[$i] ['baro']	= '%baro105minuteago%';
  361 | $wsTrends[$i] ['rain']	= '%rain105minuteago%';
  362 | $wsTrends[$i] ['sol']	= '%VPsolar105minuteago%';
  363 | $wsTrends[$i] ['uv']	= '%VPuv105minuteago%';
  364 | $i=11;
  365 | $wsTrends[$i] ['min']	= 120;
  366 | $wsTrends[$i] ['temp']	= '%temp120minuteago%';
  367 | $wsTrends[$i] ['wind']	= '%wind120minuteago%';
  368 | $wsTrends[$i] ['gust']	= '%gust120minuteago%';
  369 | $wsTrends[$i] ['dir']	= langtransstr('%dir120minuteago%');
  370 | $wsTrends[$i] ['hum']	= '%hum120minuteago%';
  371 | $wsTrends[$i] ['dew']	= '%dew120minuteago%';
  372 | $wsTrends[$i] ['baro']	= '%baro120minuteago%';
  373 | $wsTrends[$i] ['rain']	= '%rain120minuteago%';
  374 | $wsTrends[$i] ['sol']	= '%VPsolar120minuteago%';
  375 | $wsTrends[$i] ['uv']	= '%VPuv120minuteago%';
  376 | 
  377 | #-----------------------------------------------------------------------------------------
  378 | # extras for settings.txt   WD  temp soil leaf measurement 
  379 | # 1.01g 2012-08-15 added soil  moistere + temp  & leaf moistere readings
  380 | #-----------------------------------------------------------------------------------------
  381 | $to 	= $SITE['uomTemp'];
  382 | $from	= '%uomtemp%'; 		//  = 'C', 'F',  (or  '°C', '°F', or '°C', '°F' )
  383 | 
  384 | # Temp sensor 1 actual value
  385 | $ws['soilTempAct'][1]			= wsConvertTemperature('%soiltemp%', $from, $to);  // convert and clean of units
  386 | # Temp sensor 1 maximum value for today month and year
  387 | $ws['soilTempMaxToday'][1]		= wsConvertTemperature('%maxsoiltemp%', $from, $to);
  388 | $ws['soilTempMaxMonth'][1]		= wsConvertTemperature('%mrecordhighsoil%', $from, $to);
  389 | $ws['soilTempMaxMonthTime'][1]	= wdYMD('%mrecordhighsoilyear%','%mrecordhighsoilmonth%','%mrecordhighsoilday%');
  390 | $ws['soilTempMaxYear'][1]		= wsConvertTemperature('%yrecordhighsoil%', $from, $to);
  391 | $ws['soilTempMaxYearTime'][1]	= wdYMD('%yrecordhighsoilyear%','%yrecordhighsoilmonth%','%yrecordhighsoilday%');
  392 | $ws['soilTempMaxAlltime'][1]	= wsConvertTemperature('%recordhighsoil%', $from, $to);
  393 | $ws['soilTempMaxAlltimeTime'][1]= wdYMD('%recordhighsoilyear%','%recordhighsoilmonth%','%recordhighsoilday%');
  394 | # Temp sensor 1 minimum value for today month and year
  395 | $ws['soilTempMinToday'][1]		= wsConvertTemperature('%minsoiltemp%', $from, $to);
  396 | $ws['soilTempMinMonth'][1]		= wsConvertTemperature('%mrecordlowsoil%', $from, $to);
  397 | $ws['soilTempMinMonthTime'][1]	= wdYMD('%mrecordlowsoilyear%','%mrecordlowsoilmonth%','%mrecordlowsoilday%');
  398 | $ws['soilTempMinYear'][1]		= wsConvertTemperature('%yrecordlowsoil%', $from, $to);
  399 | $ws['soilTempMinYearTime'][1]	= wdYMD('%yrecordlowsoilyear%','%yrecordlowsoilmonth%','%yrecordlowsoilday%');
  400 | $ws['soilTempMinAlltime'][1]	= wsConvertTemperature('%recordlowsoil%', $from, $to);
  401 | $ws['soilTempMinAlltimeTime'][1]= wdYMD('%recordlowsoilyear%','%recordlowsoilmonth%','%recordlowsoilday%');
  402 | # Temp sensor 2 actual value & Values and time for  min and max  for today - month and year 
  403 | $ws['soilTempAct'][2]			= wsConvertTemperature('%VPsoiltemp2%', $from, $to);  // convert and clean of units
  404 | $ws['soilTempMaxToday'][2]		= wsConvertTemperature('%hiVPsoiltemp2%', $from, $to);
  405 | $ws['soilTempMaxMonth'][2]		= wsConvertTemperature('%mrecordhighsoil2%', $from, $to);
  406 | $ws['soilTempMaxMonthTime'][2]	= wdYMD('%mrecordhighsoilyear2%','%mrecordhighsoilmonth2%','%mrecordhighsoilday2%');
  407 | $ws['soilTempMaxYear'][2]		= wsConvertTemperature('%yrecordhighsoil2%', $from, $to);
  408 | $ws['soilTempMaxYearTime'][2]	= wdYMD('%yrecordhighsoilyear2%','%yrecordhighsoilmonth2%','%yrecordhighsoilday2%');
  409 | $ws['soilTempMaxAlltime'][2]	= wsConvertTemperature('%recordhighsoil2%', $from, $to);
  410 | $ws['soilTempMaxAlltimeTime'][2]= wdYMD('%recordhighsoilyear2%','%recordhighsoilmonth2%','%recordhighsoilday2%');
  411 | $ws['soilTempMinToday'][2]		= wsConvertTemperature('%loVPsoiltemp2%', $from, $to);
  412 | $ws['soilTempMinMonth'][2]		= wsConvertTemperature('%mrecordlowsoil2%', $from, $to);
  413 | $ws['soilTempMinMonthTime'][2]	= wdYMD('%mrecordlowsoilyear2%','%mrecordlowsoilmonth2%','%mrecordlowsoilday2%');
  414 | $ws['soilTempMinYear'][2]		= wsConvertTemperature('%yrecordlowsoil2%', $from, $to);
  415 | $ws['soilTempMinYearTime'][2]	= wdYMD('%yrecordlowsoilyear2%','%yrecordlowsoilmonth2%','%yrecordlowsoilday2%');
  416 | $ws['soilTempMinAlltime'][2]	= wsConvertTemperature('%recordlowsoil2%', $from, $to);
  417 | $ws['soilTempMinAlltimeTime'][2]= wdYMD('%recordlowsoilyear2%','%recordlowsoilmonth2%','%recordlowsoilday2%');
  418 | # Temp sensor 3 actual value & Values and time for  min and max  for today - month and year 
  419 | $ws['soilTempAct'][3]			= wsConvertTemperature('%VPsoiltemp3%', $from, $to);  // convert and clean of units
  420 | $ws['soilTempMaxToday'][3]		= wsConvertTemperature('%hiVPsoiltemp3%', $from, $to);
  421 | $ws['soilTempMaxMonth'][3]		= wsConvertTemperature('%mrecordhighsoil3%', $from, $to);
  422 | $ws['soilTempMaxMonthTime'][3]	= wdYMD('%mrecordhighsoilyear3%','%mrecordhighsoilmonth3%','%mrecordhighsoilday3%');
  423 | $ws['soilTempMaxYear'][3]		= wsConvertTemperature('%yrecordhighsoil3%', $from, $to);
  424 | $ws['soilTempMaxYearTime'][3]	= wdYMD('%yrecordhighsoilyear3%','%yrecordhighsoilmonth3%','%yrecordhighsoilday3%');
  425 | $ws['soilTempMaxAlltime'][3]	= wsConvertTemperature('%recordhighsoil3%', $from, $to);
  426 | $ws['soilTempMaxAlltimeTime'][3]= wdYMD('%recordhighsoilyear3%','%recordhighsoilmonth3%','%recordhighsoilday3%');
  427 | $ws['soilTempMinToday'][3]		= wsConvertTemperature('%loVPsoiltemp3%', $from, $to);
  428 | $ws['soilTempMinMonth'][3]		= wsConvertTemperature('%mrecordlowsoil3%', $from, $to);
  429 | $ws['soilTempMinMonthTime'][3]	= wdYMD('%mrecordlowsoilyear3%','%mrecordlowsoilmonth3%','%mrecordlowsoilday3%');
  430 | $ws['soilTempMinYear'][3]		= wsConvertTemperature('%yrecordlowsoil3%', $from, $to);
  431 | $ws['soilTempMinYearTime'][3]	= wdYMD('%yrecordlowsoilyear3%','%yrecordlowsoilmonth3%','%yrecordlowsoilday3%');
  432 | $ws['soilTempMinAlltime'][3]	= wsConvertTemperature('%recordlowsoil3%', $from, $to);
  433 | $ws['soilTempMinAlltimeTime'][3]= wdYMD('%recordlowsoilyear3%','%recordlowsoilmonth3%','%recordlowsoilday3%');
  434 | # Temp sensor 4 actual value & Values and time for  min and max  for today - month and year 
  435 | $ws['soilTempAct'][4]			= wsConvertTemperature('%VPsoiltemp3%', $from, $to);  // convert and clean of units
  436 | $ws['soilTempMaxToday'][4]		= wsConvertTemperature('%hiVPsoiltemp3%', $from, $to);
  437 | $ws['soilTempMaxMonth'][4]		= wsConvertTemperature('%mrecordhighsoil3%', $from, $to);
  438 | $ws['soilTempMaxMonthTime'][4]	= wdYMD('%mrecordhighsoilyear3%','%mrecordhighsoilmonth3%','%mrecordhighsoilday3%');
  439 | $ws['soilTempMaxYear'][4]		= wsConvertTemperature('%yrecordhighsoil3%', $from, $to);
  440 | $ws['soilTempMaxYearTime'][4]	= wdYMD('%yrecordhighsoilyear3%','%yrecordhighsoilmonth3%','%yrecordhighsoilday3%');
  441 | $ws['soilTempMaxAlltime'][4]	= wsConvertTemperature('%recordhighsoil3%', $from, $to);
  442 | $ws['soilTempMaxAlltimeTime'][4]= wdYMD('%recordhighsoilyear3%','%recordhighsoilmonth3%','%recordhighsoilday3%');
  443 | $ws['soilTempMinToday'][4]		= wsConvertTemperature('%loVPsoiltemp3%', $from, $to);
  444 | $ws['soilTempMinMonth'][4]		= wsConvertTemperature('%mrecordlowsoil3%', $from, $to);
  445 | $ws['soilTempMinMonthTime'][4]	= wdYMD('%mrecordlowsoilyear3%','%mrecordlowsoilmonth3%','%mrecordlowsoilday3%');
  446 | $ws['soilTempMinYear'][4]		= wsConvertTemperature('%yrecordlowsoil3%', $from, $to);
  447 | $ws['soilTempMinYearTime'][4]	= wdYMD('%yrecordlowsoilyear3%','%yrecordlowsoilmonth3%','%yrecordlowsoilday3%');
  448 | $ws['soilTempMinAlltime'][4]	= wsConvertTemperature('%recordlowsoil3%', $from, $to);
  449 | $ws['soilTempMinAlltimeTime'][4]= wdYMD('%recordlowsoilyear3%','%recordlowsoilmonth3%','%recordlowsoilday3%');
  450 | #
  451 | # Moisture sensor 1 actual value
  452 | $ws['moistAct'][1]				= '%VPsoilmoisture%';
  453 | # Moisture sensor 1 maximum value for today month and year
  454 | $ws['moistMaxToday'][1]			= '%hiVPsoilmoisture%';
  455 | $ws['moistMaxMonth'][1]			= '%mrecordhighsoilmoist%';
  456 | $ws['moistMaxMonthTime'][1]		= wdYMD('%mrecordhighsoilmoistyear%','%mrecordhighsoilmoistmonth%','%mrecordhighsoilmoistday%');
  457 | $ws['moistMaxYear'][1]			= '%yrecordhighsoilmoist%';
  458 | $ws['moistMaxYearTime'][1]		= wdYMD('%yrecordhighsoilmoistyear%','%yrecordhighsoilmoistmonth%','%yrecordhighsoilmoistday%');
  459 | $ws['moistMaxAlltime'][1]		= '%recordhighsoilmoist%';
  460 | $ws['moistMaxAlltimeTime'][1]	= wdYMD('%recordhighsoilmoistyear%','%recordhighsoilmoistmonth%','%recordhighsoilmoistday%');
  461 | 
  462 | # Moisture sensor 1 mimimum value for today  
  463 | $ws['moistMinToday'][1]			= '%loVPsoilmoisture%';
  464 | # Moisture sensor 1 date/time maximum occured
  465 | # Moisture sensor 2 actual value & Values and time for  min and max  for today - month and year 
  466 | $ws['moistAct'][2]				= '%VPsoilmoisture2%';
  467 | $ws['moistMaxToday'][2]			= '%hiVPsoilmoisture2%';
  468 | $ws['moistMinToday'][2]			= '%loVPsoilmoisture2%';
  469 | # Moisture sensor 3 actual value & Values and time for  min and max  for today - month and year 
  470 | $ws['moistAct'][3]				= '%VPsoilmoisture3%';
  471 | $ws['moistMaxToday'][3]			= '%hiVPsoilmoisture3%';
  472 | $ws['moistMinToday'][3]			= '%loVPsoilmoisture3%';
  473 | # Moisture sensor 4 actual value & Values and time for  min and max  for today - month and year 
  474 | $ws['moistAct'][4]				= '%VPsoilmoisture4%';
  475 | $ws['moistMaxToday'][4]			= '%hiVPsoilmoisture4%';
  476 | $ws['moistMinToday'][4]			= '%loVPsoilmoisture4%';
  477 | #
  478 | $ws['moistAvMonth'][1]	= %avtempjansoil%;	// Average soil temperature for january from your data
  479 | $ws['moistAvMonth'][2]	= %avtempfebsoil%;
  480 | $ws['moistAvMonth'][3]	= %avtempmarsoil%;
  481 | $ws['moistAvMonth'][4]	= %avtempaprsoil%;
  482 | $ws['moistAvMonth'][5]	= %avtempmaysoil%;
  483 | $ws['moistAvMonth'][6]	= %avtempjunsoil%;
  484 | $ws['moistAvMonth'][7]	= %avtempjulsoil%;
  485 | $ws['moistAvMonth'][8]	= %avtempaugsoil%;
  486 | $ws['moistAvMonth'][9]	= %avtempsepsoil%;
  487 | $ws['moistAvMonth'][10]	= %avtempoctsoil%;
  488 | $ws['moistAvMonth'][11]	= %avtempnovsoil%;
  489 | $ws['moistAvMonth'][12]	= %avtempdecsoil%;
  490 | 
  491 | $ws['moistAvMonthThisyear'][1]	= %avtempjannowsoil%; // Average soil temperature for january from your data, this year
  492 | $ws['moistAvMonthThisyear'][2]	= %avtempfebnowsoil%;
  493 | $ws['moistAvMonthThisyear'][3]	= %avtempmarnowsoil%;
  494 | $ws['moistAvMonthThisyear'][4]	= %avtempaprnowsoil%;
  495 | $ws['moistAvMonthThisyear'][5]	= %avtempmaynowsoil%;
  496 | $ws['moistAvMonthThisyear'][6]	= %avtempjunnowsoil%;
  497 | $ws['moistAvMonthThisyear'][7]	= %avtempjulnowsoil%;
  498 | $ws['moistAvMonthThisyear'][8]	= %avtempaugnowsoil%;
  499 | $ws['moistAvMonthThisyear'][9]	= %avtempsepnowsoil%;
  500 | $ws['moistAvMonthThisyear'][10]	= %avtempoctnowsoil%;
  501 | $ws['moistAvMonthThisyear'][11]	= %avtempnovnowsoil%;
  502 | $ws['moistAvMonthThisyear'][12]	= %avtempdecnowsoil%;
  503 | 
  504 | #-----------------------------------------------------------------------------------------
  505 | # leaf sensor 1 - 4
  506 | $ws['leafAct'][1]				= '%VPleaf%';
  507 | $ws['leafWetLast10'][1] 		= '%leafminlast10min%';	// Minutes last 10 minutes leaf wetness was above zero
  508 | $ws['leafWetLast60'][1] 		= '%leafminlast60min%';	// Minutes last 10 minutes leaf wetness was above zero
  509 | $ws['leafMaxToday'][1]			= '%hiVPleaf%';
  510 | $ws['leafMinToday'][1]			= '%loVPleaf%';
  511 | $ws['leafMaxMonth'][1]			= '%mrecordhighleaf%';
  512 | $ws['leafMaxYear'][1]			= '%yrecordhighleaf%';
  513 | $ws['leafMaxMonthTime'][1]		= wdYMD('%mrecordhighleafyear%','%mrecordhighleafmonth%','%mrecordhighleafday%');
  514 | $ws['leafMaxYearTime'][1]		= wdYMD('%yrecordhighleafyear%','%yrecordhighleafmonth%','%yrecordhighleafday%');
  515 | $ws['leafAct'][2]				= '%VPleaf2%';
  516 | $ws['leafHighToday'][2]			= '%hiVPleaf2%';
  517 | $ws['leafLowToday'][2]			= '%loVPleaf2%';
  518 | $ws['leafWetLast10'][2] 		= '%leafminlast10min2%';	// Minutes last 10 minutes leaf wetness was above zero
  519 | $ws['leafWetLast60'][2] 		= '%leafminlast60min2%';	// Minutes last 10 minutes leaf wetness was above zero
  520 | $ws['leafAct'][3]	= '%VPleaf3%';
  521 | $ws['leafAct'][4]	= '%VPleaf4%';
  522 | #-----------------------------------------------------------------------------------------
  523 | // end of testtags.txt/tags.php
  524 | ?>