[arm-allstar] AutoSky alerts
Doug Crompton
wa3dsp at gmail.com
Wed Aug 28 13:15:45 EDT 2019
Vendel,
Here is a script that might get you started..... You can modify as needed
- times are up to you and add your node.
#!/bin/bash
while :
do
# find size of file if less than 1000 no alert
fsize=$(wc -c /tmp/AUTOSKY/WXA/wx-tail.wav | awk '{print $1}')
echo $fsize
if [ $fsize -lt 1000 ]; then
# Check every 10 seconds
sleep 10
continue
else
# if > 1000 play alert every minute - change <node> to number!
asterisk -rx "rpt localplay <node> /tmp/AUTOSKY/WXA/wx-tail"
sleep 60
fi
done
*73 Doug*
*WA3DSP*
*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
On Wed, Aug 28, 2019 at 12:49 PM "Vendel via ARM-allstar" <
arm-allstar at hamvoip.org> wrote:
>
> Hi, I’d like to add AutoSky to my node/ controller but have it announce
> the weather alerts as they come in rather than as a tail message when
> someone uses the repeater. Can this be done? Thanks in advance, Vendel/
> K2DSI.
> Sent from Mail for Windows 10
>
>
>
> ---
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
> _______________________________________________
>
> ARM-allstar mailing list
> ARM-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3 web page - http://hamvoip.org
More information about the ARM-allstar
mailing list