First page Back Continue Last page Overview Graphics
What if devices could communicate?
and a little code:
if(time_now($Wake_Up – 0:20) && $Alarm_OK) {
$CoffeePot->set(ON);
}
if(time_now($Wake_Up) && $Alarm_OK) {
$AlarmClock->ramp(GENTLE);
$AlarmClock->set(ON);
}
Notes:
Some simple Perl code that could be used by Misterhouse. Of course this assumes that the correct modules have been written before hand. Such as the Mr. Coffee module and Alarm Clock modules. Once this has been written then making use of these modules is much easier.