Geofencing events are not forwarded

Michel_F 8 hours ago

Hi,

I have installed traccar server on a LXC with the installation script from the official page.
My tracker TK915 is declared and working. I have configured the server to forward the position and the events. Here is my /opt/traccar/conf/traccar.xml:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>
<properties>

    <!-- Documentation: https://www.traccar.org/configuration-file/ -->
    <entry key='database.driver'>org.h2.Driver</entry>
    <entry key='database.url'>jdbc:h2:./data/database</entry>
    <entry key='database.user'>sa</entry>
    <entry key='database.password' />

    <!--- Forwarding -->
    <entry key='forward.enable'>true</entry>
    <entry key='forward.url'>http://192.168.1.50/plugins/traccar/core/api/jeeTraccar.php?apikey=SOME_API_KEY&amp;type=traccar&amp;id={uniqueId}&amp;latitude={latitude}&amp;longitude={longitude}&amp;speed={speed}&amp;attributes={attributes}</entry>

    <entry key='event.status.enable'>true</entry>
    <entry key='event.forward.enable'>true</entry>
    <entry key='event.forward.type'>url</entry>
    <entry key='event.forward.url'>http://192.168.1.50/plugins/traccar/core/api/jeeTraccar.php?apikey=SOME_API_KEY&amp;type=traccar&amp;action=event</entry>

    <!-- Limite de vitesse basse pour filtrer en knots. 1knot = 1.852 km/h donc 2 km/h = 1.08 knot -->
    <entry key='event.motion.speedThreshold'>1.08</entry>

</properties>

It is set up to forward everything to my home automation system Jeedom and its dedicated plugin for traccar.
All sent data are properly received and logged.

My problem is that the geofencing events, while entering or exiting a zone, are not sent. I could figure it out in the traccar server logs /opt/traccar/logs/tracker-server.log
I have simulated tracker position with:

curl "http://localhost:5055/?id=123456789&lat=45.678&lon=7.8910&timestamp=$(date +%s)&speed=0"

and have seen the logs working, but there is absolutly nothing about geofencing and zones.

Can someone help me and tell me what is or could be missing?

Anton Tananaev 4 hours ago

Do you see geofence events in the events report?

Michel_F 2 hours ago

No, I only see "online", "offline", "moving", and "stopped" (translated from French, so I'm not sure if these match the official terms).

Anton Tananaev 2 hours ago

Are you sure you linked geofences to devices?