extras field in osmand protocol

Adila month ago

Hello! I'm trying to utilize extras field from osmand protocol: https://www.traccar.org/osmand/
I am sending
{"extras": "street_name": "Whatever"} alongside other fields, but it's not displayed on the traccar web. What am I doing wrong? thanks.

Anton Tananaeva month ago

I don't think we support arbitrary data currently.

Adil22 days ago

how do I add custom fields then? It shows ok when using other protocols though

Anton Tananaev22 days ago

Using other protocols? What do you mean?

saul-fleetsage3 days ago

The Fact is: "extras": {} is mentioned in Traccar documentation

Are you saying that:

  1. Traccar does not support "extras": {"fuel_level": "98, "obd_speed": "0"}, because there is a different list of supported attributes ? or
  2. Traccar does not support any attribute inside "extras": {} and we should left it empty ?
Adil3 days ago

I guess the second.

I meant other protocols like h02.
My other device is using h02 and is sending custom fields in the url and it's being shown without any problems.

saul-fleetsage2 days ago

I realised that if you send like:

curl -X POST "http://{traccar server}:5055/?id={imei}&lat=-6.412725&lon=-36.776399&timestamp=$(date +%s)000&who_sent_it=jimi&does_it_work=yes_it_does"

it will be sent to attributes field in the public.tc_positions table