OvmsMetricVector<float>* vf = new OvmsMetricVector<float>("test.volts", SM_STALE_MIN, Volts);With this data set, you get:
vf->SetElemValue(3, 1.23);
vf->SetElemValue(17, 2.34);
float myvals[3] = { 5.5, 6.6, 7.7 };
vf->SetElemValues(10, 3, myvals);
OVMS# met lis test…and in the web framework:
test.volts 0,0,0,1.23,0,0,0,0,0,0,5.5,6.6,7.7,0,0,0,0,2.34V
metrics["test.volts"]See template definition in ovms_metrics.h for more.
(18) [0, 0, 0, 1.23, 0, 0, 0, 0, 0, 0, 5.5, 6.6, 7.7, 0, 0, 0, 0, 2.34]
metrics["test.volts"][11]
6.6
I have a Peugeot iOn, and i wan't to create own metrics for battery temp (66 piece) and voltage (88 (old) or 80(new) piece) for all cell (and show on web interface), and i don't understand how can i create it. Now my data in array-s from can messages 6E1-6E4.
vehicle_mitsubishi
-- Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal Fon 02333 / 833 5735 * Handy 0176 / 206 989 26