A Node-Red Node for the GoTenna Mesh
Node-RED nodes to send data to and receive data from a goTenna mesh radio modem.
Run the following command in your Node-RED user directory - typically
npm install node-red-contrib-gotenna-0.0.1.tgz
then cd into the
node_modules/node-red-contrib-gotenna directory and install the goTenna driver
This assumes running on a Linux box of some sort, requires sudo (root access), and uses python3, otherwise you may be able to just
sudo pip3 install goTenna-0.12.5-py3-none-any.whl
Then, once Node-RED has been started, you should see two goTenna nodes (an in and an out) in the nodes pallet.
Configuration and Use
To configure the nodes, you'll need to add your
sdkToken as well as a
Once the nodes are correctly configured, deploy the flow and turn on the goTenna connected via USB. The light should blink fast, and then the Nodes will show a status of
"Online, Battery: xx, Temp: yy" which means that Node-RED is correctly receiving information from the goTenna.
You should then be able to send and receive messages.
Leave the gid field blank in the output node to send a broadcast message, or add the specific gid of another goTenna to send a private message.
I've noticed some occasional problems with private messages, so if you have any unexpected disconnects, use broadcast instead, once I find a fix, I'll update the node.