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

v0.5.0

Published

Another rcswitch node for node-red

Downloads

12

Readme

node-rcswitch2

NPM version

The node-red node node-rcswitch2 allows to control 315/433Mhz devices via the rcswitch library. This is an extented version of tlindener/node-red-contrib-rcswitch with support of different switch types, tristate and binary strings.

The implementation based on https://github.com/marvinroger/node-rcswitch. The supported switch types are described there.

Node bindings for the rcswitch RaspberryPi port (pin).

It should be compatible with all versions of Node.js starting from 0.10.x.

Requirements

  • Like the C++ version of rcswitch, WiringPi must be installed in order to compile the used packages.
  • Both the data and the power Pins of the 315/433Mhz emitter must be connected to the RPi. Note the number of the WiringPi data Pin. (see http://wiringpi.com/pins/)
  • The node command must be run with root access

Usage

The attributs PIN and Mode must be set in the node properties (edit dialog). The other configuration can either be done in the node properties or in the incoming message object.

  • PIN - (Number) data Pin to use following the WiringPi schema
  • Mode - selects the operation mode of the node to support different manufacturers

This node supports the following modes:

  • group code + Device - For devices without family code.

The group code is either an binary string with length 5 or a numeric value (1-4) and could be set in field Group or msg.group. The switch/device could be set in field Device or msg.device (value [ABCD] (in this case Field Device must be set to "msg.device"). The Switchposition could be set in field Switch Position or in msg.payload. In this case the value 0 means off and the value 1 means on.

  • Family + Group code + Device -For devices with family code.

The Family code must be one of the chars [abcdef] and could be set in field Family or msg.family. The group code is numeric and must be one of the values [1234] and could be set in field Group or msg.group. The switch/device could be set in field Device or msg.device (value [ABCD] (in this case Field Device must be set to "msg.device"). The Switchposition could be set in field Switch Position or in msg.payload. In this case the value 0 means off and the value 1 means on.

  • Channel + Device (Tristate) For devices with tristate code like micro-electric AS 73 witch is also sold as REV Telecontrol in Germany (Version with house code with 6 DIP switches).

The Channel code must be a binary string with 0=off and 1=on and could be set in field Channel or msg.channel (in this case Field Channel must be empty). The switch/device could be set in field Device or msg.device (value [ABCD] (in this case Field Device must be set to "msg.device"). The Switchposition could be set in field Switch Position or in msg.payload. In this case the value 0 means off and the value 1 means on.

  • Tristate String Send a tristate string.

The String could be set in field systemcode or msg.payload. Only the chars 0,1,F and S without any blanks are alowed.

  • Binary String Send a binary string.

The String could be set in field systemcode or msg.payload. Only the chars 0 and 1 without any blanks are alowed.

An description of the types is on https://github.com/marvinroger/node-rcswitch".