Thanks lumpinglade!
That sounds almost simple enought that I should be able to figure it out.![]()
@Desert_AIP: Try to connect from outside your network first. Some routers don't allow using the external IP address inside the home network. Apple's routers definitely do allow it though, if you have that.
@jharrell: I've added the button issue to the TODO, I'll have a look at it. Thanks for the feedback.
@Desert_AIP: Try to connect from outside your network first. Some routers don't allow using the external IP address inside the home network. Apple's routers definitely do allow it though, if you have that.
Thanks for the feedback.
Re low power server -- Mac mini is perfect, only 10W idle I believe. Runs HaikuHelper great![]()
var switchHistory = Array(); // Initialize array, put at top of script
function onUPBSwitch(switchP, unit) {
if(switchHistory[unit] == switchP) { // Process the second time the switch is pressed
parentUnit = controller.unitWithNumber(unit).parentUnit();
if(swtch == 1) { // On pressed again
if(parentUnit) parentUnit.on();
} else if(swtch == 0) { // Off pressed again
if(parentUnit) parentUnit.off();
}
switchHistory[unit] = null; // Clear since we just processed the event
} else {
switchHistory[unit] = switchP; // Store the first time the switch is pressed
}
}