[arm-allstar] New playnews script

Richard Bateman richard at batemansr.us
Mon Sep 25 12:11:37 EST 2017


Wouldn't I need to also have it download the news ahead of time? This
is a mountain-top node, so while it does have internet access it's not
super fast.

Richard

On Mon, Sep 25, 2017 at 10:34 AM, "Doug Crompton via arm-allstar"
<arm-allstar at hamvoip.org> wrote:
> Richard,
>
>  You could make a script that executed the play NOW - it would look like
> this-
>
> #!/bin/bash
>
> /etc/asterisk/local/playnews/playnews-0.11 ARN|ARRL NOW <node> L|G
>
> Of course just ARRL or ARN and <node> just the node number and L for local
> play G for global.
>
> This would be called by a function command in rpt.conf. Assuming the above
> script  was in /etc/asterisk/local and the name was news.sh -
>
> 850=cmd,/etc/asterisk/local/news.sh
>
> Then *850 would play the news
>
> Preferably you also might be able to do it this way skipping the above
> script. I think it would work but have not tested.
>
> 850=/etc/asterisk/local/playnews/playnews-0.11 ARN|ARRL NOW <node> L|G
>
> Then to be more specific you could have one for ARRL and one for ARN. Lets
> assume global play and node 40000.
>
> 850=/etc/asterisk/local/playnews/playnews-0.11 ARN NOW 40000 G
> 851=/etc/asterisk/local/playnews/playnews-0.11 ARRL NOW 40000 G
>
> So *850 would play ARN and *851 ARN both globaly
>
> BUT very important you would need to modify the playnews script commenting
> one line shown below. Otherwise it would hang waiting for your response.
>
> # wait for start time
> echo "Waiting for start time"
> while [ $(date +%H:%M) != $TIME ]; do sleep 1; done
>
> else
>
> echo "$NEWSTYPE news will start $TIME and use $MODE $MODETYPE mode on node
> - $NODE"
> echo -n "Press any key to start news..."
> #read -n 1     <<<<< this line commented with #
>
> fi
>
>
> Also the setup time takes up to a minute so you will not get an immediate
> response from the DTMF command, WAIT for it to start! Also once started you
> will have no way of stopping it using DTMF. It will play through the entire
> file.
>
>
> *73 Doug*
>
> *WA3DSP*
>
> *http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
>
>
>
> On Mon, Sep 25, 2017 at 1:57 AM, "Richard Bateman via arm-allstar" <
> arm-allstar at hamvoip.org> wrote:
>
>> I've been looking at using this script; any suggestions for how it
>> could be easily adapted to automatically download but only play on
>> demand, e.g. when a DTMF command is sent?
>>
>> Richard
>>
>> On Tue, Sep 12, 2017 at 12:18 AM, "Bob Roszkowski via arm-allstar"
>> <arm-allstar at hamvoip.org> wrote:
>> > Understood.  If I can be of any help let me know.  I have the ARRLs ear
>> > right now.  Just trying to help.
>> >
>> >
>> > Sincerely,
>> >
>> > boB - W5EVH
>> > www.w5evh.org
>> > www.SouthTexasLinkSystem.com
>> > AllStar 28640 - IRLP 9457 - EchoLink NV5TX-L (4911)
>> >
>> > "The best number is 73. Why? 73 is the 21st prime number. Its mirror (37)
>> > is the 12th and its mirror (21) is the product of multiplying, 7 and 3.
>> ...
>> > In binary, 73 is a palindrome, 1001001 which backwards is 1001001."
>> > -Dr. Sheldon Cooper, (Jim Parsons), "Big Bang Theory"
>> >
>> > On Mon, Sep 11, 2017 at 9:47 PM, "Doug Crompton via arm-allstar" <
>> > arm-allstar at hamvoip.org> wrote:
>> >
>> >> Bob,
>> >>
>> >>  If you saw my last message on here you will see why the current naming
>> >> convention is a good thing. It dates the files. That is good because the
>> >> ARRL takes off on holidays. This last Friday was their holiday. It
>> usually
>> >> is on the Friday before but this one they did it the week after. When
>> this
>> >> happens the script looks for the new date and does not find a file and
>> >> exits. This is a good thing otherwise it would be playing old files over
>> >> again. Personally I like the current method. It is easy to create the
>> file
>> >> name as long as it is constant and efficiency is not a factor.
>> >>
>> >>
>> >> *73 Doug*
>> >>
>> >> *WA3DSP*
>> >>
>> >> *http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
>> >>
>> >>
>> >> On Mon, Sep 11, 2017 at 6:23 PM, "Bob Roszkowski via arm-allstar" <
>> >> arm-allstar at hamvoip.org> wrote:
>> >>
>> >> > Ok, I just got off the phone with Tom Gallagher.  I explained the
>> issue
>> >> and
>> >> > agreed to work out what ever was needed.  I feel the easiest was for
>> them
>> >> > to make a separate audio file arrlnews.mp3 to be overwritten every
>> week
>> >> > with the latest news.  Just like newsline.  That way, things would be
>> >> much
>> >> > simpler and the scrips would be more efficient.
>> >> >
>> >> > I'll let you know when I have some information.
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > Sincerely,
>> >> >
>> >> > boB - W5EVH
>> >> > www.w5evh.org
>> >> > www.SouthTexasLinkSystem.com
>> >> > AllStar 28640 - IRLP 9457 - EchoLink NV5TX-L (4911)
>> >> >
>> >> > "The best number is 73. Why? 73 is the 21st prime number. Its mirror
>> (37)
>> >> > is the 12th and its mirror (21) is the product of multiplying, 7 and
>> 3.
>> >> ...
>> >> > In binary, 73 is a palindrome, 1001001 which backwards is 1001001."
>> >> > -Dr. Sheldon Cooper, (Jim Parsons), "Big Bang Theory"
>> >> >
>> >> > On Mon, Sep 11, 2017 at 4:22 PM, "Doug Crompton via arm-allstar" <
>> >> > arm-allstar at hamvoip.org> wrote:
>> >> >
>> >> > > Bob,
>> >> > >
>> >> > >  There is nothing wrong with their file naming. The script in
>> playnews
>> >> > > works fine. The problem is when they change things and are not
>> >> > consistent.
>> >> > > I got a note back from Steve Ford at ARRL that they now will be
>> >> > consistent
>> >> > > as it is now.
>> >> > >
>> >> > >
>> >> > > *73 Doug*
>> >> > >
>> >> > > *WA3DSP*
>> >> > >
>> >> > > *http://www.crompton.com/hamradio <http://www.crompton.com/hamradio
>> >*
>> >> > >
>> >> > >
>> >> > > On Mon, Sep 11, 2017 at 4:31 PM, "Bob Roszkowski via arm-allstar" <
>> >> > > arm-allstar at hamvoip.org> wrote:
>> >> > >
>> >> > > > ok, on another note, I am working with the CEO and Pres of ARRL to
>> >> get
>> >> > > the
>> >> > > > file naming issue resolved.  Working on a format like Newsline.
>> Ill
>> >> > let
>> >> > > > you know how it goes.
>> >> > > >
>> >> > > >
>> >> > > > Sincerely,
>> >> > > >
>> >> > > > boB - W5EVH
>> >> > > > www.w5evh.org
>> >> > > > www.SouthTexasLinkSystem.com
>> >> > > > AllStar 28640 - IRLP 9457 - EchoLink NV5TX-L (4911)
>> >> > > >
>> >> > > > "The best number is 73. Why? 73 is the 21st prime number. Its
>> mirror
>> >> > (37)
>> >> > > > is the 12th and its mirror (21) is the product of multiplying, 7
>> and
>> >> 3.
>> >> > > ...
>> >> > > > In binary, 73 is a palindrome, 1001001 which backwards is
>> 1001001."
>> >> > > > -Dr. Sheldon Cooper, (Jim Parsons), "Big Bang Theory"
>> >> > > >
>> >> > > > On Mon, Sep 11, 2017 at 9:07 AM, "Doug Crompton via arm-allstar" <
>> >> > > > arm-allstar at hamvoip.org> wrote:
>> >> > > >
>> >> > > > > Bob,
>> >> > > > >
>> >> > > > >   No mainly because it would break Allstar and most widely
>> >> connected
>> >> > > > > systems due to timeouts. The ARRL news runs about 20 minutes and
>> >> ARN
>> >> > > > about
>> >> > > > > 30 minutes. There is generally a 3 minute timeout established in
>> >> the
>> >> > > > > repeater community and this is also true in most Allstar
>> systems.
>> >> > > Timing
>> >> > > > > variables would need to be changed on the playing node and every
>> >> > > > connected
>> >> > > > > node. This is really not practical but if you wanted to do it it
>> >> > would
>> >> > > be
>> >> > > > > easy. Once the file is downloaded just play it. It would
>> eliminate
>> >> > most
>> >> > > > of
>> >> > > > > the script but without system timing changes you would hear the
>> >> first
>> >> > > 3-5
>> >> > > > > minutes and then things would timeout. It is also a courtesy to
>> >> stop
>> >> > > > > transmissions periodically to allow for simplex stations to
>> connect
>> >> > and
>> >> > > > > disconnect.
>> >> > > > >
>> >> > > > >
>> >> > > > > *73 Doug*
>> >> > > > >
>> >> > > > > *WA3DSP*
>> >> > > > >
>> >> > > > > *http://www.crompton.com/hamradio <http://www.crompton.com/
>> >> hamradio
>> >> > >*
>> >> > > > >
>> >> > > > >
>> >> > > > > On Mon, Sep 11, 2017 at 4:31 AM, "Bob Roszkowski via
>> arm-allstar" <
>> >> > > > > arm-allstar at hamvoip.org> wrote:
>> >> > > > >
>> >> > > > > > Doug, is there a script that will play the news with out
>> breaks?
>> >> > > > > >
>> >> > > > > >
>> >> > > > > > Sincerely,
>> >> > > > > >
>> >> > > > > > boB - W5EVH
>> >> > > > > >
>> >> > > > > > On Fri, Jun 23, 2017 at 10:35 PM, "Doug Crompton via
>> >> arm-allstar" <
>> >> > > > > > arm-allstar at hamvoip.org> wrote:
>> >> > > > > >
>> >> > > > > > > I have changed the playnews script to isolate the URL's in a
>> >> > > separate
>> >> > > > > > > playnews.ini file. The new tar archive can be found at:
>> >> > > > > > >
>> >> > > > > > >  http://hamvoip.org/downloads/playnews-0.11.tar.gz
>> >> > > > > > >
>> >> > > > > > > Or at the link on the hamvoip.org web page.
>> >> > > > > > >
>> >> > > > > > > Users can (carefully) edit URL's in the playnews.ini file
>> for
>> >> > > Amateur
>> >> > > > > > Radio
>> >> > > > > > > Newsline and ARRL News when necessary. What is there works
>> as
>> >> of
>> >> > > > > > 6/23/2017.
>> >> > > > > > > Yes they changed ARN back to .mp3 today! Maybe they were
>> >> > listening.
>> >> > > > > > >
>> >> > > > > > > I suggest you put these files in
>> /etc/asterisk/local/playnews.
>> >> If
>> >> > > you
>> >> > > > > > > already have files there you can safely delete them all and
>> >> untar
>> >> > > the
>> >> > > > > new
>> >> > > > > > > archive.
>> >> > > > > > >
>> >> > > > > > > cd /etc/asterisk/local
>> >> > > > > > > mkdir playnews
>> >> > > > > > > cd playnews
>> >> > > > > > > wget https://hamvoip.org/downloads/playnews-0.11.tar.gz
>> >> > > > > > > tar xvzf playnews-0.11.tar.gz
>> >> > > > > > >
>> >> > > > > > > Use 'playnews-0.11' in your script or if you desire rename
>> it
>> >> to
>> >> > > just
>> >> > > > > > > 'playnews'
>> >> > > > > > >
>> >> > > > > > >
>> >> > > > > > > *73 Doug*
>> >> > > > > > >
>> >> > > > > > > *WA3DSP*
>> >> > > > > > >
>> >> > > > > > > *http://www.crompton.com/hamradio <http://www.crompton.com/
>> >> > > hamradio
>> >> > > > >*
>> >> > > > > > > _______________________________________________
>> >> > > > > > >
>> >> > > > > > > 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
>> >> > > > > >
>> >> > > > > >
>> >> > > > > _______________________________________________
>> >> > > > >
>> >> > > > > 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
>> >> > > >
>> >> > > >
>> >> > > _______________________________________________
>> >> > >
>> >> > > 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
>> >> >
>> >> >
>> >> _______________________________________________
>> >>
>> >> 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
>> _______________________________________________
>>
>> 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