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-device-stats

v1.1.2

Published

Node-RED nodes for Device Statistics

Downloads

10,490

Readme

Device Statistics Node-RED node

GitHub release master Build Status License MIT

Linux and MacOS only

This node creates statistics information according to the node settings on the editor. The statistics will be embedded into msg.payload and emitted to the output port.

This node emits the statistics information when a msg payload arrives via its input port. Otherwise, the node doesn't do anything.

Here is a typical example using this node. This flow will emit the statistics information every 3 seconds.

Flow Example

The left Inject node generates a message payload every 3 seconds. Its settings are as follows.

Inject Node

This Device Statistics node doesn't care of the incoming message payload content but just use it as a trigger to emit the statistics information.

You can configure the content of the statistics information in the following dialog.

Device Statistics Node

When this Device Statistics node emit the stats info, you can see the following status indicator with dup status text.

Status Indicator

Installation

cd ~/.node-red
npm install node-red-contrib-device-stats

Prior to building

$ npm install

Build

$ npm run build

will generate ES5 js files.

Test

$ npm run test

Shrinkwrap

$ rm -fr node_modules; \
  rm -f npm-shrinkwrap.json; \
  nodenv local 8.11.1; \
  npm install;npm run freeze

Revision History

  • 1.1.2

    • Fix an issue where shrinkwrap file contains devDependencies
  • 1.1.1

    • Fix dependencies
  • 1.1.0

    • Merge #13 to fix "device stats not working with HTTP" issue
    • Replace Grunt with gulp
    • Upgrade dependencies
  • 1.0.3

    • Remove redundant dependency
  • 1.0.2

    • Fix an issue where message resources aren't shown properly
  • 1.0.1

    • Fix deployment error
  • 1.0.0

    • Initial public release

Copyright and License

The project is released under MIT License. See LICENSE for detail.