Giter VIP home page Giter VIP logo

node-red-contrib-device-stats's Introduction

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.

node-red-contrib-device-stats's People

Contributors

dbaba avatar doppins-bot avatar sauloal avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

node-red-contrib-device-stats's Issues

What are the units?

Hi!

What are the units for the different stats? RX/TX for example? I guess uptime is in seconds. Defining the units would be helpful!

Add Windows support

The node currently supports only Linux and MacOs.

Supporting windows platform would be a plus for these users.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.