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-wmbus-client

v1.1.2

Published

Node-red implementation of wireless m-bus client

Downloads

21

Readme

node-red-contrib-wmbus-client

A node for getting data wirelessly from a Kamstrup 21 water meter

Introduction

Installation

cd $HOME/.node-red
npm install node-red-contrib-wmbus-client

Restart Node-RED.

Nodes

wmbus-dongle config node

Setup the type of dongle to use, currently 2 different onces are supported. Imst iM871A-USB and Amber AMB8465-M. It might also work with other Amber modules. Set the comport assigned to the wmbus dongle.

kamstrup21

Setup the the node with the serial number as seen on the device and the AES key for the meter (supplied with the meter if bought, might be give by the water company if installed by them). The timeout is used to set the status of the node if no messages ie recieved for that amount of time.

It will start by looking for a node which match the serial number supplied. When found it will transmit the packages recieved from the meter. These are send every 16th second.

Output looks like this:

{
	"currentValue":123.4,
	"monthStartValue":120.2,
	"meterDry": false,
	"dryDuration": 0 hours,
	"reverseFlow": false,
	"reverseDuration": 1-8 hours,
	"burst": false,
	"burstDuration": 0 hours,
	"leak": false,
	"leakDuration": ≥505 hours,
	"name": kamstrup21
}

currentValue is the instant value which can be read from the meter display. monthStartValue is the meter reading at the beginning of the month. meterDry is set if the meter is currently with out water. reverseFlow is set if the water is flowing the wrong way. burst is set if the flow is very high for a relative short time. leak is set if a constant flow has been going on for a long time. name is the name of the node.

xxxxDuration lets you know for for how long with in the last 30 days an info has been present. This comes in the following intervals.

	0 hours
	1-8 hours
	9-24 hours
	25-72 hours
	73-168 hours
	169-336 hours
	337-504 hours
	≥505 hours

hummie1

This is a custom made node for which the source will be relased upon final design.

Setup the the node with the serial number as programmed into the device. The timeout is used to set the status of the node if no messages ie recieved for that amount of time.

It will start by looking for a node which match the serial number supplied. When found it will transmit the packages recieved from the meter.

Output looks like this:

{
	"temperature":22.5,
	"humidity":54,
	"batteryLevel": 2.7,
	"name": hummie1
}

temperature is the current temperature in celsius. humidity is the current relative humidity in percent. batteryLevel is the current battery voltage. name is the name of the node.