$peak) $peak = $val;
$dayarray = implode(',',$pow['production']);
$lpeak = 0;
foreach ($life['production'] as $val) if ($val > $lpeak) $lpeak = $val;
$lifearray = implode(',',$life['production']);
$content1 = "Power Production
{$sum['current_power']}W Today's Peak: ".sprintf("%0.2f kW", $peak/1000); $content2 = "Today's Energy ".sprintf("%0.1f", $sum['energy_today']/1000)."kWh "; $content3 = "Lifetime Energy ".sprintf("%0.1f", $sum['energy_lifetime']/1000000)."MWh "; echo "
|