webhook

maiko 2 months ago

I have my Traccar device and I'd like it to receive coordinates from my device and send them to another Traccar platform as well. But that other platform only accepts a different tracker model, so my Traccar would have to send the data in a different format than it receives it in. Is that possible?

Anton Tananaev 2 months ago

You can potentially use forwarding. You can configure it to use OsmAnd format, which should be supported in any Traccar version.

maiko 2 months ago

How do I configure this?

Anton Tananaev 2 months ago

Yes, use the URL position forwarder with an OsmAnd-style template pointed at the other server's OsmAnd port (5055):

forward.enable=true
forward.type=url
forward.url=http://other-server:5055/?id={uniqueId}&lat={latitude}&lon={longitude}&timestamp={fixTime}&speed={speed}&bearing={course}

The other Traccar will receive it as an OsmAnd device.

maiko 2 months ago

Where is this setting configured on my Traccar server?

Anton Tananaev 2 months ago

Please make sure you check the documentation before asking questions!

https://www.traccar.org/configuration-file/