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-wled-notification

v1.0.1

Published

Node-RED node for visual notification effects on WLED devices

Downloads

134

Readme

node-red-contrib-wled-notification

A Node-RED node for visual notification effects with WLED lights. It is inspired by notification effects of smart bulbs (e.g., Tradfri, Hue) and can be used for home automation or any other use case where visual notification signals are desired.

Watch the demo video to see an example use case with Home Assistant in action.

This node uses WLED's UDP Realtime protocol to display notification effects. Whatever WLED currently displays is temporarily replaced by the notification effect and continued afterward. This protocol does not change any WLED settings and therefore does not introduce edge cases in state handling (WLED settings can be safely changed during a notification effect).

Installation

To install this node, follow the instructions in the Node-RED documentation (use the Manage palette feature or run npm install node-red-contrib-wled-notification in your Node-RED user directory).

Getting Started

Add the WLED Notification node from the network category to your flow and configure the WLED host. All other settings have reasonable defaults. See examples for inspiration.

Effects

The node currently comes with a single customizable effect Blink which starts with black, then smoothly fades to a configured effectColor, then smoothly fades out again. The speed/duration can be controlled by effectFrequency (1 Hz means that the fade-in-out sequence takes one second), and the number of fade sequences can be controlled by effectCycles (3 means that the fade-in-out is repeated three times, amounting to 3 seconds duration at 1 Hz of the full effect).

Effects can be displayed on subsections of LED strips by setting ledStart and ledCount accordingly. This even allows to display multiple effect configurations in parallel on the same strip.

Advanced Use

  • All settings can be overridden by the input message, see the documentation within the Node-RED UI for details.
  • The node outputs the received message that triggered the notification effect after the effect has finished.
  • Subsequent messages received during an ongoing notification effect are discarded to avoid overlapping effects. From a user perspective, if two notifications happen within a very short time, it is sufficient to display a single visual notification to the user. This approach fails with different effects that carry different meanings, and it is yet to be determined whether queueing the effects makes sense.
  • It does not override other realtime effects that use the same protocol (e.g., Hyperion, Prismatik ambilight). Multiple active realtime effects interfere with each other and should best be avoided.

Contributing

This project welcomes pull requests. To contribute, please fork this repository, make your changes, and submit a pull request. Please ensure that your PR adheres to the project's standards.

  • Write PR title in Conventional Commit format.
  • Add a concise PR description.
  • Add tests that cover 100% of the changed/added code.
    • Exceptions are allowed. Use skip comments to exclude code from coverage.

License

This project is licensed under the Apache License 2.0. See the LICENSE file for more details.