What is the criterion to be used to determine whether or not there are announcements?
I would set up a macro to run an external shell script to determine if there are announcements; if there are, turn on the TA flag, run the announements, turn off the flag, and resume normal airplay. If there are not, then resume normal airplay immediately.
I would have the announcements set up as a Sound Panel button, and use a STOP transition on the next event following the one that invokes the shell script.
So: Rivendell starts the shell script and stops. The shell script determines if there are announcements to be broadcast; if so, it turns on the TA flag and fires the Sound Panel button for the announcements using PP, waits for the announcements to finish playing, turns off the TA flag, and executes PN 1! to resume normal airplay.
Rob -- Я там, где ребята толковые, Я там, где плакаты "Вперёд", Где песни рабочие новые Страна трудовая поёт. On Tue, 22 Jan 2019, Peter Claes wrote:
Hi all, Is there a way to 'branch if' in the Rivendell macro language ? Quick sketch of my problem: We would like to automate the traffic annoucements. We have 2 marcro's : TA flag on, and TA flag off (both UO command sending UDP) And the audio carts sit in between ofcourse. but if the there are no announcements to make, it should also not start the macro's. Is this possible ? Regards Peter
_______________________________________________ Rivendell-dev mailing list [email protected] http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
