Hello, i have a flow that listen for tweets and controlling servo. Do you please give me suggestions what can i need to do to prevent when many tweets are send at the same time.
May be i need to put delay node after twitter node or something else.
This is my flow:
[{"id":"ce55bfb7.05939","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"207c7003.6e47f","type":"debug","z":"ce55bfb7.05939","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":770,"y":120,"wires":[]},{"id":"726ce37b.8a26cc","type":"change","z":"ce55bfb7.05939","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":500,"y":100,"wires":[["30f596c6.9963ba"]]},{"id":"30f596c6.9963ba","type":"change","z":"ce55bfb7.05939","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"100","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":400,"y":180,"wires":[["207c7003.6e47f","1e43bcba.978cc3","cf03ffee.a3998"]]},{"id":"1e43bcba.978cc3","type":"pi-gpiod out","z":"ce55bfb7.05939","name":"","host":"localhost","port":8888,"pin":"2","set":"","level":"0","out":"ser","sermin":"1000","sermax":"2000","x":900,"y":240,"wires":[]},{"id":"d740632b.1c50b","type":"function","z":"ce55bfb7.05939","name":"","func":"setTimeout(function(){\n msg['payload'] = null;\n node.send(msg);\n}, 1000);\n\nreturn msg;\n\n","outputs":1,"noerr":0,"x":730,"y":360,"wires":[["1e43bcba.978cc3","207c7003.6e47f"]]},{"id":"cf03ffee.a3998","type":"delay","z":"ce55bfb7.05939","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":460,"y":260,"wires":[["9251b28a.54fd6"]]},{"id":"9251b28a.54fd6","type":"change","z":"ce55bfb7.05939","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"30","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":320,"wires":[["1e43bcba.978cc3","207c7003.6e47f","d740632b.1c50b"]]},{"id":"3ad28896.330098","type":"twitter in","z":"ce55bfb7.05939","twitter":"","tags":"testdog15","user":"false","name":"","inputs":0,"x":190,"y":100,"wires":[["726ce37b.8a26cc"]]}]