npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-red-contrib-iota-mam

v4.1.2

Published

Updated on 18/04/2019

Downloads

35

Readme

Node-red IOTA MAM module

Updated on 18/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 NHNRYMKA9RLTPLQNWFRHKJGVUXAAPBVYBG9LOXFPKDWVKOUIDILEVCBNGLOPYZEGZMEFSCOOVCKNOPSNB)

This should hold a non-encrypted (public) data packet sequence. (as of 18 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 now operates in a loop:

  1. collects input data from sensorTag (can be a mix of temperature, lux etc)
  2. and immediately uploads the 1st data packet to the tangle

loop: ... now waiting for the bundle and its transactions to be confirmed on the tangle, it aggregates all incoming sensor tag data into a data array ... upon MAM confirmation of the previous bundle, it sends this aggregated data array to the tangle ... now waiting again for bundle confirmation

Rate limits

on many public nodes you might have rate limits, so better use your own custom node, or make sure the node you connect to has the capacity to handle your sensor data traffic.