Hey Jim,

there are probably too many ways to do it.

On Thu, Feb 5, 2015 at 10:30 PM, Jim Hartranft <musicmake...@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/curalb/album.txt
Append=0
;FormatString=Now playing on Bahamian Or Nuttin %t by %a
FormatString=AlbumArt %c
Encoding=0
MasterLog=Yes
Aux1Log=No
Aux2Log=No

[File3]
Filename=/var/www/html/bon/curalb/playing.txt
Append=0
FormatString=Now playing on Bahamian Or Nuttin %t by %a
;FormatString=AlbumArt %c
Encoding=0
MasterLog=Yes
Aux1Log=No
Aux2Log=No

[File4]
Filename=/home/rduser/.sngdata
Append=0
FormatString=%t\n%a\n%g\n
Encoding=0
MasterLog=Yes
Aux1Log=No
Aux2Log=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 list
> Rivendell-dev@lists.rivendellaudio.org
> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
>



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

Reply via email to