Traccar already does it.
Yes, that is part of it.
Ok, if i add it to a device from image above, when it stores a new position the attribute "hours" disappears.
I think it's because, I have to create "Hours" on computed attributes, but how can I create a condition to increment the hours when ignition is on?
Wich is the correct way to create the computed attribute "hours"?
Thank you!
You don't need to create computed attributes. As long as your device reports ignition, it should work.
Make sure you enable "processing.engineHours.enable" in the config file.
That's it!
Problem solved.
Thank you for your time :)
hi, Anton.
have same problem, i see the config file and it´is ok "processing.engine Hours.enabled"
thank...
Gustavo
If you have space between "engine" and "Hours", then it's not OK.
Hi, Anton.
have not space in to configuration. all it,s ok
Atte.
Gustavo
Hi,
I have problem with engine hours counting. I have ignition information in every row in sql but time is counted only from row with alarm information whitch is triggered on start or end ignition.
Could you please help where is problem?
Thank you
<entry key='event.enable'>true</entry>
<entry key='processing.copyAttributes.enable'>true</entry>
<entry key='processing.copyAttributes'>ignition</entry>
<entry key='processing.remoteAddress.enable'>true</entry>
<entry key='processing.engineHours.enable'>true</entry>
<entry key='processing.computedAttributes.enable'>true</entry>
<entry key='notificator.types'>web,mail</entry>
<entry key='media.path'>./media</entry>
<entry key='server.statistics'>https://www.traccar.org/analytics/</entry>
<entry key='filter.enable'>true</entry>
<entry key='filter.duplicate'>true</entry>
<entry key='filter.zero'>true</entry>
<entry key='filter.invalid'>true</entry>
You need to look at the time. If messages came in the wrong order, there will be issues with hours calculation.
I think that time is good.
Hello,
I have a lot of industrial machines, and I want to count and increment the hours when the ignition is ON.
How can i do this?
Thank you.