[RDD] Using macro to set a variable
alessio_elmi at hotmail.com
Tue Jul 28 06:07:57 EDT 2015
I can confirm we have this which works ok:
RDAdmin -> Host -> RDAirPlay -> Now&Next -> Master Log RML
...and directly in that field:
RN php /home/poliradio/xtra_scripts/songUpdater.php!
Il giorno mar 28 lug 2015 alle ore 11:47 Wayne Merricks <
waynemerricks at thevoiceasia.com> ha scritto:
> I don't think its as simple as using RN with %a for the artist or
> whatever. You can use the RLM stuff quite easily though you'll have to do
> a bit of C and recompile it.
> Have a look at rlm_test in the source to see if this is something you can
> This test rlm simply prints all the info to the screen whenever now/next
> changes. You could combine it with curl to get/post to a PHP script or
> something. Or if its a simple shell script, in the rlm_test_RLMPadDataSent
> function just replace all the printf stuff with someting like this:
> char cmd;
> sprintf(cmd,"/path/to/my/script.sh \"Now Playing Cart %06u: Artist: %s -
> Title: %s\"", now->rlm_cartnum, now->rlm_artist, now->rlm_title);
> printf("cmd: %s", cmd);
> My C is very rusty so you may have to tweak this to get it to compile.
> Wayne Merricks
> The Voice Asia
> On 27/07/15 20:07, Tim Camp wrote:
> I was wondering if anyone had tried using the macro line in now&next
> settings in rdairplay to do something like set a variable to say something
> like the song Id? Perhaps using RN macro.
> I want to pass a number to a script based on the song that is playing.
> Tim Camp
> Mobile, Al
> Rivendell-dev mailing listRivendell-dev at lists.rivendellaudio.orghttp://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
> Rivendell-dev mailing list
> Rivendell-dev at lists.rivendellaudio.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rivendell-dev