Hi,

If it is helpful, I use a bash script to toggle the on air flags. It uses rmlsend and a simple array list of the studios I have:

I do this via cron and Rivendell macros if necessary.

#!/bin/bash
#This script turns the on air flag on for a given machine
#It will switch all other machines in the RIVENDELL array to off air
declare -A RIVENDELL #need to declare as associative array

#Rivendell list, amend as necessary [host name]=IP
RIVENDELL=(
    [ukstu001]=10.43.13.101
    [ukstu002]=10.43.13.102
    [ukriv002]=10.43.13.22
    [instu001]=10.91.11.17
)

#Switch all machines to off air
for MACHINE in ${!RIVENDELL[@]}; do
  rmlsend --to-host=${RIVENDELL[$MACHINE]} TA\ 0\!
done

#If the host exists, switch it on air
if [ ${RIVENDELL[$1]} ]; then
  rmlsend --to-host=${RIVENDELL[$1]} TA\ 1\!
  logger -t ON_AIR "$1 is now on Air"
fi

To use it I do this:

./onair.sh ukstu001

This will turn every on air flag off for all studios and then turn it on for only ukstu001

The macro is a simple RN:

RN /home/rivendell/onair.sh ukstu001!


On 27/10/16 21:04, Tom Van Gorkom wrote:
Thanks. Very helpful. I'll play with it.

Tom Van Gorkom
Radio Esperanza Engineering, KRIO AM/FM, KOIR FM
Office: 956-380-8150
Cell: 865-803-7427

Rio Grande Bible Institute
4300 S US Hwy 281
Edinburg, TX 78539

On Thu, Oct 27, 2016 at 2:38 PM, Lorne Tyndale <[email protected] <mailto:[email protected]>> wrote:

    How you use it will depend on your setup and how you want to make
    things
    work for your station.

    Some people will tie the on-air flag into a GPO from their
    console, when
    the GPO triggers a GPI on Rivendell a macro sets the on-air flag
    to on.

    You could also set it to trigger in logs and such - for example if
    there
    are times when your programme audio comes from a remote site
    (satellite,
    or otherwise) you could have the log trigger to "off". It'll
    change the
    indicator in RDAirplay (so you can visually see that it is not
    currently
    on the air for example) and such

    Another possibility - if you have 2 studios where either one could
    be on
    the air - you could set up macros so that when one studio is on
    the air
    it'll toggle the flag in that studio to on-air, and the flag in the
    off-air studio to off air.  When you swap studios the macro will swap
    the on-air flags appropriately.  Then when you generate your report
    you'll get what played on air regardless of which studio it came from.

    How you use it is up to you and your requirements.  My best
    suggestion -
    set up a test Rivendell installation and try various scenarios out.

    > -------- Original Message --------
    > Subject: Re: [RDD] Log report of actual played?
    > From: Tom Van Gorkom <[email protected]
    <mailto:[email protected]>>
    > Date: Thu, October 27, 2016 2:29 pm
    > To: Lorne Tyndale <[email protected]
    <mailto:[email protected]>>
    > Cc: ermina <[email protected]
    <mailto:[email protected]>>, Rivendell-Dev
    > <[email protected]
    <mailto:[email protected]>>
    >
    >
    > OK, so if that is set ON will anything that plays such as from
    the panel be
    > captured in the report? Or how do you use that? Sorry for the basic
    > questions.
    >
    > Tom Van Gorkom
    > Radio Esperanza Engineering, KRIO AM/FM, KOIR FM
    > Office: 956-380-8150 <tel:956-380-8150>
    > Cell: 865-803-7427 <tel:865-803-7427>
    >
    > Rio Grande Bible Institute
    > 4300 S US Hwy 281
    > Edinburg, TX 78539
    >
    > On Thu, Oct 27, 2016 at 12:29 PM, Lorne Tyndale
    <[email protected] <mailto:[email protected]>>
    > wrote:
    >
    > > Tom,
    > >
    > > The "include on air events" flag will grab anything that
    played when the
    > > on-air flag is set to True.
    > >
    > > Have a look for the TA rml.
    > >
    > > http://rivendell.tryphon.org/wiki/Rml.sxw_-_Rivendell_
    <http://rivendell.tryphon.org/wiki/Rml.sxw_-_Rivendell_>
    > > Macro_Language_v1.0.0#TOGGLE_ON_AIR_FLAG
    > >
    > > Lorne Tyndale
    > >
    > >
    > >
    > > > Thanks. That was it. Why when I select "include only on air
    events - yes"
    > > > does the report not have any data? When I select "no" then
    it it shows
    > > > exactly what played out. I must not understand the
    terminology there.
    > > >
    > > > Tom Van Gorkom
    > > > Radio Esperanza Engineering, KRIO AM/FM, KOIR FM
    > > > Office: 956-380-8150 <tel:956-380-8150>
    > > > Cell: 865-803-7427 <tel:865-803-7427>
    > > >
    > > > Rio Grande Bible Institute
    > > > 4300 S US Hwy 281
    > > > Edinburg, TX 78539
    > > >
    > > > On Thu, Oct 27, 2016 at 2:11 AM, ermina
    <[email protected] <mailto:[email protected]>> wrote:
    > > >
    > > > >
    > > > > On 10/26/2016 11:55 PM, Tom Van Gorkom wrote:
    > > > >
    > > > >> With a quick try, it gives me an error
    > > > >> that it's unable to open the report file.
    > > > >>
    > > > >
    > > > > That's probably because the export path must include a
    filename
    > > template,
    > > > > in this form : /path/to/reports/%Y%m%d_report.txt
    > > > >
    > > > > . e
    > > > > _______________________________________________
    > > > > Rivendell-dev mailing list
    > > > > [email protected]
    <mailto:[email protected]>
    > > > >
    http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
    <http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev>
    > > > ><hr>_______________________________________________
    > > > Rivendell-dev mailing list
    > > > [email protected]
    <mailto:[email protected]>
    > > >
    http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
    <http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev>
    > >




_______________________________________________
Rivendell-dev mailing list
[email protected]
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev

_______________________________________________
Rivendell-dev mailing list
[email protected]
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev

Reply via email to