Block tracker ON / OFF signal
Hello,
I am trying to achieve a simple task like using the blob tracker to trigger a column : when a blob is present, trigger column #2 and when the blob disappear trigger column #1.
I can't figure out how to achieve this. I tried the blob tracker radius option but can't figure out how to tell millumin to trigger a chosen column based on presence or not.
Any idea ?
Comments
Hello @Martial,
There is no interaction in the blob-tracker to tell if a blob appeared or disappeared.
But this could be achieved with a simple script :
lastActivity = 0 presence = false onBlobTrackerEvent = function(event) { lastActivity = Date.now() } function check() { if( presence == false && Date.now()-lastActivity < 100 ) { presence = true log("someone has arrived") } else if( presence == true && 100 < Date.now()-lastActivity ) { presence = false log("somene has left") } } setInterval(check, 50)Best. Philippe