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
