traccartools / ttn2traccar

Track LoRaWAN devices in Traccar
2 stars 0 forks source link

Help creating Payload Decoder #1

Closed bigjdunham closed 11 months ago

bigjdunham commented 11 months ago

Okay this is a great script, but now I need a little help creating the Payload Decoder. I don't know Java, so I'm don't even know where to start to create a Payload Decoder for my device that can be translated into OsmAnd for Traccar. Got any secrets, or know of a place to that would work for helping a dummy figure it out?

itec78 commented 11 months ago

You should find a decoder for your device, probably you don't need to write it. I used this firmware on my device, and the decoder was included. https://github.com/kizniche/ttgo-tbeam-ttn-tracker

The decoder is used to decode the paylod into several values, and should be added to your device settings on TTN site (paylod formatters/uplink). When payload is decoded (latitude, longitude, altitude) you can send it to a server running my script, that acts as a webservice and forwards data to traccar