Fuel stolen and refueling event on traccar

Darshan7 years ago

I am able to make this now. Thanks.
One concern,
My fuel analog input takes about 3 minutes to get stable after ignition on. How to handle this condition on server.
How to discard the initial 3 minutes samples after ignition ON?

Please guide me.
Thanks.

Anton Tananaev7 years ago

For that you would probably have to write some code. It's too complicated for computed attributes.

Darshan7 years ago

Can I write this in protocolDecoder? If yes then, can you please brief me about this. I will write the code based on this.

Thanks.

Anton Tananaev7 years ago

You probably can, but I don't think it's the right place. You should create a separate handler for it.

Darshan7 years ago

Ok. But Can you please brief me how I can do this and where?

Have you have any sample for that?

Thanks.

Anton Tananaev7 years ago

There are plenty of samples in Traccar source code. Study it.

Darshan7 years ago

I don't have much java understanding. That's why looking for the computed attributes or any available file where i can add logic based on available flow.

Thanks.

Anton Tananaev7 years ago
Darshan7 years ago

I will try workaround myself, will let you know if requires.

Thanks.

Hi Anton,
I would humbly like to know if (Io1 0 ; Io21; Io3 0.00%) mean fuel value. because I can't see fuel field under device state.

Thanks

Anton Tananaev7 years ago

You need to check with device vendor what those mean. It's possible that one of those values is fuel.