[arm-allstar] Hourly weather announcements
Doug Crompton
wa3dsp at gmail.com
Wed Dec 5 16:57:09 EST 2018
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
More information about the ARM-allstar
mailing list