#!/bin/bash
MINBIN=/usr/local/minerva/bin
ETCDIR=/usr/local/minerva/etc
VARLOG=/var/log/minerva

date +"%F %H:%M CMD $0 $*" >>$VARLOG/bearskin/`basename $0`


DEVICE=$1

$MINBIN/x10control default on `$ETCDIR/kettle.conf $DEVICE device` 
$MINBIN/monexec kettle on

sleep `$ETCDIR/kettle.conf $DEVICE time`

$MINBIN/announce $DEVICE The kettle has boiled

$MINBIN/x10control default off `$ETCDIR/kettle.conf $DEVICE device` 
$MINBIN/monexec kettle off


