I found a node for generating a random number. I’d like to use it to play a random playlist. I assume I’d need to use some sort of a lookup table but I’m not sure how to go about it. Suggestions, please?
Search "lookup" on this forum. It's been asked and solved many times.
One guy even wrote a contrib node...
Hi, I really wanted to write up and explain (one of many) ways you could achieve this but TBH, I am fairly hungover and found it easier just to knock up a demo (picture/flow worth a thousand words etc)...
[image]
[{"id":"911d97ae.52d498","type":"tab","label":"Flow 5","disabled":false,"info":""},{"id":"8a23298a.31ec48","type":"inject","z":"911d97ae.52d498","name":"Init pulse","topic":"","payload":"","payloadType":"bool","repeat":"","crontab":"","once":true,"onceDelay":0.1,"x":120,"y":60,"wires…
https://discourse.nodered.org/t/announce-node-red-contrib-map
1 Like