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

v1.1.4

Published

A customizable dashboard for NodeRed

Downloads

179

Readme

NodeRed Dashbored (Yes, that is spelt correctly)

A customizable dashboard for NodeRed, not to be confused with the NodeRed Dashboard project.

Example

Features

  • Widgets!
  • Configuration within the NodeRed flow(s)
  • Custom CSS
  • Compatibility with older browsers (We use Android tablets with outdated browsers and need to support them)
  • Locked pages / actions behind a password
  • A "Are you sure" dialog

Installation

Simply search for node-red-contrib-dashbored in the pallet manager or install using npm install node-red-contrib-dashbored

Creating your first Dashbored

How it works

The project serves dashboreds at your node-red ip http://<your-nodered-ip>:1880/<dashbored-endpoint>

The following Example JSON will create 2 dashboreds at /kitchen Kitchen Example and /bedroom Bedroom Example and will show how widgets can be used between the two dashbored instances.

The example above has the following diagram that shows the general flow of the project. Flow

It shows that the project has 2 main parts, widgets and dashboreds (both contained within a server). A widget is an element that the user interacts with (for example a button that turns the lights on), and a dashbored is the webpage that links to the widgets.

Doing it this way allows you to use widgets between dashboreds, for example one may have a toggle to turn the alarm on/off, this project allows you to have the widget for this implemented once but placed on several dashboreds, say on the bedroom, entry, and kitchen dashboreds.

Supported Widgets

Action Button

Is a simple button that performs an action.

Action Button

Toggle Button

Switches between two states. Useful for on/off applications.

Toggle Button

Button Selector

This allows for a selection of a value using a simple button layout

Button Selector

Horizontal Stack

Stacks many other widgets horizontally

Horizontal Stack

Vertical Stack

Stacks many other widgets vertically

Vertical Stack

Volume

Control a volume channel

Volume

Draggable Volume

Control a volume channel by dragging the slider

DraggableVolume

HVAC

Control a HVAC unit

HVAC

Learn More

Widgets

Find information how the widgets work.

The Dashbored Node

Find information on how the dashbored node works, it's settings and other information.

The Server Node

Find information on how the server it's self can be configured.

Development

Find information on how to contribute to this project and how to create your own widgets.

Examples

Dynamic Widget Options

Sometimes it can be useful to modify widgets dynamically. In this example we will set the options of a few widgets dynamically.

Example JSON

Custom Dynamic Widgets

Sometimes it can be useful to add widgets dynamically. In this example two custom toggle buttons will be added to a horizontal stack.

Example JSON

Contributing

To contribute to the project fork the repo into your local directory and add it to node-red with the following commands

  1. cd into the project directory
  2. npm install
  3. npm link
  4. cd ~/.node-red or cd %userprofile%/.node-red
  5. npm link node-red-contrib-dashbored

You can add widgets into the widgets directory, see Development for more information on creating widgets.

Limitations

  • There is probably no or very little security. Data will probably be sent in plain text so don't expect any encryption.
  • If you are using HomeAssistant access the editor externally. The configuration will not load if you access NodeRed through home assistant itself, the editor may also ask for 2 passwords, the first one is your admin password and the second is your password for accessing the web if configured.