Renamed field time, since we count our own while gathering.
authorLadislav Laska <laska@kam.mff.cuni.cz>
Tue, 23 Jul 2013 21:21:23 +0000 (23:21 +0200)
committerLadislav Laska <laska@kam.mff.cuni.cz>
Tue, 23 Jul 2013 21:21:23 +0000 (23:21 +0200)
The charger reports time in minutes, which is not good enough. We are
measuring time as messages arrive, which is not the most precise thing
in the world, but is much better in comparison to minutes.

Accucell.pm

index df4bc9d9d1e3a3c31ae01cc4ddd15149cbbdd812..2e9f72b048630c259dfefba731999b63ee8d2232 100644 (file)
@@ -149,7 +149,7 @@ sub parse_message {
                "cell_voltage_6" =>     make_float(\@array, 55),
                "cell_voltage_7" =>     make_float(\@array, 57),
                "cell_voltage_8" =>     make_float(\@array, 59),
-               "time" => $array[70],
+               "device_time" => $array[70], # Should be time in minutes
                "checksum" => ($array[73] << 8) | ($array[74]),
                "check_byte" => $array[72]
        );