Skip to content

Gateway that Consumes Http Post Data (JSON) and converts it to mqtt format for tb

Notifications You must be signed in to change notification settings

stephenpmunyi/mqttgatewaytraccar

Repository files navigation

Mqttgatewaytraccar

Mqttgatewaytraccar is a small Server written in NodeJs to use Traccar in other IoT Platforms such as Thingsboard

Mqttgatewaytraccar uses a number of open source projects to work properly:

  • MQTT - Node.JS client library for the MQTT protocol
  • Micro - Micro — Asynchronous HTTP microservices

Setup and Starting via npm

npm install
npm start

Setup and Starting via Docker-compose

!!! Dont forget Setup the var.env file for your environment !!!
nano docker-compose.yml
docker-compose up

Try docker-compose up -d to start in background.

Setup Traccar

On your Traccar Setup edit conf/traccar.xml and add forward

<!-- position forwarding -->

<entry  key='forward.enable'>true</entry>
<entry  key='forward.json'>true</entry>
<entry  key='forward.url'>http://mqttgatewaytraccar_ip:8759/</entry>

And restart Traccar Instance

Change Access Token to Id of Tracking Device

deviceidasaccesstoken

Sample Telemetry

telemetrydata

Sample Mobile Dashboard

photo_2021-10-24_12-21-16

Sample Dashboard

smart tracking

About

Gateway that Consumes Http Post Data (JSON) and converts it to mqtt format for tb

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published