GT06 - how to see Ignition on/off events

Quade dennis7 years ago

I'm seeing position messages fine on the GT06

I need to be able to see ignition on/off messages/events
Is traccar capable of doing this?

I've looked around on the forums and tried some different settings, but not sure if they are depreciated
here is what i've tried

<entry key='event.enable'>true</entry>
<entry key='gt06.alternative'>true</entry>

i need these ignition events to pass to my http listener which i have set up with


<entry key='forward.enable'>true</entry>
<entry key='forward.url'>http://127.0.0.1:8080/?id={uniqueId}&attributes={attributes}</entry>
    
<entry key='event.enable'>true</entry>
<entry key='event.forward.enable'>true</entry>
<entry key='event.forward.url'>http://127.0.0.1:8080</entry>

is what i'm trying to achieve possible ?
if not i can just monitor the state of ignition and generate my own event when i see it change...but will require some more work and would rather getting working with traccar if at all possible

thanks!

Anton Tananaev7 years ago

It's possible, but you would need to configure attribute copying because GT06-based devices don't report ignition value in every position.

Quade dennis7 years ago

Thanks Anton
I see can now see the ignition on/off events in the report section of the web app, but they dont appear in the right hand side events window

What I ideally need is for these events to forward
Do i need URL params on this for it to work?

<entry key='event.forward.url'>http://127.0.0.1:8080</entry>
Quade dennis7 years ago

according to this is a payload object
https://www.traccar.org/forums/topic/get-data-on-event-forward-url/

Is there any documentation where i can read more about this?

Anton Tananaev7 years ago

You don't need URL parameters. Data is sent in payload in JSON format. I believe it's array of events or a single event object:

https://www.traccar.org/api-reference/#/definitions/Event

Quade dennis7 years ago

Thanks for your help Anton
I can see the data now

Enrique Luis 6 years ago

Hello. Quade dennis.
I am expirence the same problem that you had. ¿Can you explain me how you resolved it? Thank in advance.
Regards.
Enrique

MrDonn4 years ago

Having also same problem can you plz explain what needs to be done?