0.1.0 • Published 5 years ago

ttb-node-jump v0.1.0

Weekly downloads
4
License
http://www.wtfpl....
Repository
github
Last release
5 years ago

License GitHub issues GitHub package.json version

ttb-node-jump

ttb-node-jump is a Node-RED node to send/receive a msg locally into a device or between two or more devices.

Suppose a temperature sensor in a holiday house, and you want to get its data in your main home: the jump node can be used for that.

More precisely, imagine a virtual cable (we call it a "broker") with several named wires (we call them "links") somewhere in the cloud. You can push data to a particular wire of that cable using the jump out node. Anywhere in the word, you can also use a jump in node to get the data, using the same named wire.

npm.io

In this picture, the left and right parts are completely separated and can be on the same device or on two separated devices anywhere in the world.

Here is the way the nodes should be edited: provide the name of the link to use (you can use any name without space but avoid toot simple ones since anyone using the same will also get your datas) and a key to encrypt the data (since there is a way to get a list of all used links):

npm.io

Internally, the jump nodes use the MQTT protocol and a public broker provided by https://www.hivemq.com/ (thanks to them!) to send the whole msg object as an encrypted bloc. Any MQTT topic can be used as a link name.

To achieve more privacy, you can use your own non public broker in the advanced tab. Again, HiveMQ is a good start (https://www.hivemq.com/downloads/). Alternatively, consider https://mosquitto.org/.

npm.io

Change the broker into the advanced tab. If you want to restrict the use on the same device, you can choose "local" broker. In this case, datas does not go out the device.

To learn more about the advanded Jump nodes capabilities, refer to the excellent tutorial https://www.hivemq.com/blog/mqtt-essentials-part-1-introducing-mqtt/

Jump in

Jump out

<dt class="optional">key
  <span class="property-type">string</span>
</dt>
<dd>The key use to cipher the message.</dd>