You can enable filtering in the config file:
<entry key='filter.enable'>true</entry> <entry key='filter.duplicate'>true</entry>
Thanks Anton,
I have entered the strings into my config file and restarted my server machine, however there does not appear to be any change. I also went for a drive to get some new data and it is still duplicated. Do i have to enter the strings into the config file in a particular location?
Also another question. on my web interface, the timestamps shown on the records are not the same as the system/GPS tracker timestamps. How can i change the timezone settings?
Thanks.
Filtering won't work for old data that is already in the database.
Location in the config file doesn't matter. If it doesn't work, please provide log file (tracker-server.log) for me to investigate.
I had quite a few questions about timezones. The way it works:
If there are some problems with time, I need logs (tracker-server.log), timezone you are in and you server's timezone.
Thanks Anton,
I will go for a drive later this evening and see if the duplicates are gone. I will send you the log file if it doesn't work.
With reagards to the timezones, i think the problem is that my device (Ulbotech T373B) sends the time in UTC+8 (my timezone) and then the web interface or the server is then adding another +8 to the time. This seems to match what im getting in the web interface since all of my records are +8 hours ahead of where they should be. Unfortunately I cannot change the timezone setting on the tracking device. You can download my log file from the link in my first post.
Both my tracking device and server are in the same timezone (UTC+8)
It would be good if there was a feature in the web browser to offset the displayed readings by +-x number of hours.
Thanks for the support, i really appreciate your responses and the work you are doing. I will send through a donation as a token of my appreciation.
Thanks
I have added a configuration option to set time zone offset. I will provide a new build for testing later today.
Here is a new build with time zone config option:
https://www.dropbox.com/s/myt68q5u7fiz49r/tracker-server-jar-with-dependencies.jar?dl=0
You need to add following line to the config file (value in seconds):
<entry key='ulbotech.timezone'>28800</entry>
Hi Anton,
I have downloaded the new build and renamed and replaced tracker-server.jar with the downloaded one. The timezone change does not appear to work. Am i doing something wrong?
Also, i'm finding the filter is still not working for duplicate entries.
My log file can be found here: https://www.dropbox.com/s/vu2jlp8sn7u6pzn/tracker-server.log?dl=0
Thanks
This time it should work. Here is a new version:
https://www.dropbox.com/s/myt68q5u7fiz49r/tracker-server-jar-with-dependencies.jar?dl=0
Hi,
I have got my a Ulbotech 373B GPS Tracker connected to my client and it records co-ordinates at 30s intervals. The connection is fine and the client is recieving the data, however the GPS unit appears to send historical gps data as well as current data when it sends a data packet. I guess it does this is in case the unit looses connection with the server and once it reconnects it sends the data it would have missed.
The issue i have is that the Traccar server will save each historical timestamp record as an idividual record and a s a result i have up to 10 records of the same co-ordinate. Is there a way to configure the server to delete or hide the duplicate records? Or alternatively overwrite or reject a record from the GPS tracker if its hs the same timestamp and co-ordinates as whats in the on the server. I will send/atatch my log fileLog File
Thanks