Im having trouble to display data every 5 seconds interval after using the switch node. But when i debug the node before it reaches the switch node, the output shows what its supposed to every 5 seconds. Hope you guys can help me with this. Below is my flow;
[{"id":"b4f66c67.11694","type":"inject","z":"33298230.b1694e","name":"","topic":"","payload":"StringData","payloadType":"global","repeat":"5","crontab":"","once":false,"onceDelay":0.1,"x":170,"y":120,"wires":[["b5a2f96d.2d98b8"]]},{"id":"4a8bb6e5.0628e8","type":"debug","z":"33298230.b1694e","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":410,"y":60,"wires":[]},{"id":"fee2783.6487988","type":"inject","z":"33298230.b1694e","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":140,"y":180,"wires":[["b772f531.8eeb48"]]},{"id":"b772f531.8eeb48","type":"function","z":"33298230.b1694e","name":"","func":"global.set(\"StringData\",\"1 2 3 4 5 \");\nreturn msg;","outputs":1,"noerr":0,"x":340,"y":180,"wires":[[]]},{"id":"b5a2f96d.2d98b8","type":"split","z":"33298230.b1694e","name":"","splt":" ","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":true,"addname":"","x":410,"y":120,"wires":[["4a8bb6e5.0628e8","a2538e41.8e82c"]]},{"id":"a2538e41.8e82c","type":"change","z":"33298230.b1694e","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"$number(msg.payload)\t","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":600,"y":140,"wires":[["7600ed7b.9c0a34"]]},{"id":"7600ed7b.9c0a34","type":"switch","z":"33298230.b1694e","name":"","property":"parts.index","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"str"},{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"2","vt":"str"},{"t":"eq","v":"3","vt":"str"},{"t":"eq","v":"4","vt":"str"}],"checkall":"true","repair":false,"outputs":5,"x":720,"y":240,"wires":[["e0ae2ad8.7654b8"],["420444a4.20cf0c"],["cda710de.4cb8b"],["9901502d.ab861"],["f9288d5b.24a72"]]},{"id":"e0ae2ad8.7654b8","type":"debug","z":"33298230.b1694e","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":880,"y":180,"wires":[]},{"id":"420444a4.20cf0c","type":"debug","z":"33298230.b1694e","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":880,"y":220,"wires":[]},{"id":"cda710de.4cb8b","type":"debug","z":"33298230.b1694e","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":890,"y":260,"wires":[]},{"id":"9901502d.ab861","type":"debug","z":"33298230.b1694e","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":890,"y":300,"wires":[]},{"id":"f9288d5b.24a72","type":"debug","z":"33298230.b1694e","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":890,"y":340,"wires":[]}]