Thanks, I’ll have a play with this over the next day or 2 and see what I can come up with.
Another question I had was how many instances of a script can the NAC handle. I understand it’s the same processor as the LM but may be using resources differently. My current solution is using a while loop that lasts for 15 or so minutes, the loop is just a timer, it loops every second and checks the current time, so not a heavy process, is there a limitation to the number of instances that can run? There is the potential for up to 30 instances to be running at any given time. I can increase the sleep time if that would help reduce the strain on the processor? The loop breaks if the sensor level changes from 0 to 255 or the timer expires.
Another question I had was how many instances of a script can the NAC handle. I understand it’s the same processor as the LM but may be using resources differently. My current solution is using a while loop that lasts for 15 or so minutes, the loop is just a timer, it loops every second and checks the current time, so not a heavy process, is there a limitation to the number of instances that can run? There is the potential for up to 30 instances to be running at any given time. I can increase the sleep time if that would help reduce the strain on the processor? The loop breaks if the sensor level changes from 0 to 255 or the timer expires.