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-daylight-rgbw

v2.2.1

Published

Daylight RGBW Color control for Node RED

Downloads

67

Readme

Daylight RGBW node for Node-Red

Makes your RGB(W) controllable lights or ledstrips follow the sun color and a warm color at night. Also offers color animations (Disco & Rainbow)

Daylight RGBW Control Node-RED Node

NPM Version NPM Download Build Status Known Vulnerabilities semantic-release

This node offers the possibility to control the color of a RGBW ledstrip according to the time of day. This is done by calculating the angle of the sun with the horizon and project that on a color temperature scale. Therefore it is important to correctly configure your longitude and lattitude.

Typically you choose a color tempurature of around 1000K for sunrise/sunset (sun at horizon) and a color temperature around 5500K for the highest point of the sun.

But to tune it for your specific RGBW source you can tune these settings in the configuration. The white level is kept constant (for now) and can be configured too.

When the item is switched off, it will still update the RGBW colors, so that when the light source is switched on it will drectly be set to the correct colors.

The typical setup is shown below: alt text

Also see this link for an importable version of the example.

Note: Minimum Node version is now at 14.x . It might work on earlier versions, but this is no longer tested or supported.

This example follows the rules below:

Have an external node to provide the current timestamp

For instance the Inject Node offers this. Choose to provide the timestamp by interval to determine how often the colors will be updated.

Have your RGB(W) node status attached to the input to provide ON or OFF

This way you prevent the light source to come on each time when the colors are updated. This node is optimized to work directly with OpenHab2 nodes, but will work with any node as long as the topic is set to item-switch.

Choose your output

You can output RGBW separate components (port 1,2,3,4) and/or make use of the colorTemp output (port 5)

Have your RGB(W) dimmer controls for the color channels connected to port 1,2,3,4

The current implementation will output percentages. If you need a range 0-255 you need to rescale. You do not need to use port 4 if you do not have a White channel.

Have your Kelvin or Mired compatible color control connected to port 5

The result will internally be caculated in Kelvin.

Animation RGBW Control Node

A second node within this package offers RGB animations. Currently 2 modes exist: disco (random colors) and rainbow (walking all possible colors)

Installation

First go to your .node-red directory, then run the command below (or just install from the palette manager)

npm install node-red-contrib-daylight-rgbw