twitter countdown

ealry play

[{"id":"13e0299c.f02aa6","type":"twitter in","z":"f7ed69a5.b386c8","twitter":"","tags":"#twittercountdown #1hour, #30min","user":"false","name":"get countdown","topic":"tweets","x":80,"y":240,"wires":[["499fa804.f3e528"]]},{"id":"499fa804.f3e528","type":"switch","z":"f7ed69a5.b386c8","name":"time ","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"#twittercountdown #1hour","vt":"str"},{"t":"cont","v":"#twittercountdown #30min","vt":"str"},{"t":"cont","v":"#twittercountdown #15min","vt":"str"}],"checkall":"true","outputs":3,"x":250,"y":240,"wires":[["f9d252bb.08c0b"],["241ef372.3840dc"],["47afe98c.f349f8"]]},{"id":"f24c2a9b.6007b8","type":"twitter out","z":"f7ed69a5.b386c8","twitter":"","name":"Tweet","x":1150,"y":400,"wires":[]},{"id":"241ef372.3840dc","type":"delay","z":"f7ed69a5.b386c8","name":"delay 15","pauseType":"delay","timeout":"15","timeoutUnits":"minutes","rate":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":460,"y":400,"wires":[["9e926683.934948"]]},{"id":"e7b53da8.50e23","type":"change","z":"f7ed69a5.b386c8","name":"newpayload","rules":[{"t":"set","p":"payload","pt":"msg","to":"newpayload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":400,"wires":[["bdea703d.9c667"]]},{"id":"bdea703d.9c667","type":"change","z":"f7ed69a5.b386c8","name":"newpayload","rules":[{"t":"set","p":"newpayload","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":950,"y":400,"wires":[["f24c2a9b.6007b8","5097e793.87a148"]]},{"id":"9e926683.934948","type":"function","z":"f7ed69a5.b386c8","name":"test new mess","func":"msg.newpayload = \"#twittercountdown #15minleft\";(msg.payload[0])\nreturn msg","outputs":1,"noerr":0,"x":620,"y":400,"wires":[["e7b53da8.50e23"]]},{"id":"f9d252bb.08c0b","type":"delay","z":"f7ed69a5.b386c8","name":"delay 30","pauseType":"delay","timeout":"30","timeoutUnits":"minutes","rate":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":460,"y":300,"wires":[["bcbe40bb.cda0a"]]},{"id":"bcbe40bb.cda0a","type":"function","z":"f7ed69a5.b386c8","name":"test new mess","func":"msg.newpayload = \"#twittercountdown #30minleft\";(msg.payload[0])\nreturn msg","outputs":1,"noerr":0,"x":620,"y":300,"wires":[["1d51144c.93a6ec"]]},{"id":"1d51144c.93a6ec","type":"change","z":"f7ed69a5.b386c8","name":"newpayload","rules":[{"t":"set","p":"payload","pt":"msg","to":"newpayload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":300,"wires":[["f4823ac5.ccaaa8"]]},{"id":"f4823ac5.ccaaa8","type":"change","z":"f7ed69a5.b386c8","name":"newpayload","rules":[{"t":"set","p":"newpayload","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":950,"y":300,"wires":[["241ef372.3840dc","8cd42f63.c93c4"]]},{"id":"8cd42f63.c93c4","type":"twitter out","z":"f7ed69a5.b386c8","twitter":"","name":"Tweet","x":1150,"y":300,"wires":[]},{"id":"5097e793.87a148","type":"delay","z":"f7ed69a5.b386c8","name":"delay 5","pauseType":"delay","timeout":"5","timeoutUnits":"minutes","rate":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":460,"y":600,"wires":[["b697bd4.5d7854"]]},{"id":"b697bd4.5d7854","type":"function","z":"f7ed69a5.b386c8","name":"test new mess","func":"msg.newpayload = \"#twittercountdown #5minleft\";(msg.payload[0])\nreturn msg","outputs":1,"noerr":0,"x":620,"y":600,"wires":[["12d99ad0.8d6e85"]]},{"id":"12d99ad0.8d6e85","type":"change","z":"f7ed69a5.b386c8","name":"newpayload","rules":[{"t":"set","p":"payload","pt":"msg","to":"newpayload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":600,"wires":[["7a4faf2b.6b3bf"]]},{"id":"7a4faf2b.6b3bf","type":"change","z":"f7ed69a5.b386c8","name":"newpayload","rules":[{"t":"set","p":"newpayload","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":950,"y":600,"wires":[["be9f3b49.f1e468"]]},{"id":"be9f3b49.f1e468","type":"twitter out","z":"f7ed69a5.b386c8","twitter":"","name":"Tweet","x":1150,"y":600,"wires":[]},{"id":"47afe98c.f349f8","type":"delay","z":"f7ed69a5.b386c8","name":"delay 10","pauseType":"delay","timeout":"10","timeoutUnits":"minutes","rate":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":460,"y":500,"wires":[["f47a74a7.7f6a28"]]},{"id":"f47a74a7.7f6a28","type":"function","z":"f7ed69a5.b386c8","name":"test new mess","func":"msg.newpayload = \"#twittercountdown #10minleft\";(msg.payload[0])\nreturn msg","outputs":1,"noerr":0,"x":620,"y":500,"wires":[["a25027e6.c048d8"]]},{"id":"a25027e6.c048d8","type":"change","z":"f7ed69a5.b386c8","name":"newpayload","rules":[{"t":"set","p":"payload","pt":"msg","to":"newpayload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":500,"wires":[["3c2490d9.f5d3f"]]},{"id":"3c2490d9.f5d3f","type":"change","z":"f7ed69a5.b386c8","name":"newpayload","rules":[{"t":"set","p":"newpayload","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":950,"y":500,"wires":[["8a960b09.7e5f88","5097e793.87a148"]]},{"id":"8a960b09.7e5f88","type":"twitter out","z":"f7ed69a5.b386c8","twitter":"","name":"Tweet","x":1150,"y":500,"wires":[]}]
ddechamb

Flow Info

created 1 year, 3 months ago

Node Types

Core
  • change (x8)
  • delay (x4)
  • function (x4)
  • switch (x1)
  • twitter in (x1)
  • twitter out (x4)

Tags

Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option