".substr($row["RecDate"],0,4)."
";
$year = substr($row["RecDate"],0,4);
}
if (substr($row["RecDate"],4,2) != $month) {
echo "
".substr($row["RecDate"],4,2)."
";
$month = substr($row["RecDate"],4,2);
}
$rc = ($day-1)*1440+$hour*60+$min;
$time = sprintf("%02s",$day).sprintf("%02s",$hour).sprintf("%02s",$min);
$T = sprintf("%01.2f",($row["OutdoorTemperature"]-32)*5/9);
if ($row["IndoorTemperature"] == 0) $Ti = 0; else $Ti = sprintf("%01.2f",($row["IndoorTemperature"]-32)*5/9);
$D = sprintf("%01.2f",($row["DewPoint"]-32)*5/9);
if ($row["BarometricPressure"] == 0) $Pr = 0; else $Pr = sprintf("%01.4f",($row["BarometricPressure"]*33.8637526));
if ($row["WindSpeed"] == 0) $W = 0; else $W = sprintf("%01.2f",($row["WindSpeed"]*1.60934));
$Wd = $row["WindDir"];
if ($row["WindChill"] == 0) $Wc = 0; else $Wc = sprintf("%01.2f",($row["WindChill"]-32)*5/9);
if ($row["WindGust"] == 0) $Wg = 0; else $Wg = sprintf("%01.2f",($row["WindGust"]*1.60934));
if ($row["TotalRainRate"] == 0) $Ph = 0; else $Ph = sprintf("%01.2f",($row["TotalRainRate"]*25.4));
if ($row["RainDaily"] == 0) $P = 0; else $P = sprintf("%01.2f",($row["RainDaily"]*25.4));
$H = $row["OutdoorHumidity"];
$Hi = $row["IndoorTemperature"];
if ($row["MonthlyRain"] == 0) $Pm = 0; else $Pm = sprintf("%01.2f",($row["MonthlyRain"]*25.4));
if ($row["TotalRain"] == 0) $Py = 0; else $Py = sprintf("%01.2f",($row["TotalRain"]*25.4));
$C = "---";
$rec = $rc." t:".$time." T:".$T." Ti:".$Ti." D:".$D." Pr:".$Pr." W:".$W." Wd:".$Wd." Wc:".$Wc." Wg:".$Wg." Ph:".$Ph." P:".$P." H:".$H." Hi:".$Hi." S:0 U:0.0 Lw4:0.0 Pm:".$Pm." Py:".$Py." Ed:0.00 Em:0.00 Ey:0.00 C:\"".$C."\" V:4";
echo $rec."
";
}
?>