#!/bin/bash

MINBIN=/usr/local/minerva/bin
SAY=$MINBIN/say
MEDIADIR=/usr/local/minerva/media
WAVPLAY=$MINBIN/wavplayer
VARLOG=/var/log/minerva

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

# usage: <device> <duration of timer> <timer id>

DEVICE=$1

$WAVPLAY $DEVICE splay $MEDIADIR/wav/chime.wav
$SAY default The $3 minute timer has elapsed. Timer I D $2 lasted $3 minutes

$MINBIN/monexec alarm off

