TK-905 multiple deviceMoving entries

Sandor 3 years ago

Using Traccar 5.5

I'm using the even.forward option to inform my PHP application to give me a call if the Tracker is moving.
However for some reason I receive lots of DeviceMoving events this is what I see:

2022-12-23 09:57:54	Status online	
2022-12-23 09:58:55	Geofence exited
2022-12-23 09:59:40	Device moving	
2022-12-23 10:01:42	Device moving	
2022-12-23 10:04:15	Device moving	
2022-12-23 10:06:01	Device moving	
2022-12-23 10:07:02	Device moving	
2022-12-23 10:08:49	Device moving	
2022-12-23 10:10:36	Device moving	
2022-12-23 10:11:52	Device moving	
2022-12-23 10:13:23	Device moving	
2022-12-23 10:20:29	Device stopped	
2022-12-23 10:20:32	Status offline

I would have expected:

2022-12-23 09:57:54	Status online	
2022-12-23 09:58:55	Geofence exited
2022-12-23 09:59:40	Device moving	
2022-12-23 10:20:29	Device stopped	
2022-12-23 10:20:32	Status offline

For 1 trip only. Traccar Trips shows indeed 1 trip for this whole drive.
Probably I missed a setting somewhere.

<properties>

    <entry key='config.default'>./conf/default.xml</entry>

    <!--
    This is the main configuration file. All your configuration parameters should be placed in this file.
    ......
    -->

    <entry key='database.driver'>com.mysql.cj.jdbc.Driver</entry>
    <entry key='database.url'>jdbc:mysql://REDACTED:REDACTED/REDACTED?serverTimezone=Europe/Amsterdam&amp;useSSL=false&amp;allowMultiQueries=true&amp;autoReconnect=true&amp;useUnicode=yes&amp;characterEncoding=UTF-8&amp;sessionVariables=sql_mode=''</entry>
    <entry key='database.user'>REDACTED</entry>
    <entry key='database.password'>REDACTED</entry>

    <!--- Filter Positioning Enable or disable position filtering. -->
    <entry key='filter.enable'>true</entry>
    <entry key='filter.invalid'>true</entry>
    <entry key='filter.zero'>true</entry>
    <entry key='filter.duplicate'>true</entry>

    <!-- position forwarding -->
    <!-- Enable positions forwarding to other web server. -->
    <!--
    <entry key='forward.enable'>true</entry>
    <entry key='forward.json'>true</entry>
    <entry key='forward.url'>http://REDACTED:REDACTED/</entry>
    -->

    <!-- event forwarding -->
    <!-- Events forwarding is a global configuration and always includes all events. -->

    <entry key='event.enable'>true</entry>
    <entry key='event.forward.enable'>true</entry>
    <entry key='event.forward.url'>http://REDACTED:REDACTED/</entry>
    <entry key='event.motion.speedThreshold'>1.08</entry>
    <entry key='report.trip.minimalTripDistance'>200</entry>

    <!-- Additional Records for DB 10-12-2022 -->
    <entry key='processing.remoteAddress.enable'>true</entry>
    <entry key='coordinates.filter'>true</entry>
    <entry key='coordinates.minError'>50</entry>

    <!-- 08-01-2022 Owntracks Support -->
    <entry key='owntracks.port'>5144</entry>

    <!-- Additional Records for Telegram Notifications 11-12-2022 -->
    <!--    <entry key='notificator.types'>web,mail,telegram</entry> -->

    <entry key='notificator.types'>web,telegram</entry>
    <entry key='notificator.telegram.key'>REDACTED:REDACTED</entry>
    <entry key='notificator.telegram.chatId'>REDACTED</entry>

    <!-- GEO Reverse Lookup -->
    <!-- GEOCODING SETTINGS -->
    <entry key='geocoder.enable'>true</entry>
    <entry key='geocoder.type'>nominatim</entry>
    <entry key='geocoder.url'>https://nominatim.openstreetmap.org/reverse</entry>
    <entry key='geocoder.key'>REDACTED</entry>
    <!-- https://www.traccar.org/reverse-geocoding/ -->
    <entry key='geocoder.onRequest'>true</entry>
    <entry key='geocoder.ignorePositions'>true</entry>
    <entry key='geocoder.reuseDistance'>10</entry>

</properties>

Any clue what I missed??? I started with the default version and build up from there. However no solution yet.

Anton Tananaev 3 years ago
Sandor 3 years ago

Aha, tnx Anton.
Did not search in Github indeed as based on my previous experience the discussion usually starts here ;-)
Always a pleasure to have your mind at hand.
Will wait for the next release to have it resolved.

I wish you a great Christmas

Sandor 3 years ago

Fixed in 5.6, many thanks