Forgive my stupidity, I'm a longtime Java/JS developer who is just getting feet wet with Haiku and HaikuHelper. Am *BEYOND* stoked about this.
I have an output configured on my OmniPro II that opens and closes an HVAC duct damper. I can access it (ie open or close it manually) just fine from Haiku on my iPhone. Super cool.
Now, what object and method am I missing that will give me an event that I can write further logic when that baffle triggers? Something like:
function onOutputOn(output) {
if(zone.number == 10 ) {// Match output by number
helper.sendNotification(controller, 'The baffle ' + zone.number + ' is opening.');
}
}
Thanks in advance.
I have an output configured on my OmniPro II that opens and closes an HVAC duct damper. I can access it (ie open or close it manually) just fine from Haiku on my iPhone. Super cool.
Now, what object and method am I missing that will give me an event that I can write further logic when that baffle triggers? Something like:
function onOutputOn(output) {
if(zone.number == 10 ) {// Match output by number
helper.sendNotification(controller, 'The baffle ' + zone.number + ' is opening.');
}
}
Thanks in advance.
