node-red-contrib-ring-buffer 0.10.0

a ring buffer node for node-red

npm install node-red-contrib-ring-buffer

node-red-contrib-ring-buffer

This is a simple ring buffer node for node-red.

Changelog

  • 0.10.0
    • added Separate Buffer per Topic

Testing Example

[{"id":"a40c388a.150168","type":"ring-buffer","z":"87d612c1.f027f","name":"","capacity":"5","order":"old-to-new","sendOnlyIfFull":false,"pushAfterClear":true,"extra":true,"perTopic":true,"x":380,"y":260,"wires":[["9a720d54.6dd63"]]},{"id":"1cf7267f.3d44ba","type":"inject","z":"87d612c1.f027f","name":"","topic":"a","payload":"1","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":60,"wires":[["a40c388a.150168"]]},{"id":"25c94ad0.895e36","type":"inject","z":"87d612c1.f027f","name":"","topic":"a","payload":"2","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":100,"wires":[["a40c388a.150168"]]},{"id":"52aaf547.2c61fc","type":"inject","z":"87d612c1.f027f","name":"","topic":"a","payload":"3","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":140,"wires":[["a40c388a.150168"]]},{"id":"fbd1d7ed.23ae68","type":"inject","z":"87d612c1.f027f","name":"","topic":"b","payload":"1","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":220,"wires":[["a40c388a.150168"]]},{"id":"e02cb5cb.286ed8","type":"inject","z":"87d612c1.f027f","name":"","topic":"b","payload":"2","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":260,"wires":[["a40c388a.150168"]]},{"id":"56b60c9b.4010e4","type":"inject","z":"87d612c1.f027f","name":"","topic":"b","payload":"3","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":300,"wires":[["a40c388a.150168"]]},{"id":"b594f7c.7c01908","type":"inject","z":"87d612c1.f027f","name":"","topic":"c","payload":"1","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":380,"wires":[["a40c388a.150168"]]},{"id":"aa3b4fef.fe0aa","type":"inject","z":"87d612c1.f027f","name":"","topic":"c","payload":"2","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":420,"wires":[["a40c388a.150168"]]},{"id":"6deb3599.a4dfec","type":"inject","z":"87d612c1.f027f","name":"","topic":"c","payload":"3","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":460,"wires":[["a40c388a.150168"]]},{"id":"9a720d54.6dd63","type":"debug","z":"87d612c1.f027f","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":510,"y":260,"wires":[]},{"id":"2ba606ed.ef0a5a","type":"inject","z":"87d612c1.f027f","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":320,"y":80,"wires":[["a45e82b0.f41db"]]},{"id":"54693450.0d22dc","type":"inject","z":"87d612c1.f027f","name":"","topic":"a","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":330,"y":120,"wires":[["81bf1415.22d788"]]},{"id":"a45e82b0.f41db","type":"change","z":"87d612c1.f027f","name":"","rules":[{"t":"set","p":"clearAll","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":480,"y":80,"wires":[["a40c388a.150168"]]},{"id":"81bf1415.22d788","type":"change","z":"87d612c1.f027f","name":"","rules":[{"t":"set","p":"clear","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":120,"wires":[["a40c388a.150168"]]},{"id":"329442f4.3dc97e","type":"inject","z":"87d612c1.f027f","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":120,"y":540,"wires":[["790e5c13.850444"]]},{"id":"790e5c13.850444","type":"function","z":"87d612c1.f027f","name":"","func":"msg.topic = Math.random();\nreturn msg;","outputs":1,"noerr":0,"x":250,"y":540,"wires":[["a40c388a.150168"]]}]

Node Info

Version: 0.10.0
Updated 5 years, 11 months ago
License: MIT
Rating: not yet rated

Categories

Actions

Rate:

Downloads

11 in the last week

Nodes

  • ring-buffer

Keywords

  • node-red
  • ring buffer
  • circular buffer
  • buffer
  • log
  • history

Maintainers