Se non mi sbaglio utilizzando "Elect" avrai la misura in "kWh".
File "/programs/programmeter.php" :
Codice: Seleziona tutto
if (${'TYPE' . $i} == 'Elect')
{
if ($val_last24[$i] <= 1000)
{
$prefix[$i] = '';
$val_last24[$i] = number_format($val_last24[$i], 0, $DPOINT, $THSEP);
}
elseif ($val_last24[$i] > 1000000)
{
$val_last24[$i] /= 1000000;
$prefix[$i] = 'M';
$val_last24[$i] = number_format($val_last24[$i], 2, $DPOINT, $THSEP);
}
elseif ($val_last24[$i] > 1000)
{
$val_last24[$i] /= 1000;
$prefix[$i] = 'k';
$val_last24[$i] = number_format($val_last24[$i], 2, $DPOINT, $THSEP);
}
}
else
{
$val_last24[$i] = number_format($val_last24[$i], ${'PRECI' . $i}, $DPOINT, $THSEP);
$prefix[$i] = '';
}
debugasm