the instructions on the mqtt docs page should get you started. Its a standalone script that runs on its own, you just need to change some of the hardcoded parameters (that docs page says how).
Sure, but itâs hardcoded to use tracckr app. Itâs a nice example of how to export nodes positions to tracckar server. But not clear how to use it like itâs used on the âofficialâ MQTT server - decode position and message protobufs and send it to JSON topic.
This is a different script to the one on the official mqtt server. I couldnt find that one anywhere so wrote my own. Can you give me an example of the json you want out of it? Text message support is on my list to add, itâd be easy as to make it spit out position data as json too.
You can disable the traccar stuff by setting traccarHost = ""
@joshpirihi I know, but having an external tool postprocess MQTT messages to just decode the protobufs seems to be overshooting for me. Also, running this with AppDaemon on Home Assistant is somehow not stable for me. Looks like it just stops working after some reconnects.
Followup PR that adds full JSON encoding/decoding support for uplink and downlink. It works, but I need some review if I did the radio sending correctly and did not miss some memory leaks. Any help/review appreciated.
Weâve had two reasons, the first is that by sticking with the protobufs, we donât have to maintain the translation layer between protobufs and json as things change. In your draft PR, you only selected a small handful of the data available which I suppose is ok. Weâll need to figure out volunteers for when requests for changes in the area come up.
Second reason was size required by the inclusion of a json parser. Youâve picked a very lean library and thatâs appreciated.
Over all, youâve done great! Thanks for your contribution!
Here you can see my modified version from the original.
Many parameters of the portnum: POSITION_APP, TEXT_MESSAGE_APP and NODEINFO_APP are decoded and republished.