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

@hotnipi/node-red-dashboard-2-ui-edgewise-meter

v0.3.4

Published

An edgewise meter gauge node for @flowfuse/node-red-dashboard

Downloads

757

Readme

node-red-dashboard-2-ui-edgewise-meter

A linear style gauge for Node-RED Dashboard 2.0.

Node-RED gauge edgewise meter image

Install

The usual method of installing is to use Manage Palette in the node red editor and search for @hotnipi/node-red-dashboard-2-ui-edgewise-meter and install it.

Using npm directly, cd into your node red user directory (usually .node-red in your home folder) and from there run

npm install @hotnipi/node-red-dashboard-2-ui-edgewise-meter

Inputs

Pass the value in msg.payload. This may be a Number or a string that represents a number.

Certain configuration values can be overridden dynamically be passing in an object in msg.ui_update. See Dynamic Properties below.

Configuration

  • Name - The name of the node.
  • Group - The display group in which to show the gauge.
  • Size - The size of the gauge on the dashboard.
  • Label - A text label that is shown above the gauge's display.
  • Limits Min and Max - These specify the range of the gauge. Values are mandatory.
  • Digits - This defines count of the digits on gauge display. Note that not every combination of Min, Max and Digits count can satisfy even spreading of the digits. Change any of those to get positive result. The Alternate sizes option makes every second digit smaller.
  • Display size - The display size affects gap between digits. If size is too small, the digits can't be rendered to the correct positions and the display shows error on runtime.
  • Sectors - This defines a set of coloured sectors. Each row defines the start value of the sector and the colour to be used. The sectors must be defined in increasing start value order, so the colour defined in one row applies up to the value defined in the next row, or the end of the scale if it is the last one. To make a gap between colored sections define the sector to be transparent by ticking the transparent option.
  • Exact value - Mini display with actual value can be shown above main display. Choose to show it on mouse hover or permanently visble or to not show at all.
  • Unit - The unit of the measurement can be shown inside the mini display. Unit can be any string.
  • Appearance - The Mini display has two size options and several placement options. Follow the pictogram to choose the sizing and placement.
  • Animation - The main display moves in x-axis. Choose animation type or turn off aminations completely.
  • Dark mode - The appearance of the display can be adjusted based on background of the group. Use dark mode if you have dark group background.
  • Logo - Small print on the display can be changed to any string.
  • Class - A CSS Class that will be applied to the gauge to allow override of display element style.

Dynamic Properties

Certain properties can be overridden by passing an object in msg.ui_update. The name of the item in msg.ui_update is generally the name of the propety being overridden. For example, the Sectors definitions may be changed by passing in array in msg.ui_update.sectors.

  • Label - If msg.ui_update.label is present and contains a string then that string will be displayed in the label field in the gauge.
  • Min - If msg.ui_update.min is present and contains a number then min limit of the gauge will be changed.
  • Max - If msg.ui_update.max is present and contains a number then max limit of the gauge will be changed.
  • Count - If msg.ui_update.count is present and contains a number then count of the digits of the gauge will be changed. The display recalculates positions so you may need to change also the Min or Max to get correct results
  • Display size - If msg.ui_update.displaysize is present and contains a number then display size will be changed.
  • Sectors - If msg.ui_update.sectors contains an array then that will be used to override the current sector data. The array must contain properties containing the sector start value and the colour. It must be in order of increasing start value. For example, the array might consist of [{ "start": 0, "color": "green"}, { "start": 5, "color": "skyblue"}]

CSS overrides

Display elements my be overriden in the normal way using a ui-template node. In particular:

The color of the digits

.myclass .hotnipi-ewm-num{
    color:red !important ;
}