Following on from the below, you could use crontab to read the file at a 
specific time and if it is good then run an rdimport script using the cart 
number garnished from the file.
 
Guy Curtis
Broadcast Engineer
WAZU Peoria


Date: Tue, 9 Apr 2013 11:11:13 -0400
From: S?bastien Leblanc <[email protected]>
Subject: Re: [RDD] Temperature controlled jingles
To: User discussion about the Rivendell Radio Automation System
    <[email protected]>

>Have a script that fetches the weather from some public API like
>forecast.io and this script will put the appropriate cart number in a
>known file (e.g. /var/tmp/weather).

>Then you have a cart which is actually a RML command that runs a shell
>script. This shell script will check the timestamp on
>/var/tmp/weather, and if it's recent enough (if there's a problem, you
>don't want to repeat yesterday's forecast), have the shell script add
>the number in that file as a cart, through rmlsend. That's lots of
>callbacks, I know, but I think the data freshness is worth it. Wish
>there was a better way to do that in Rivendell...

>On 9 April 2013 07:07, Daniel Roviriego <[email protected]> wrote:
> Hi.
>
> I Think the approach would change depending on how much earlier you ' d like
> to schedule your commercial.
> For instance, if it' s more than 24 hours in advance, I ' d write some code
> to fill in a txt column formatted file and import that to your slots through
> the traffic iport function within rivendell.
> For sure people in here will have better ideas and experiences.
>
> Have a nice day
>
> Em ter?a-feira, 9 de abril de 2013, Peter Claes escreveu:
>
>> Hi guys,
>>
>> I've read somewhere, that there are stations that use temperature
>> controlled commercial, using rivendell.
>>
>> I would like to have this hourly mentioned on our station.
>>
>> Can someone enlighten me on how i should start on this ?
>>
>> My guess would be a php script that Fetches the temp at for example
>> Yahoo-weather. And changing a cart number in the sql database.
>>
>> Any help would be appreciated.
>>
>> Regards,
>> Peter
>>
>>
>>
>> Verstuurd vanaf mijn iPhone
>> _______________________________________________
>> Rivendell-dev mailing list
>> [email protected]
>> http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev
>
>
>
> --
> Daniel Roviriego
> (21) 35920701
> (21) 99561654
>
>
>
> _______________________________________________
> Rivendell-dev mailing list
> [email protected]http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev
>



-- 
S?bastien Leblanc
_______________________________________________
Rivendell-dev mailing list
[email protected]
http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev

Reply via email to