Hi,
I don't know if it helps you...
I made this script which loads log and syncs time with appropriate
cart... You may want to launch this macro in case of restore.

#!/bin/bash

DATE=$(date +"%d_%m_%Y")
_LOG="_LOG"
LOG=$DATE$_LOG
TIME=$(date +"%H:%M:%S")
H=$(date +"%H")
H=$((H*3600000))
M=$(date +"%M")
M=$((M*60000))
S=$(date +"%S")
S=$((S*1000))
T=$((H+M+S))
QUERY="SELECT ID FROM "$LOG" WHERE START_TIME<="$T" ORDER BY COUNT
DESC LIMIT 1;"
CART=$(mysql -urduser -pletmein -h10.48.102.103 Rivendell -Bse "$QUERY")
rmlsend LL\ 1\ $DATE\ -1\!
rmlsend MN\ 1\ $CART\!

It checks the date and hour and loads the correct log with the
appropriate cart related to present time.
Cheers

Alessio


2013/2/9 Christopher Cmolik (RIT Student) <[email protected]>:
> Here's an idea I had when I was looking into failover/"emergency operation"
> for WITR's Rivendell setup.
>
> Currently, we have a log called 'Emergency Log" that contains a Legal ID and
> a macro cart that loads today's log by running the date(1) command.
> Unfortunately (or by design) this loads a log and begins playback at the
> start of the log. At the end of the day it's not a huge deal because we have
> timed events built into our log that at 46 min past the hour sync up to the
> correct position in the log, but for those 45 minutes, stuff is playing out
> of order. Not that big of a deal at a music-centric community/college
> station like ours where there isn't a ton of underwriting/traffic slots that
> have to run at specific times, but it could be an issue if you're running a
> network feed at midnight or whatever.
>
> Would there be any way to piggyback on the 'scheduled' times of carts to
> implement an RML to load a log and "make next" or start at the current time?
>
> Usage cases:
> 1.) Rivendell box / file server at the studio site fails, and through a
> silence switch a backup box at the transmitter site is notified that there
> has been a loss of audio or digital clock. Through rdcatch or whatever
> means, a macro is triggered to start playback and switch the input to the
> processing/transmitter to a different source and begin playback of today's
> log or an emergency log. This log is started at the current time in playback
>
> 2.) "Master" rivendell box running RDCatch that somehow syncs up voice
> tracks/music tracks to "slave" boxes at network affiliates sees it's :59
> past the hour (because all of our rivendell setups are synced over NTP.) The
> Master sends a message to slave nodes to start the "Network Feed In The
> Morning" 'log at a certain point based on what current time it is.
>
> I realize that there may be a way of doing this already that i'm not aware
> of, but I was just throwing this out there as an idea.
>
>
> --
>
> Chris Cmolik | RIT Information Technology '13
>
> Chief Engineer Emeritus, WITR Radio / Streaming Infrastructure Manager
>
> [[email protected]]
>
>
>
>
> _______________________________________________
> Rivendell-dev mailing list
> [email protected]
> http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev
>
_______________________________________________
Rivendell-dev mailing list
[email protected]
http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev

Reply via email to