From: Bruce W. <wi...@ch...> - 2005-08-05 03:51:59
|
Rick Steeves wrote: > > weather_monitor.pl is always talking when I don't want it to, so I've > been updating it so that it adds a conditional for MH being mute. Would > it make sense to add this to the base code? > > if ($Save{mode} ne 'mute') { speak "It rained $rain inches in the past > $minutes minutes" if $rain; } Do you have some sort of distributed speech setup? The speech coming from the main mh box should already honor the mode flag and not speak text if it is set to mute with this line in bin/mh, in the speak function: # Do not speak muted or offline return if $mode and ($mode eq 'mute' or $mode eq 'offline') and !$parms{to_file}; Bruce |