node-red-contrib-device-stats provides a Node-RED node designed to capture and emit various operating system statistics within a Node-RED flow. It collects data such as CPU usage, memory consumption, network statistics, and system load average, embedding this information into `msg.payload` for further processing. The current stable version is 1.1.2. Releases appear to be infrequent, primarily addressing bug fixes and dependency updates, with notable changes like migrating build systems (Grunt to Gulp) in version 1.1.0. A key differentiator is its seamless integration into Node-RED's visual programming paradigm, allowing users to trigger statistic collection based on incoming messages. However, it is explicitly limited to Linux and macOS environments, making it unsuitable for Windows deployments. The node requires an incoming message to its input port to trigger data collection, it does not poll automatically.
npm install node-red-contrib-device-statsVerified import paths — ran on the pinned version, not inferred.
Installs the Node-RED package and demonstrates a basic flow to capture system statistics every 3 seconds, displaying them in the debug sidebar.
Ensure the Node-RED environment where this package is installed and run is either Linux or MacOS.
Connect an 'Inject' node (configured for periodic output) or another message-generating node to the input of the 'Device Statistics' node to initiate data collection.
Upgrade to version 1.1.0 or newer to resolve HTTP-related statistics collection problems. Run `npm install node-red-contrib-device-stats@latest` in your Node-RED user directory (`~/.node-red`).
If you need to preserve original `msg.payload` content, move it to a different message property (e.g., `msg.originalPayload`) before the message reaches the 'Device Statistics' node.
Upgrade `node-red-contrib-device-stats` to version 1.1.0 or later: `cd ~/.node-red && npm install node-red-contrib-device-stats@latest`.
Ensure you are in your Node-RED user directory (typically `~/.node-red`), then run `npm install node-red-contrib-device-stats`. After installation, restart Node-RED (e.g., `node-red-stop && node-red`).
Verify that your Node-RED instance is running on Linux or MacOS. Check the node's configuration to ensure that the selected statistics are applicable to your operating system.
No dependency data recorded yet.