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

v2.0.2

Published

node-red node to ease the communication with wifi370 led controller

Downloads

16

Readme

node-red-contrib-wifi370

:bulb: Integrate your WIFI370 LED-Controller with Node-RED

npm version

Features

node-red-contrib-wifi370 provides commands to control your WIFI370 LED-Controller with Node-RED. Node-RED - is a visual tool for wiring the Internet of Things (IoT) - read more @http://nodered.org This node outputs a message to msg.payload containing a buffer which can be send to the WIFI370 LED-Controller using the TCP node.

Communication

This node provides bit arrays messages which can be send using the TCP node

How to use this Node?

Talk to WIFI370 with node-red-contrib-wifi370:

Inject node ---- Wifi370 node ---- TCP node

Screenshot

Predefined Commands

  • ON
  • OFF
  • INFO (Current State and Color)

Screenshot

Color

if you pass an rgb Array to this node it will be used instead.

msg.color = [ 255,255,255 ]

Screenshot

Configure TCP node like this

Screenshot

Get current state

Screenshot

Output: data": [ 102, 1, 36, 65, 33, 2, 34, 255, 0, 1, 153 ]

value 3 represents ON/OFF 36/35

values 7,8,9 represents RGB 34,255,0

The Vanilla Way

Talk to WIFI370 only with core nodes

Inject node ---- Function node ---- TCP node

Screenshot

Function node content

var CMD = {
INFO: ["239", "1", "119"],
ON: ["204", "35", "51"],
OFF: ["204", "36", "51"]
};
const buffer = new Buffer(CMD.OFF);
msg.payload = buffer;
return msg;

Which hardware is used?

Controller Support

|Controller | Supported | Type | | ---------- |:-------------:| -----:| | LW12 | [x] | RGB | | LD382 | [x] | RGB | | LD382A | [x] | RGB | | LD686 | [x] | RGBW |

Thanks to Meik Dirkes for reverse engineering the communication for all controller types.

WIFI370-LED Controller

Screenshot

Link to Amazon (Germany): Link

Exported Flow

Find the exported flow example in "test" directory

Install

cd node-red/
npm install node-red-contrib-homematic

Docker Install

On the host machine

docker run \
--name nodered \
--restart=always \
-v /home/docker/node-red:/data \
-p 1880:1880 \
-d nodered/node-red-docker

Also on the host machine

cd /home/docker/node-red
npm install node-red-contrib-homematic

Something missing?

You can easily extend this module to fit your needs by editing the html file. feel free to create a pull request!

Donate

Donate

License

See the LICENSE file for license rights and limitations (MIT).