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-idm

v0.4.10

Published

Nodes for IDM and DUO

Downloads

16

Readme

This package provides a set of nodes that will add support for IDM on your Node-RED installation. IDM (Inter Domain Messaging) is a middleware used to connect different types of hardware which uses different types of communication protocols and technologies.

For example, you can use IDM to receive the temperature of a RS-485 thermostat, and then send a command to a XBee controller that will switch off the cooling system, and also send a notification to your Smartphone using the Internet. IDM will handle the problems related to use three different technologies here (in the example, RS-485, ZigBee and WiFi/Ethernet, but it is not limited to these).

Along with the IDM nodes, this package also provides a basic set of data-types' nodes, called DUO (bool, byte, int, string, etc). Each type has two kind of nodes: client and servant. Using the client, you can send the payload to a remote servant (implemented somewhere: on an Arduino, a Raspberry Pi, another Node-RED, etc). The servant will allow you to receive this type of message.

For more information about IDM, see IoT infrastructure with IDM.

Installation of dependencies on Debian

First, set up the APT repository http://pike.esi.uclm.es using:

wget -qO- http://pike.esi.uclm.es/add-pike-repo.sh | sudo sh

Now, install the following packages:

sudo apt-get install idm duo duo-wiring-service

Overview of Nodes

The following is a list of the provided nodes, and its main features. For a more detailed explanation, see the node 'info' tab on Node-RED.

DUO data types

  • IBool client: it sends the payload (converted to boolean) to the configured object (specified by its IDM address).

  • IBool servant: injects a message with the proper payload (true or false) when it receives an invocation.

  • IByte client: it sends the payload (converted to byte, range from 0 to 255) to the configured object (specified by its IDM address).

  • IByte servant: injects a message with the proper payload (a number, range from 0 to 255) when it receives an invocation.

  • IInt client: it sends the payload (converted to number) to the configured object (specified by its IDM address).

  • IInt servant: injects a message with the proper payload (a number) when it receives an invocation.

  • IString client: it sends the payload (as a strig) to the configured object (specified by its IDM address).

  • IString servant: injects a message with the proper payload (a string) when it receives an invocation.

  • Active client: establish the observer of a DUO.Active servant. Using the Active client, you can attach an observer that will be notified about any change. Example: you have an Active light and you want to know when someone switchs it on or off.

  • Active servant: this is an Active servant, you can set an observer to it, and it will be notified when a new message (of the selected type) arrives.

IDM configuration nodes

  • ice-adapter: this is the object adapter where servant will be added. Here, you can specify the endpoints to listen on (for example, in TCP: host and port).

  • ice-communicator: this is the broker object for the middleware. Just create one using the default settings.

  • idm-router: this is the location (as an Ice Proxy) of the used IDM Router. This router will handle the message forwarding through your IDM network.

  • duo-wiring-service: a service that cand handle multiple observer setups.

Other useful nodes

  • toggle in: a simple toggle button to provide input from the Node-RED editor. It does not send a predefinded state, but changes its state on each click.

  • toggle out: a simple widget to show the payload of the last message. It changes its status to 'true', if payload can be coerced to true, otherwise it will show 'false'.