Fuel stolen and refueling event on traccar

Darshan7 years ago

Hello Anton,

I have a device that report the fuel analog data. My concern is, how to enable the fuel stolen and refueling alerts on traccar?

Second concern is, my device only report the fuel when the ignition is on. So the trip report and other record shows 0L fuel as well, how to handle this issue?

Thanks.

Anton Tananaev7 years ago

Does Traccar show fuel level in state panel for your device?

Darshan7 years ago

Yes, fuel data is available in state panel.

Anton Tananaev7 years ago

Then it should show at least something in reports.

Darshan7 years ago

Yes the fuel data is there in report, but when the ignition is off, device will send 0L to server. I was asking the work around for that.

Is there fuel stolen and refueling event support on current traccar version?

Anton Tananaev7 years ago

I strongly recommend you to do some research and try solve problems yourself first before asking anything. Applies to all your threads.

Darshan7 years ago

Ok. I have done this. But not find any information for fuel based Alert. Can you provide the link if already available info?

Anton Tananaev7 years ago

There is only fuel drop alert. There is no specific documentation for it, but it works the same way as any other alert.

Darshan7 years ago

Thanks. Any configuration to what level fall it will consider it as fuel drop event? It takes consideration of % or value in Leter?

Anton Tananaev7 years ago

It is configurable using fuelDropThreshold parameter in whatever units device reports fuel.

Darshan7 years ago

Thanks.

Darshan7 years ago

Hello Anton,

I have one query, my analog input just report the value when ignition is on. then, how do I write computed attributes using that continue to use the previous value when ignition is off.

i.e
Fuel
(ignition == true) ? fuel * 0.67 : null
Number

I have tried but the null is not maintain the previous value.

Please help !!!

Thanks.

Anton Tananaev7 years ago

You can use null and combine it with copying attributes functionality.

Darshan7 years ago

But, when it goes to null condition, fuel parameter display the current value instead of the previous value. I have added this in copy attributes and also assigned null.

Anton Tananaev7 years ago

By current value you mean zero?