node-red-contrib-iota-mam 4.0.1

Updated on 16/04/2019

npm install node-red-contrib-iota-mam

Updated on 16/04/2019

Requirements

Install node-red globally and install ui packages and the sensortag package

sudo npm install -g --unsafe-perm node-red

in your ~/.node-red installation directory type:

npm install node-red-dashboard node-red-contrib-sensortag node-red-contrib-simple-gate

IOTA-MAM module installation

Run the following command in your NODE-RED install

npm install node-red-contrib-iota-mam

Usage

Two different function nodes are now available for

MAM publish (=upload data to tangle) and MAM fetch (=download data from tangle)

Drag MAM function node into a flow and wire it accordingly

CONFIG - At first use the Node-red sample file included !!!

Find included in the root directory a flow sample file called flows_Air.json It provides you with an initial config for ROOT (mamFetch) and a devnet IOTA node.

Also you can switch to the newly added node-red dashboard to publish/fetch data and see a live visualization.

If you have any issues regarding this module, please test with this file and give a clear issue description. Thank you!

MAM fetch

Start deploying a single 'mamFetch function node'. Set its root property (root = "your MAM_ROOT")

wire this node's output to -> any output ( e.g. a chart displaying your msg.payload)

try with OPXFHFGWWHRTSDYBJHZNNATUVAFJUBCNV9ZJXWDPGCAQFTZFDIKCXDZQYHKYHRILZ9QAOR9GHTTATXJSH)

This should hold a non-encrypted (public) data packet sequence. (as of 16 april 2019)

MAM publish

Deploy a sensorTag as input data source. (Please report an issue https://gitlab.com/ouya/node-red-contrib-iota-mam/issues if you encounter problems with other sensors. We are looking to support all general sensors in the near future)

wire its output to -> mamPublish node

and wire this node's output to an -> (optional) output for logging

The MAM publish gets input data from sensorTag, uploads the data packet it receives (can be a mix of temperature, lux etc) and upon MAM confirmation is ready to take new data from your sensorTag device.

Node Info

Version: 4.0.1
Updated 6 days ago
License: ISC
Rating:

Downloads

8 in the last day
743 in the last week
2016 in the last month

Nodes

  • mamFetch
  • mamPublish

Keywords

  • node-red
  • mam
  • iota
  • sensortag
  • sensornode

Maintainers

  • ouya