Yeah, this is the way to go - as an example for a past setup I've done: * GPIO on/off trigger two carts, which run on-mic-on.sh or on-mic-off.sh depending on the cart. * These scripts call any scripts we may want to run (easier to maintain than Rivendell Macro cards with lots of RN calls) * One script is a Python script which updates a Redis database (very small and lightweight in-memory DB, smashing for doing this sort of thing) which is then polled by the website on page loads and regularly via AJAX to update, allowing you to see the state of the microphone on-air lights on the website.
Piece of cake. You can also extend this to doing hardware control of devices using, say, an Arduino if you can't afford real GPIO drivers (making a USB joystick and an Arduino a very nice combination). Clock synchronization - just use NTP to synchronize time to a known good time server and make everything reference their local NTP-sync'd clocks. We used this with an Arduino-driven clock in the studio which provided current time and the time remaining in a show. Metering is a trickier one. Nothing built into Rivendell can do this for you. I'd recommend you look at the jackmeter/jack_meter packages - one is a console meter which can be configured to constantly spit out the current level in dB from a JACK port. The other is a nice on-screen meter which may be sufficient. meterbridge can also do a variety of meters including phase (jellyfish) and DPMs as well as PPMs/VU meters, and also works with JACK. But if you want to do something in the real world (giant VU meter, for instance) then jack_meter will probably be what you want, since you can easily take the output of that into a script for processing/retransmission/translation to servo commands. Cheers, James Harrison On 07/02/2012 14:19, Wayne Merricks wrote: > There is a Rivendell macro command that can run shell commands. I think > its RN. More info on the Wiki > http://rivendell.tryphon.org/wiki/Rml.sxw_-_Rivendell_Macro_Language_v1.0.0 > > I guess if you set up some sort of script to update a DB for the website > and use plain old javascript to poll for changes on the client/web side > via the database? Theres probably more efficient ways of doing it but > you're kind of limited on a web server as nothing is rendered until a > client connects/refreshes the page. > > I'm not sure whether incorporating it into the main log or aux log would > be better. > > Regards, > > Wayne > > On Mon, 06 Feb 2012 19:47:46 -0000, hx<[email protected]> wrote: > >> If I wanted to send data to trigger an event on a website, could you >> point >> me to the relevent info about that topic. I would like to sync my clock >> to >> a countdown timer, trigger an ONAIR light, and possibly show an amplitude >> meter. > ####################### > Scanned by MailMarshal > ####################### > > #################################################################################################################################################################################################################### > > Attention: > > The information contained in this message is confidential and intended for > the addressee(s) only. If you have received this message in error or there > are any problems, please notify the originator immediately. > The unauthorised use, disclosure, copying or alteration of this message is > strictly forbidden. Christian Vision or any of its subsidiaries will not be > liable for direct, special, indirect or consequential damages > arising from alteration of the contents of this message by a third party or > as a result of any virus being passed on. Please note that we reserve the > right to monitor and read any e-mails sent or received by the > company under the Telecommunications (Lawful Business Practice) (Interception > of Communications) Regulation 2000. Christian Vision is registered in England > as a limited company 2842414 and as a charity 1031031 > > #################################################################################################################################################################################################################### > _______________________________________________ > 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
