[arm-allstar] wx_header

Doug Crompton wa3dsp at gmail.com
Mon Dec 2 14:37:56 EST 2019


Tim,

   The top of the hour time and, if defined, weather text is in
/usr/local/sbin/saytime.pl   This is a perl script. If you understand
scripting you should be able to find the place in the file to insert the
text. An easier way if you just want a prefix or suffix to what saytime.pl
is voicing you could use the following to the crontab. saytime.pl is not a
protected script so if you change it you might want to call it something
else and change the name called in the crontab to match.

For a prefix -

00 0-23 * * * (source /usr/local/etc/allstar.env ; /usr/bin/asterisk -rx
"rpt localplay $NODE1 /etc/asterisk/local/prefix_message" ; /usr/bin/nice
-19 /usr/bin/perl /usr/local/sbin/saytime.pl ZIP $NODE1 > /dev/null)

For a suffix -

00 0-23 * * * (source /usr/local/etc/allstar.env ; usr/bin/nice -19
/usr/bin/perl /usr/local/sbin/saytime.pl ZIP $NODE1 > /dev/null) ; ;
/usr/bin/asterisk -rx "rpt localplay $NODE1
/etc/asterisk/local/suffix_message"

These are all on one line. Use crontab -e   to edit.


*73 Doug*

*WA3DSP*

*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*








On Mon, Dec 2, 2019 at 1:43 PM "Tim Webb via ARM-allstar" <
arm-allstar at hamvoip.org> wrote:

> I have searched the archives and wiki and can't find the answer so I am
> bringing it to the brain trust in hopes of some help.I am running the
> latest updated HamVoip image. I am using the top of the hour ID with wx
> conditions, that part is working great. I have recorded my county name and
> converted to a .gsm format. This is stored as
> /etc/asterisk/local/wx_header.gsm. I can't figure out how to get the header
> to play before the conditions. Is there a file I need to edit to insert the
> wx_header.gsm? Thanks for the help and the group.
>
> 73
> Tim Webb - KK4WH(606)909-2094
> _______________________________________________
>
> 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/4 web page - http://hamvoip.org


More information about the ARM-allstar mailing list