[arm-allstar] Hourly weather announcements
George
nj3h at yahoo.com
Thu Dec 6 22:50:31 EST 2018
Hi Doug,
Thank you for the steps to do this. A few questions.
1. crontab edited ok.2. looked at rpt.conf. I do not have a line similar to the one in your initial message. What I have looks like the following:
****************************************************************************
80=status,11 ; ID (local)
81=status,12 ; Time of Day (local)
; Say 24 hour time - change to your node
82=cmd,/usr/local/sbin/say24time.pl 49246
and further down
1=*81 *80# ; play time and voice ID
********************************************************************
So where exactly do I put the statement that is in the same format of *82 from your email?
3. If I wanted a 2 second delay at the start of the announcement how would I do that?
4. If I wanted to add "Redmond Oregon" after my call, how could I do that?
As always, Doug, thanks for the very prompt answers to questions. You and the others at Hamvoip (staff and users) are just fantastic. Regards,
George, NJ3H
Redmond, Oregon USADMR Node: 3141315Allstar Node: 49246Echolink Node NJ3H-L: 3135
From: Doug Crompton via ARM-allstar <arm-allstar at hamvoip.org>
To: ARM Allstar <arm-allstar at hamvoip.org>
Cc: Doug Crompton <wa3dsp at gmail.com>
Sent: Wednesday, December 5, 2018 1:57 PM
Subject: Re: [arm-allstar] Hourly weather announcements
George,
Quite easy. Edit your cron -
crontab -e
Carefully edit it to add your zip code -
00 0-23 * * * (source /usr/local/etc/allstar.env ; /usr/bin/nice -19
/usr/bin/perl /usr/local/sbin/saytime.pl 18954 $NODE1 > /dev/null)
The preceding line is all one line. You can see the 18954 which is my zip
code. In your line replace that with your zip code. Don't change anything
else.
Save it and it will report the time and weather condition at the top of the
hour as well as the time.
You also have the option of doing this at any time manually by typing
saytime.pl <zip> <node>
Or adding it to a function in rpt.conf as shown here. Stock code only has
the node not the zip. Edit rpt.conf and add the zip, restart asterisk and
*81 will also have the weather temp and condition.
81=cmd,/usr/local/sbin/saytime.pl 18954 42291
*73 Doug*
*WA3DSP*
*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
* <http://www.crompton.com/hamradio>*
On Wed, Dec 5, 2018 at 4:08 PM "George via ARM-allstar" <
arm-allstar at hamvoip.org> wrote:
> Greetings,
> I saw a message where Chris Zenchenko mentions he has the the temperature
> announced at the top of the hour in addition to the time.
> I would love to see a How-To to make this happen.
> Regards, George, NJ3H
> Redmond, Oregon USA
> DMR Node: 3141315
> Allstar Node: 49246
> Echolink Node NJ3H-L: 3135
> _______________________________________________
>
> 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
_______________________________________________
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