|// Inside Temperature:|: hiInsideTemp||// High Inside Temperature:|: lowInsideTemp||// Low Inside Temperature:|: hiInsideTempTime||// Time of High Inside Temperature:|: lowInsideTempTime||// Time of Low Inside Temperature:|: hiMonthlyInsideTemp||// High Monthly Inside Temperature:|: lowMonthlyInsideTemp||// Low Monthly Inside Temperature:|: hiYearlyInsideTemp||// High Yearly Inside Temperature:|: lowYearlyInsideTemp||// Low Yearly Inside Temperature:|: outsideTemp||// Outside Temperature:|: hiOutsideTemp||// High Outside Temperature:|: lowOutsideTemp||// Low Outside Temperature:|: hiOutsideTempTime||// Time of High Outside Temperature:|: lowOutsideTempTime||// Time of Low Outside Temperature:|: hiMonthlyOutsideTemp||// High monthly Outside Temperature:|: lowMonthlyOutsideTemp||// Low monthly Outside Temperature:|: hiYearlyOutsideTemp||// High yearly Outside Temperature:|: lowYearlyOutsideTemp||// Low yearly Outside Temperature:|: Temperature2||// Temperature 2:|: hiTemp2||// High Temperature 2:|: lowTemp2||// Low Temperature 2:|: hiTempTime2||// Time of High Temperature 2:|: lowTempTime2||// Time of Low Temperature 2:|: hiTemp3||// Temperature 3:|: lowTemp3||// High Temperature 3 Time:|: Temperature4||// Low Temperature 3 Time:|: hiTempTime4||// High Temperature 4:|: lowTempTime4||// Low Temperature 4:|: hiTemp5||// Temperature 5:|: lowTemp5||// High Temperature 5 Time:|: Temperature6||// Low Temperature 5 Time:|: hiTempTime6||// High Temperature 6:|: lowTempTime6||// Low Temperature 6:|: hiTemp7||// Temperature 7:|: lowTemp7||// High Temperature 7 Time:|: Temperature8||// Low Temperature 7 Time:|: hiTempTime8||// High Temperature 8:|: lowTempTime8||// Low Temperature 8:|: insideHumidity||// Inside Humidity:|: hiInsideHumidity||// High Inside Humidity:|: lowInsideHumidity||// Low Inside Humidity:|: hiInsideHumidityTime||// High Inside Humidity Time:|: lowInsideHumidityTime||// Low Inside Humidity Time:|: hiMonthlyInsideHumidity||// High Monthly Inside Humidity:|: lowMonthlyInsideHumidity||// Low Monthly Inside Humidity:|: hiYearlyInsideHumidity||// High Yearly Inside Humidity:|: lowYearlyInsideHumidity||// Low Yearly Inside Humidity:|: outsideHumidity||// Outside Humidity:|: lowHumidity||// Low Humidity:|: hiHumidity||// High Humidity:|: lowHumTime||// Time of Low Humidity:|: hiHumTime||// Time of High Humidity:|: hiMonthlyHumidity||// High Monthly Humidity:|: lowMonthlyHumidity||// Low Monthly Humidity:|: hiYearlyHumidity||// High Yearly Humidity:|: lowYearlyHumidity||// Low Yearly Humidity:|: Humidity2||// Humidity 2:|: hiHum2||// High Humidity 2:|: lowHum2||// Low Humidity 2:|: hiHumTime2||// High Humidity Time 2:|: lowHumTime2||// Low Humidity Time 2:|: hiHum3||// Humidity 3:|: lowHum3||// High Humidity 3 Time:|: Humidity4||// Low Humidity 3 Time:|: hiHumTime4||// High Humidity 4:|: lowHumTime4||// Low Humidity 4:|: hiHum5||// Humidity 5:|: lowHum5||// High Humidity 5 Time:|: Humidity6||// Low Humidity 5 Time:|: hiHumTime6||// High Humidity 6:|: lowHumTime6||// Low Humidity 6:|: hiHum7||// Humidity 7:|: lowHum7||// High Humidity 7 Time:|: Humidity8||// Low Humidity 7 Time:|: hiHumTime8||// High Humidity 8:|: lowHumTime8||// Low Humidity 8:|: barometer||// Barometer:|: BarTrend||// 3-Hour Barometer Trend*:|: lowBarometer||// Low Barometer:|: hiBarometer||// High Barometer:|: lowMonthlyBarometer||// Low Monthly Barometer:|: hiMonthlyBarometer||// High Monthly Barometer:|: lowYearlyBarometer||// Low Yearly Barometer:|: hiYearlyBarometer||// High Yearly Barometer:|: lowBarometerTime||// Time of Low Barometer:|: hiBarometerTime||// Time of High Barometer:|: windSpeed||// Wind Speed:|: wind10Avg||// 10 Minute Average Wind Speed*:|: hiWindSpeed||// High Wind Speed:|: hiWindSpeedTime||// Time of High Wind Speed:|: hiMonthlyWindSpeed||// High Monthly Wind Speed:|: hiYearlyWindSpeed||// High Yearly Wind Speed:|: windDir||// Wind Direction In Degrees:|: windDirection||// Wind Direction Sector (16-point compass):|: windChill||// Wind Chill:|: lowWindchill||// Low Wind Chill:|: lowWindchillTime||// Time of Low Wind Chill:|: lowMonthlyWindchill||// Low Monthly Wind Chill:|: lowYearlyWindchill||// Low Yearly Wind Chill:|: windAvg1||// One-minute Wind Speed Average*:|: windAvg2||// Two-minute Wind Speed Average:|: windAvg5||// Five-minute Wind Speed Average:|: windAvg10||// 10-minute Wind Speed Average:|: windHigh1||// One-minute Wind High Speed*:|: windHigh2||// Two-minute Wind High Speed:|: windHigh5||// Five-minute Wind High Speed:|: windHigh10||// 10-minute Wind High Speed:|: totalRain||// Yearly Rain:|: dailyRain||// Daily Rain:|: monthlyRain||// Monthly Rain:|: stormRain||// Storm Rain:|: rainRate||// Rain Rate:|: hiRainRate||// High Rain Rate:|: hiRainRateTime||// Time of High Rain Rate:|: hiRainRateHour||// High Rain Rate Hour:|: hiMonthlyRainRate||// High Monthly Rain Rate:|: hiYearlyRainRate||// High Yearly Rain Rate:|: dailyEt||// Daily ET:|: monthlyEt||// Monthly ET:|: yearlyEt||// Yearly ET:|: solarRad||// Solar Radiation:|: hiSolarRad||// High Solar Radiation:|: hiSolarRadTime||// Time of High Solar Radiation:|: hiMonthlySolarRad||// High Monthly Solar Radiation:|: hiYearlySolarRad||// High Yearly Solar Radiation:|: uv||// UV:|: hiUV||// High UV:|: hiUVTime||// Time of High UV:|: hiMonthlyUV||// High monthly UV:|: hiYearlyUV||// High yearly UV:|: outsideDewPt||// Outside Dew Point:|: hiDewpoint||// High Dew Point:|: lowDewpoint||// Low Dew Point:|: hiDewpointTime||// Time of High Dew Point:|: lowDewpointTime||// Time of Low Dew Point:|: hiMonthlyDewpoint||// High Monthly Dew Point:|: lowMonthlyDewpoint||// Low Monthly Dew Point:|: hiYearlyDewpoint||// High Yearly Dew Point:|: lowYearlyDewpoint||// Low Yearly Dew Point:|: insideDewPt||// Inside Dew Point:|: outsideHeatIndex||// Outside Heat Index:|: hiHeatindex||// High Heat Index:|: hiHeatindexTime||// Time of High Heat Index:|: hiMonthlyHeatindex||// High Monthly Heat Index:|: hiYearlyHeatindex||// High Yearly Heat Index:|: insideHeatIndex||// Inside Heat Index:|: thw||// THW Index:|: SoilMoisture1||// Soil Moisture 1:|: hiSoilMoist1||// High Soil Moisture 1:|: lowSoilMoist1||// Low Soil Moisture 1:|: hiSoilMoistTime1||// High Soil Moisture 1 Time:|: lowSoilMoistTime1||// Low Soil Moisture 1 Time:|: hiSoilMoist2||// Soil Moisture 2:|: lowSoilMoist2||// High Soil Moist 2 Time:|: SoilMoisture3||// Low Soil Moist 2 Time:|: hiSoilMoistTime3||// High Soil Moisture 3:|: lowSoilMoistTime3||// Low Soil Moisture 3:|: hiSoilMoist4||// Soil Moisture 4:|: lowSoilMoist4||// High Soil Moisture 4 Time:|: SoilTemp1||// Low Soil Moisture 4 Time:|: lowSoilTemp1||// High Soil Temp 1:|: lowSoilTempTime1||// High Soil Temp 1 Time:|: hiSoilTemp2||// Soil Temperature 2:|: lowSoilTemp2||// High Soil Temp 2 Time:|: SoilTemp3||// Low Soil Temp 2 Time:|: hiSoilTempTime3||// High Soil Temp 3:|: lowSoilTempTime3||// Low Soil Temp 3:|: hiSoilTemp4||// Soil Temperature 4:|: lowSoilTemp4||// High Soil Temp 4 Time:|: LeafWetness1||// Low Soil Temp 4 Time:|: hiLeaf1||// High Leaf Wetness 1:|: lowLeaf1||// Low Leaf Wetness 1:|: hiLeafTime1||// High Leaf Wetness 1 Time:|: lowLeafTime1||// Low Leaf Wetness 1 Time:|: hiLeaf2||// Leaf Wetness 2:|: lowLeaf2||// High Leaf Time:|: LeafTemp1||// Low Leaf Time 2:|: lowLeafTemp1||// High Leaf Temp 1:|: lowLeafTempTime1||// High Leaf Temp 1 Time:|: emcUnit||// EMC:|: airDensityUnit||// Air Density:|: date||// Date on the PC:|: time||// Time on the PC:|: utcDate||// UTC Time:|: stationDate||// Date on the Station:|: stationTime||// Time on the Station:|: StationName||// Name of Station:|: StationCity||// City (from NOAA Setup):|: StationState||// State (from NOAA Setup):|: StationElevation||// Elevation (from NOAA Setup):|: StationLatitude||// Latitude (from NOAA Setup):|: StationLongitude||// Longitude (from NOAA Setup):|: sunriseTime||// Sunrise Time:|: sunsetTime||// Sunset Time:|: ForecastStr||// Current Weather Forecast *:|: MoonPhaseStr||// Current Moon Phase:|: tempUnit||// Temperature Units:|: humUnit||// Hum Units:|: windUnit||// Wind Units:|: barUnit||// Bar Units:|: rainUnit||// Rain Units:|: solarUnit||// Solar Units:|: rateUnit||// Rain Rate Units:|: uvUnit||// UV Units:|: SoilUnit||// Soil Moisture Units:|: END_OF_RAW_DATA_LINES; // end of generation script // put data in array // $WX = array(); global $WX; $WXComment = array(); $data = explode(":|:",$rawdatalines); $nscanned = 0; foreach ($data as $v => $line) { list($vname,$vval,$vcomment) = explode("|",trim($line).'|||'); if ($vname <> "") { $WX[$vname] = trim($vval); if($vcomment <> "") { $WXComment[$vname] = trim($vcomment); } } $nscanned++; } if(isset($_REQUEST['debug'])) { print "\n"; } if (isset($_REQUEST["sce"]) and strtolower($_REQUEST["sce"]) == "dump" ) { print "
\n";
print "// \$WX[] array size = $nscanned entries.\n";
foreach ($WX as $key => $val) {
$t = "\$WX['$key'] = '$val';";
if(isset($WXComment[$key])) {$t .= " $WXComment[$key]"; }
print "$t\n";
}
print "\n";
}
if(file_exists("WL-defs.php")) { include_once("WL-defs.php"); }
?>