event.forward.url

Adrien3 years ago

hello,
we know that it is the "WebDataHandler" class that handles the transfer of positions to another web server.
what java class in traccar handles the transfer of events to another server. we have already enabled and configured the transfer of events.

 <!-- begin geolocation  -->   

    <entry key='geolocation.enable'>true</entry>
    <entry key='geolocation.processInvalidPositions'>false</entry>
    <entry key='geolocation.type'>opencellid</entry>
    <entry key='geolocation.key'>pk.d55e8681b42fefeb3eb9fe967722b7e8</entry>
    <!-- end geolocation  -->
    <!-- begin forward  -->
    <entry key='forward.enable'>true</entry>
    <entry key='forward.json'>true</entry>
    <entry key='forward.url'>http://localhost/xxx/server/http/xxx.php</entry>
    <!-- end forward  -->
    <!-- begin forward event -->
     <entry key='event.forward.enable'>true</entry>
    <entry key='event.forward.url'>http://localhost/xxx/server/http/xxx.php</entry>
    <!-- end forward  event -->
Anton Tananaev3 years ago

Search for the configuration key in the code.

Adrien3 years ago

hi,
we would like to see the attributes that are forwarded when we enable event forwarding (event.forward.enable).
we have found the "EventForwarder.java" class. we would now like to understand its execution (instantiation). we have already understood the position forwarding, we would now like to understand the event forwarding. we would like traccar to become just a protocol server without web part

{"id":25183,"attributes":[],"deviceId":3,"type":"geofenceExit","eventTime":"2022-01-03T15:10:55.000+00:00","positionId":394607,"geofenceId":2,"maintenanceId":0}

thanks