drew Roberts <zotzbro@...> writes:

> 
> 
> Hey Jim,
> there are probably too many ways to 
do it.
> On Thu, Feb 5, 2015 at 10:30 PM, Jim 
Hartranft <musicmaker10 <at> 
dejazzd.com> wrote:Hi, I am trying to 
output the now and
> next data to a file that can be 
updated
> on our website..
> 
> The rlm_filewrite is what you want to 
get the needed data into a file on the 
rivendell machine.
> 
> rdadmin->manage hosts->select and 
edit host->rdairplay->configure now & 
next parameters->add a loadable module
> 
> my config here 
is:/usr/lib/rivendell/rlm_filewrite.rlm
/etc/rivendell/rlm/rlm_filewrite.conf
> 
> Some sample 
/etc/rivendell/rlm/rlm_filewrite.conf 
entries:
[File2]Filename=/var/www/html/bon/cural
b/album.txtAppend=0;FormatString=Now 
playing on Bahamian Or Nuttin %t by 
%aFormatString=AlbumArt 
%cEncoding=0MasterLog=YesAux1Log=NoAux2
Log=No[File3]Filename=/var/www/html/bon
/curalb/playing.txtAppend=0FormatString
=Now playing on Bahamian Or Nuttin %t 
by %a;FormatString=AlbumArt 
%cEncoding=0MasterLog=YesAux1Log=NoAux2
Log=No[File4]Filename=/home/rduser/.sng
dataAppend=0FormatString=%t\n%a\n%g\nEn
coding=0MasterLog=YesAux1Log=NoAux2Log=
No
> 
> In case it is not clear, I am writing 
3 different files there. (I could 
probably just write one but this is an 
experimental box and this just sort of 
developed as I was experimenting with 
different things.
> 
> Now that you have the needed data in 
a file on the local machine, there are 
also probably too many ways to get it 
to the web server. Are you good with 
that or would you like further help? 
(One hint is that while you are 
configuring now and next in rdadmin, 
add an RML entry along these lines:RN 
/home/rduser/webupdate.sh 1!
> 
> 
> and then let that script sleep foir a 
bit to let the file finish writing and 
then let it send the file to the web 
host.
> 
> My example are only dealing with the 
Now and not the Next. It is just a 
matter of case though.
> 
> %t = title of now
> 
> %T = title of next
> 
> iirc, I have not done any next in 
years.
> 
> 
> 
>  The site is hosted off
> site, built with HTML. Is there a way
> to place the now and next info into a
> script or something to update on the
> website? Nothing fancy, maybe just 
"Now
> Playing: X" "Coming Up: Y"
> Thanks
> 
_______________________________________
________
> Rivendell-dev mailing listRivendell-
dev <at> 
lists.rivendellaudio.orghttp://caspian.
paravelsystems.com/mailman/listinfo/riv
endell-dev
> 
> 
> -- http://nakedghosts.blogspot.com/
> 
> 
> 
> 
_______________________________________
________
> Rivendell-dev mailing list
> Rivendell-dev@...
> 
http://caspian.paravelsystems.com/mailm
an/listinfo/rivendell-dev
> 

So should I have both the rlm and conf 
separate or have the conf in the spot 
next to the the rlm?


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

Reply via email to