[arm-allstar] playnews-0.6

Doug Crompton doug at crompton.com
Mon Aug 31 00:37:37 EST 2015


Neil,

 While I will consider ideas I am not making any more changes to the script at this time. The script is not intended for casual use and is not really for the average user but rather for use on hubs and repeater systems where it would be played at a specific time via a cron job. Like once weekly. That was my original intent.  Adding the "now" feature allows you to queue it up and play it manually so you can time it to play at the end of a net or during a net.

The files are all stored in a temp filesystem thus not being written to the SD card which is the preferred way avoiding SD card writes. Therefore the files are created on demand, played, and deleted. This is why you should queue it to start no more than say 1/2 hour before the start time. If it used files that were created days before and there was a power failure they would not be there.

That being said if a user wants to play the news personally on there private node that is fine but just don't send it anywhere else without permission. We don't need people repeatedly playing the news over large connected networks. Personally I do not think the news should be played with DTMF commands instead an authorized user should ssh in and start the script or setup a cron job to do it.
73 Doug
WA3DSP
http://www.crompton.com/hamradio


From: k8it at cac.net
To: arm-allstar at hamvoip.org
CC: doug at crompton.com; sam.majchuck at gmail.com
Subject: Re: [arm-allstar] playnews-0.6
Date: Mon, 31 Aug 2015 00:48:42 -0400








Doug. A very usefull feature, but lets make it better yet! How about these 
changes to Sam's concept.
1. Split the script into two parts.
part a - would remove all files and then download the mp3 and convert it 
into ul files. this would be setup in cron once a week 
separate filenames should be used so when the script updates one of the 
files, the other news files will remain until it gets updated. this way both 
news scripts are the most current, and using part - b script they can be played 
multiple times but only one download a week. we have people who want to play the 
scripts at different times due to there work schedule.
 
part b - would be activated by a dtmf sequence ( I use *930 for ARN and 
*932 for ARRL
the purpose of the script would be to change the holdoff value as you 
suggest
ID
force an ID
change any other parameters if desired
enable a method to pause  the playback in a emergency. we need 
options to resume playing or terminate now
play file
force id
reset holdoff parameter
disable or reset any other parameters that was changed
do not delete files
exit script
 
 
 
Thanks
73 Neil Sablatzky  K8IT
Allstar Node 41838 
KITLINK
Allstar Node 42087 KITLINK HUB
IRLP Node exp0068
Echolink 
K8IT-L
WIRES-X K8IT 11479 Room 21479




From: Doug Crompton 
Sent: Monday, August 31, 2015 12:01 AM
To: arm-allstar at hamvoip.org 
Subject: [arm-allstar] playnews-0.6


I put a new version of 
playnews up on hamvoip.org in the howto section. It includes a request for 
playing now in console mode. This is useful if you want to get everything ready 
to play and manually hit a key to start it.

http://hamvoip.org/downloads/playnews-0.6.tar.gz

Changes 
from 0.5

  - If you enter "now" for the time it will download and 
process the files, skip the pre-warnings, wait for any key to   be 
pressed and play the news.

  - The node number must be 
entered.

  - An optional last parameter L|G for local or global play 
can be entered. If omitted playback is global.

I recommend making a 
directory "playnews" in /etc/asterisk/local   cd to that directory and 
untar the files there.

Rename playnews-0.6 to playnews once 
extracted.

If the files are not placed in /etc/asterisk/local/playnews 
you must specify the location in the VOICEDIR variable in the 
script.

  v0.6 updates

   - Now requires that all 
parameters be entered except
     mode which defaults to 
global if not entered
   - More parameter checking 
added
   - Time can be set to "NOW" for immediate 
start

   Command line format - playnews ARRL|ARN 21:00|NOW 
40000 L|G
  
 Options are ARRL or ARN news, specific 24 hour 
time or "NOW"
   and local "L" or Global "G" play 
modes.

   DO NOT use the the "NOW" time parameter in a cron 
!!!
Read the complete 
README file in the archive and also in the beginning of the 
script.

73 
Doug
WA3DSP
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 web page - http://hamvoip.org 






No virus found in this 
message.
Checked by AVG - www.avg.com
Version: 2015.0.6125 / Virus 
Database: 4409/10546 - Release Date: 08/30/15 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hamvoip.org/pipermail/arm-allstar/attachments/20150831/89da1f01/attachment.html>


More information about the arm-allstar mailing list