dasdigidings / the_things_stack_v3_tabs_decoder

Decoder in javascript for the family of tabs sensors for the things stack v3
GNU Affero General Public License v3.0
14 stars 8 forks source link

The Things Stack V3 tabs decoder

Decoder in javascript for the family of tabs sensors for the things stack v3

Since the version 3.13.0 from The Things Stack V3 the payload decoder size is capped at 4k (via webinterface), so please use the minified version decodeUplink.min.js - its the same software just run through Link to Javascript Minifier.

The differnt tabs sensors supported by this javascript decoder:

This decoder is slightly different than the decoder used for the old V2 stack!

To integrate the decoder navigate please to https://eu1.cloud.thethings.network/console/ and click on "Go to applications" and choose the application for the tabs sensors (or create one). On the left side you find "Payload formatters" and then choose "Uplink". Choose the Formatter type "Javascript", copy and paste the hole code and overwrite the code in die window and click "Save changes". From now on the payload from the tabs sensors gets decoded into readable JSON output.

You can now integrate all the differnt tabs sensors (listed above) and the decoder automaticly decodes the right data.

Things to know

how to reboot the device remotely

You can reboot them remotely by sending the following:
Send an unconfirmed downlink with payload 038000000100 (hex bytes) on port 222 via the ttn-console. Obviously this will not reboot the node immediately, the download command is scheduled just after the next uplink of the device, which typically happens all six hours (if node is not triggered before manually from any action).

This decoder is licensed by the AGPL-3.0 License, please have a look at the LICENSE file.