ivanfmartinez / ivanfm-traccar-mqtt

mqtt handler for traccar
14 stars 6 forks source link

Payload as JSON? #2

Open jpmens opened 6 years ago

jpmens commented 6 years ago

Nice work; this is very interesting.

Are you aware of the OwnTracks project? We provide Open Source apps (iOS and Android) which use an MQTT broker onto which positions from the mobile devices are published and from which positions of, say, friends or family are obtained to show in a list of friends.

We have designed a payload format (which we lovingly call OwnTracks JSON) which uses standard JSON with some defined elements. This is quite extensively documented.

As a matter of interest, we also created a Traccar Protocol decoder (aptly named owntracks) which can be used to feed Traccar with our OwnTracks JSON via HTTP.

I'm mentioning this as it may be something you'd like to support in your traccar-mqtt plugin.

ivanfmartinez commented 6 years ago

I know the Owntracks, currently I this this to feed the locations to my openhab instance. The sparated fields are easier to process than a single json.

But if you make a PR with the owntracks format support as one configurable option I can merge .