[arm-allstar] playnews-0.6

Neil k8it k8it at cac.net
Sun Aug 30 23:48:42 EST 2015


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/9e447be1/attachment-0001.html>


More information about the arm-allstar mailing list