Re: [RDD] Reading RDAirPlay status after sending RML

2022-05-04 Thread Fred Gleason
On May 4, 2022, at 11:42, Nick Andre  wrote:

> tldr: is there any way to tell what cart RDAirPlay is currently playing? It 
> seems like I can grep the syslog, but just wondering if there's some other 
> more expedient way.
> 
> We implemented remote broadcasting for our radio station using some basic 
> bash and MySQL procedures. Essentially after all is said and done, the script 
> will send RML to Rivendell 
> 
>  to load a particular cart to the queue along with a certain announcement and 
> then start the show. Looks like this:
> 
> rmlsend PX\ 1\ 3004\! #This is the WMFO shows pre-recorded announcement, will 
> push to top
> sleep 1
> rmlsend PN\ 1\! #press play next (second track in queue or first if not 
> running), which should fade out existing track
> sleep 1
> rmlsend PX\ 1\ 96\!
> sleep 1
> rmlsend PX\ 1\ $cart\! # queue up specified show
> 
> Sometimes a live DJ will ignore instructions and load a new log, canceling 
> playback. I would like to programmatically illuminate if this has happened.

Sounds like you need a PyPAD script.

http://opsguide.rivendellaudio.org/html/chapter.pad.html#sect.pad.pypad 


These can be used to send notifications whenever the state of a log changes in 
RDAirPlay.

Cheers!


|-|
| Frederick F. Gleason, Jr. | Chief Developer |
|   | Paravel Systems |
|-|
|  Life would be so much easier if we could just look at the source   |
|  code.  |
| |
|  -- Anonymous   |
|-|___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


[RDD] Reading RDAirPlay status after sending RML

2022-05-04 Thread Nick Andre
tldr: is there any way to tell what cart RDAirPlay is currently playing? It
seems like I can grep the syslog, but just wondering if there's some other
more expedient way.

We implemented remote broadcasting for our radio station using some basic
bash and MySQL procedures. Essentially after all is said and done, the script
will send RML to Rivendell

to load a particular cart to the queue along with a certain announcement
and then start the show. Looks like this:

rmlsend PX\ 1\ 3004\! #This is the WMFO shows pre-recorded announcement,
will push to top
sleep 1
rmlsend PN\ 1\! #press play next (second track in queue or first if not
running), which should fade out existing track
sleep 1
rmlsend PX\ 1\ 96\!
sleep 1
rmlsend PX\ 1\ $cart\! # queue up specified show

Sometimes a live DJ will ignore instructions and load a new log, canceling
playback. I would like to programmatically illuminate if this has happened.
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev