OsmAnd Protocol help

Michael Brown 6 years ago
GET /?id=xxxxxxxxxxxxxxx&lat=xx.xxxxxx&lon=xxx.xxxxxx&timestamp=1568167295&hdop=0.000000&altitude=0.000000&speed=0.000000 HTTP/1.1
Host: traccar.host.real
Connection: close
HTTP/1.1 200 OK
content-length: 0

Hey all,
I'm struggling to get traccar to recognise my location from this OsmAnd HTTP get request. Does anyone have any tips? Is there a way to debug this?

Traccar show my device as online, but does not update any of the data (location, timestamp, etc)

Anton Tananaev 6 years ago

Probably the time is wrong.

Michael Brown 6 years ago

Is it a standard unix timestamp or does it need to be something else?

Anton Tananaev 6 years ago

It is unix timestamp.

Michael Brown 6 years ago

That looks alright to me; unless its obviously wrong and I'm missing it

Michael Brown 6 years ago

Ayee! It looks like one of hdop, altitude, speed needed to have 2 points of precision.

GET //?id=xxxxxxxxxxxxxxx&lat=xx.xxxxxx&lon=xxx.xxxxxx&timestamp=1568169037&hdop=0.00&altitude=0.00&speed=0.00 HTTP/1.1
Host: traccar.host.real
Connection: close

Worked :)

Michael Brown 6 years ago

Hmmm, maybe not, perhaps it is a timestamp thing.

Koen Claerhout 6 years ago

Hello Michael,

have you ever found what was the root cause?
Could it be sending to many positions in a short timespan?

Thanks,

Michael Brown 6 years ago

I think it was a timezone issue, I'll be trying this again over the next few month from a Pi Zero instead of an ESP32.