added more debug output in pvoutput.php
This commit is contained in:
@@ -62,7 +62,7 @@ if (isset($aFields[FIELD])) {
|
|||||||
foreach ($aData as $sRow) {
|
foreach ($aData as $sRow) {
|
||||||
$aRow = explode(' ', $sRow);
|
$aRow = explode(' ', $sRow);
|
||||||
$iDate = substr($aRow[0], 0, -1);
|
$iDate = substr($aRow[0], 0, -1);
|
||||||
$iInterval = $bFirst ? (($bFirst = false) || RESOLUTION) : $iDate - $iLast;
|
$iInterval = $bFirst ? (($bFirst = false) || RESOLUTION) : $iDate - $iLast; // s
|
||||||
if (($fValue = floatval($aRow[$iField])) > 0) { // W
|
if (($fValue = floatval($aRow[$iField])) > 0) { // W
|
||||||
$fEnergy += $iInterval * $fValue; // Ws
|
$fEnergy += $iInterval * $fValue; // Ws
|
||||||
}
|
}
|
||||||
@@ -96,7 +96,7 @@ if (isset($fTemperature)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Store debug data */
|
/* Store debug data */
|
||||||
file_put_contents('pvoutput.debug', json_encode(array($argv, $aData)) . "\n", FILE_APPEND);
|
file_put_contents('pvoutput.debug', json_encode(array($argv, $fEnergy, $aToday, $aData)) . "\n", FILE_APPEND);
|
||||||
|
|
||||||
/* Send data to PVOutput */
|
/* Send data to PVOutput */
|
||||||
if (isset($aSystems[$sSerial])) {
|
if (isset($aSystems[$sSerial])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user