[RDD] Using macro to set a variable

Alessio Elmi alessio_elmi at hotmail.com
Tue Jul 28 06:39:22 EDT 2015


Sorry I didn't read correctly the question.
In fact we pair php script with a filewrite.rlm plugin...

And by the way that was the only way we found to avoid crash in updating
Icecast in case of accented chars...

Il giorno mar 28 lug 2015 alle ore 12:07 Alessio Elmi <
alessio_elmi at hotmail.com> ha scritto:

> Hi all,
> 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!
>
> Cheers!
>
> Alessio
>
>
> 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
>> amend.
>>
>> 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[1024];
>> 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);
>> system(cmd);
>>
>> My C is very rusty so you may have to tweak this to get it to compile.
>>
>> Regards,
>>
>>
>> Wayne Merricks
>> The Voice Asia
>>
>> On 27/07/15 20:07, Tim Camp wrote:
>>
>> Greetings,
>> 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.
>>
>> Thoughts?
>>
>> Cheers
>>
>> Tim Camp
>> WZEW-FM
>> 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
>> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://caspian.paravelsystems.com/pipermail/rivendell-dev/attachments/20150728/e2893d09/attachment.html>


More information about the Rivendell-dev mailing list