#!/bin/bash

MINBIN=/usr/local/minerva/bin
MINMEDIA=/usr/local/minerva/media
WAVPLAY=$MINBIN/wavplayer

DEVICE=$1

if [ "$DEVICE" == "" ]; then
   DEVICE=default
fi

#
# This just ensures the user knows we're preparing the status report
#
$MINBIN/announce $DEVICE Preparing status report

#
# basic date and time
#
STATUS="Report for "
STATUS=$STATUS`$MINBIN/hdate`;
STATUS=$STATUS". the time is ";
STATUS=$STATUS`$MINBIN/htime`;


STATUS=$STATUS`$MINBIN/weatherstatus`
STATUS=$STATUS`$MINBIN/netstatus`


#
# Media status report
#
STATUS=$STATUS`$MINBIN/mstatus $DEVICE`

#
# General life stuff
#
STATUS=$STATUS`$MINBIN/lstatus`


#
# Now just say it!
#
$MINBIN/announce $DEVICE $STATUS

#
# end
#
$WAVPLAY $DEVICE play $MINMEDIA/wav/chime.wav

