I guess I need to see original data in the database for one of those devices.
Which protocol do use your devices? Could you show state of the begin and the end of some trip?
Anton - Would you like a dump of the database? Or a few tables?
Abyss - huasheng protocol (new one). How can I show you the state?
Would any of these .xml settings be causing the issue?
<entry key='web.enable'>true</entry> <entry key='web.port'>8082</entry> <entry key='web.path'>/opt/traccar/web</entry> <entry key='geocoder.enable'>true</entry> <entry key='geocoder.type'>google</entry> <entry key='geocoder.processInvalidPositions'>true</entry> <entry key='logger.enable'>true</entry> <entry key='logger.level'>all</entry> <entry key='logger.file'>/opt/traccar/logs/tracker-server.log</entry> <entry key='filter.enable'>true</entry> <entry key='filter.zero'>true</entry> <entry key='event.enable'>true</entry> <entry key='event.suppressRepeated'>60</entry> <entry key='event.overspeedHandler'>true</entry> <entry key='event.globalSpeedLimit'>90</entry> <entry key='event.motionHandler'>true</entry> <entry key='event.geofenceHandler'>true</entry>
Dump of the database would be better if it's not too big. You can send it to my email (address on support page) if you don't want to publish it here.
Choose one trip, for example first one
from 2016-10-04 06:05:55 to 2016-10-04 06:36:55
Make a route report, select first position, you will see a state in State panel, make screenshot to fit all fields, select last position and make a screenshot.
Something like this.
The problem seems to be that your device reports random "odometer" values. I think we implemented an option to force distance calculation on the server instead of taking one from device. @abyss, can you please find the thread where we discussed it.
Trips overview, I chose the highlighted trip
https://postimg.org/image/wp4rbrdjd
beginning state
https://postimg.org/image/7x554iwcp
end state
https://postimg.org/image/i4nogxikp
Strange - my other tracker device that's exactly the same reports the trips OK.
Here is pull request https://github.com/tananaev/traccar/pull/2348
OK, you can try this build:
https://www.dropbox.com/s/cgmlansv32j3ii0/tracker-server.jar?dl=0
And add "report.ignoreOdometer" with value "true" to the config.
Alternatively you need to fix the device to report correct value. It might be a server issue as well, but need original HEX messages to check.
Installed new .jar file, entered the key below into traccar.xml and restarted traccar
<entry key='report.ignoreOdometer'>true</entry>
Is this a harmless warning?
2016-10-07 23:45:45 INFO: Query not provided: database.selectAttributeAliases 2016-10-07 23:45:45 INFO: Starting server...
Will check the trips tomorrow to see how it reports.
Yes, you can safely ignore the warning.
Thanks guys, distance is now reporting correctly.
Did you want the hex messages from my server as well? Or happy to just mark this one as resolved?
It would be helpful to see what device reports.
Hi Anton,
I have a device showing negative distance within the traccar trip reports.
https://i.imgsafe.org/64b3141a23.png
This is 1 of 2 devices (same identical units). My other unit is showing the correct distance travelled.
Any ideas?