traccartools / ttn2traccar

Track LoRaWAN devices in Traccar
2 stars 0 forks source link

About

This little Docker container will listen on port 5299 for TTN and Helium integrations, and send location data to a Traccar server.

How to

Docker

Clone this repo and then add this to your docker-compose.yml file:

  ttn2traccar:
    build: https://github.com/traccartools/ttn2traccar.git
    container_name: ttn2traccar  # optional
    ports:
      - 5299:5299
    environment:
      - "TRACCAR_HOST=https://traccar.example.com" # optional, defaults to http://traccar:8082
      - "TRACCAR_OSMAND=http://traccar.example.com:5055"  # optional, defaults to http://[TRACCAR_HOST]:5055
      - "LOG_LEVEL=DEBUG"  # optional, defaults to INFO
    restart: unless-stopped

Traccar

Create a device with ID = DevEUI (Device EUI)

TTN

Add payload formatter to decode location data (latitude, longitude, altitude, speed, course)

Add webhook integration, sending uplink message to http://foo.bar:5299 (replace with your server url)

Helium

Add function to decode location data (latitude, longitude, altitude, speed, course)

Add an integration, method POST, endpoint URL http://foo.bar:5299 (replace with your server url)

Add a flow joining device, function and integration