Messages without GPS data and direction markers in real-time view

AlexG7 years ago

Hi

Is it possible to show the direction of a device in the real-time view, rather than just in the historical breadcrumb? If not, would it be an easy fix to change that or just perhaps wait for it in a future release?

Also, I noticed that 3.2 added the support for messages without GPS data. However, using the OsmAnd protocol to send raw data to the server, it does not seem to support it and when sending messages with no GPS data the device location default to the Atlantic, close to Africa. Is there any way around this?

Anton Tananaev7 years ago

The way it works is that if location is not provided Traccar uses last known location. If there is no last known or uses zeroes which places it near Africa.

AlexG7 years ago

Hi Anton,

Thank you for the reply, but it's still not working...

When there is a valid location, I am sending

http://address:5055/?id=75&timestamp=2017-11-08 19:57:31&lat=37.797889&lon=-122.441019&speed=0&bearing=0&altitude=0&devcode=11222

Otherwise, I am sending:

http://address:5055/?id=75&timestamp=2017-11-08 19:29:00&devcode=333444

What am I doing wrong?

Also, what about

Anton Tananaev7 years ago

Looks fine to me. What's in the server logs when you send those?

AlexG7 years ago

It seems as if it gets the correct information, but expects a valid GPS coordinate...

2017-11-08 12:11:49  INFO: [CE1C067D] connected
2017-11-08 12:11:49 DEBUG: [CE1C067D: 5055 < 108.232.117.74] HEX: 474554202f3f69643d37352674696d657374616d703d323031372d31312d303825323032303a31313a343926646576636f64653d363234363520485454502f312e310d0a4163636570743a20746578742f68746d6c2c6170706c69636174696f6e2f7868746d6c2b786d6c2c6170706c69636174696f6e2f786d6c3b713d302e392c2a2f2a3b713d302e380d0a436f6e6e656374696f6e3a206b6565702d616c6976650d0a557365722d4167656e743a204d6f7a696c6c612f352e30202857696e646f7773204e5420362e333b20574f5736343b2072763a32382e3029204765636b6f2f32303130303130312046697265666f782f32382e300d0a4163636570742d4c616e67756167653a20656e2d75732c656e3b713d302e350d0a4163636570742d456e636f64696e673a20677a69700d0a486f73743a20736970322e7461626c65746d656469612e636f6d3a353035350d0a0d0a
2017-11-08 12:11:49 DEBUG: [CE1C067D: 5055 > 108.232.117.74] HEX: 485454502f312e3120323030204f4b0d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
2017-11-08 12:11:49  INFO: [CE1C067D] disconnected
2017-11-08 12:11:50  WARN: Geocoding failed - Empty address - GeocoderException (JsonGeocoder:74 < ...)
2017-11-08 12:11:50  INFO: [CE1C067D] id: 75, time: 2017-11-08 20:11:49, lat: 0.00000, lon: 0.00000, speed: 0.0, course: 0.0
2017-11-08 12:11:55  WARN: Invalid Addresses - SendFailedException (... < NotificationMail:121 < *:131 < ...)
2017-11-08 12:11:55  WARN: Invalid Addresses - SendFailedException (... < NotificationMail:121 < *:131 < ...)
Anton Tananaev7 years ago

It still looks fine. You don't send location, so it defaults to zero, as I already explained.

AlexG7 years ago

ok.. I think you meant to say "If there is no last known IT uses zeroes which places it near Africa.". Ok , in this case, I need to send an event that does not have a coordinate but it should be handled without being displayed on the map.

When I read the 3.2 description notes I thought you addressed it in exactly how I would need it to work: "Support for messages without GPS data was one of the most awaited features for a long time. The problem was that some devices (e.g. GT06) report only status information (for example, battery level) when they are not moving and there was no way to support those kind of messages in previous versions of Traccar. Implemented support for those kind of messages also means that Traccar can be extended to support any type of messages that devices send (CAN, OBD, photos etc). The way this feature works is that Traccar appends latest known location to any message without GPS data. In future the plan is to add support for LBS-based locations as well."

So it should be the last known location rather than Africa (0.0, 0.0) ...

Anton Tananaev7 years ago

I have already explained how messages without location work. Traccar is not designed to work with devices that NEVER send location.

AlexG7 years ago

Anton, thank you. I read it as if Traccar would automatically use the last known location if there wasn't one (it could also not display it at all), but I guess that's not the case.

Anton Tananaev7 years ago

It does use last known. In your case there is no last known, so it defaults to zeroes.