On 15/11/16 08:19, Seth Stevenson wrote:
The cart needs to the same, since a script
fires it to play the same one.

So if you label each ID "stationlocation-somenameforid.mp3" each remote site can be set up to download all tracks prefixed with "stationlocation" from your server Dropbox/Cloud or whatever.
Thats a script that can run once every /hour/day/week
Then the same or a second script can CART the new audio replacing the existing audio [or not]

I use Dropbox for long programmes. Short items get downloaded direct from the server. How you do it depends on the resources you have in each place.

My preference is rsync because it has more [ to my mind] reliability. It's easy enough to map a Dropbox to a folder on each remote, but really you only want each remote to get it's unique data so rsync from your main site is all that is needed. Add some logging and send it to an email you will read.

I prefer running my own dropbox to using a service. One less thing to go wrong and 100% control.

This is an edited version of a script I use to pull down and cart audio on the same cart at several sites. Run by cron as needed. No passwords if you setup keygen

http://www.tecmint.com/ssh-passwordless-login-using-ssh-keygen-in-5-easy-steps/

#! /bin/bash

echo $(date) > /home/rd/downloadnews.log

#this is when we start

echo "now downloading News" #handy when you run it manually

rsync -av -t --update --progress -e 'ssh -p <unique ssh port> ' x.x.x.x:/home/rd/dropbox/latestnews.mp3 /home/rd/dropbox >> /home/rd/downloadnews.log

echo $(date +%M:%S) >> /home/rd/downloadbbc.log #this is when the download ended. Long time indicates transport problems.

rdimport --verbose --delete-cuts --normalization-level=-10 --to-cart=908 NEWS /home/rd/dropbox/latestnews.mp3 >> /home/rd/downloadnews.log

echo $(date +%M:%S) >> /home/rd/downloadnews.log #yes this is how long it took to cart

cat /home/rd/downloadnews.log |mail -s 'News Downloaded at <location>' yourem...@someplace.com

exit 0




I port shift 22 on the server to a port in the 10000 range at every site. This is done in the local router. Never allow port 22 access from anywhere. In some places I have several machines each with it's own ssh port. rsync, ssh, do all the heavy lifting. In one case I have an inter continental sync running every hour with a [very] variable grade wireless connection at one end. It just works.

hope this helps

regards

Robert


--
*Communication Consultants*
64 Warner Park Avenue

Laingholm

Auckland 0604

09 8176358

0221693124

06 650 6087
_______________________________________________
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev

Reply via email to