node-red-contrib-limit-latest 0.1.0
A Node-RED node that limits message flow by keeping only the latest value.
node-red-contrib-limit-latest
A Node-RED node that limits message flow by keeping only the latest value.
Install
Run the following command in your Node-RED user directory (typically ~/.node-red):
npm install node-red-contrib-limit-latest
Or install via the Node-RED Palette Manager.
Usage
Add the limit-latest node to your flow. It appears under the function category.
The node throttles incoming messages using a trailing strategy:
- The first message always passes through immediately.
- Any messages arriving within the configured time window are buffered — each new message replaces the previous one.
- When the window expires, the latest buffered message is sent.
Configuration
| Setting | Description | Default |
|---|---|---|
| Limit | Number of time units per window | 5 |
| Unit | Second, Minute, Hour, or Day | Second |
A blue pending status dot is shown on the node while a message is buffered.
License
MIT