Open jolypas opened 7 years ago
The only thing I can think about is the polling interval. Positions are updated with some interval, not simultaneously, which is 15 seconds by default and can be configured in "Global" settings. Maybe that's why you don't see the new position at the time when you expect it.
In fact the problem remains several hours and the situation returns back to correct (I dont know on which event)
This occurs for a device where I have to correct the "lastestPosition_id" into database because it is in the future (see my previous issue https://github.com/vitalidze/traccar-web/issues/991 My script is working fine , When i detect a position in the futue, I search the last correct position in the database for the concerned device and replace it. put perhaps there is something else to do to refresh the web client
Anyway i have to upgrade the production server in 3.9 where this issue of position in future seems to be corrected (but I am interested to know if there is a way to correct data in the database in case of)
thanks a lot
Well, I have no idea what it could be. The getLatestPositions
method just loads all devices and takes positions from the profile. Thus, if you have correct position id there, then it should be shown on the UI.
I think you can try solution from #994 instead of yours, maybe it will work out your issue.
hello i'm using traccar 3.7 with traccar-web (data are stored in mysql)
I have something strange with one device. It is correctly updated in database, I receive notifications with geofences but the data and location on the map are not corresponding to the latestPosition_id (which is correct) in 'devices' table but it is showing an old position. using archives for this device, all positions are correct.
So just displayed position/data is wrong (I have seen nothing "special" in the logs) Any idea to "refresh" latest position displayed with database information
(Android client is showing the same problem)
regards