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

v0.1.1

Published

Node-RED nodes for the FlexDash dashboard

Downloads

4

Readme

node-red-contrib-flexdash

NodeRED nodes to interface with FlexDash

FlexDash is a self-contained web dashboard for NodeRED and IoT devices. This package provides Node-RED nodes that interface with FlexDash making it easy to send data to be displayed in the dashboard, and to receive user input messages from the dashboard.

Under the hood the nodes here use Socket.IO and in FlexDash the socket.io connection should be configured.

Installation

To install node-red-contrib-flexdash use:

npm i node-red-contrib-flexdash

Configuration

The flexdash nodes are similar to most networking nodes in Node-RED: there is a flexdash-out node to send data to FlexDash and a flexdash-in node to receive user input messages. Instatiating either one creates a configuration node that captures the socket.io options and creates a network listener in the background.

The simplest set-up consists of just a flexdash-out node to send some data to the dashboard.

Usage

The best way to learn how to use FlexDash with Node-RED is to launch FlexDash and to follow the simple tutorials that are a part of the FlexDash demo configuration. You can launch FlexDash from https://tve.github.io/flexdash without installing anything and you can try some simple things out with Node-RED using plain websockets again without installing anything: look at the info on the websock tab in FlexDash.

For real use the node-red-contrib-flexdash nodes are highly recommended. The way FlexDash works is as follows:

  • on the Node-RED side you send messages with topic and payload to a flexdash-out node, this data is forwarded to FlexDash and entered into its topic tree
  • on the FlexDash size, you instantiate a widget, say a gauge, you configure it in FlexDash (title, color, min, max, etc) and you bind an input (typ. value) to a topic.
  • when a message is sent with the chosen topic to flexdash the widget updates automatically.
  • note that any of the widget inputs can be bound to dynamic values, for example, the color could be set via messages from Node-RED as well.

For user input, the output of a widget can be assigned a topic, when the user interacts with the widget to produce output (e.g. pressing a button or toggling a switch) the widget sends an output value to the topic, which "comes out" of every flexdash-out node (unless the node is configured with a topic filter).

For further information, please see the help text that comes with each FlexDash node.

License

MIT