Тема: Event type
Hi,
i'm working on an app wich is a kind of dashboard.
It 's actually gives the hours of ingine ignition. The code is:
function ignitionConfig(th) {
var events_config = {
itemId: th.getId(),
eventType: 'ignition',
ivalType: 4,
ivalFrom: currentInterval[0],
ivalTo: currentInterval[1]
};
wialon.core.Remote.getInstance().remoteCall(
"unit/get_events",
events_config,
function (code, data) {
var t1 = new Date();
printIgnition(data.ignition[Object.keys(data.ignition)[0]], currentInterval[0], currentInterval[1]);
var t2 = new Date();
sortTable('date', 'up');
setTimeout(function() {
$overlaytab.addClass('inactive');
}, t2-t1);
});
}
I would like to see the engine efficiency instead of ignition but i don't now what put in "event type" to do this.
Thank you for your time.