I use this script:
radio = switch([
( { 0h }, once( single ("moderation/0000.mp3"))),
( { 1h }, once( single ("moderation/0100.mp3"))),
( { 2h }, once( single ("moderation/0200.mp3"))),
( { 3h }, once( single ("moderation/0300.mp3"))),
...
( { 23h }, once( single ("moderation/2300.mp3"))),
( { true }, radio)
])and so on. It works fine the first time. unfortunately it is not working after 24 hours, as "single" will only create one track. I have to search for a function where only one Track is played, but again the same track at the next day... BR Michael Am 02.04.2016 um 07:06 schrieb Oriol Gómez Sentís: > Hi. > The thing is, I want a different jingle for every hour. > I had seen this in the cookbook, basically i would use this but i need > to know the hour so that I can include it in the filename. :) > Hope that makes sense :) and thanks > > Enviado desde mi iPhone > > El 2 abr 2016, a las 1:13, Alex LaBranche <[email protected] > <mailto:[email protected]>> escribió: > >> from the cookbook… >> >> >> # Add a jingle to your normal source # at the beginning of every hour: >> add([normal,switch([({0m0s},jingle)])]) >> >> >> >>> On Mar 31, 2016, at 11:58 PM, Oriol Gómez <[email protected] >>> <mailto:[email protected]>> wrote: >>> >>> Hi all! >>> I'm trying to add something to my liquidsoap script, basically add a >>> jingle every hour but with the current hour... >>> Now, I know there is the timeofday function which returns the number >>> of seconds since jan 1st 1970, but surely there is an easier method... >>> What with daylight savings and everything? Isn't there a way to get >>> the current system time somehow from within liquidsoap? Or should I >>> just create a python script that telnets a request.push to my >>> localhost? >>> >>> Thanks all! >>> >>> ------------------------------------------------------------------------------ >>> Transform Data into Opportunity. >>> Accelerate data analysis in your applications with >>> Intel Data Analytics Acceleration Library. >>> Click to learn more. >>> http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140 >>> _______________________________________________ >>> Savonet-users mailing list >>> [email protected] >>> <mailto:[email protected]> >>> https://lists.sourceforge.net/lists/listinfo/savonet-users >> >> ------------------------------------------------------------------------------ >> Transform Data into Opportunity. >> Accelerate data analysis in your applications with >> Intel Data Analytics Acceleration Library. >> Click to learn more. >> http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140 >> _______________________________________________ >> Savonet-users mailing list >> [email protected] >> <mailto:[email protected]> >> https://lists.sourceforge.net/lists/listinfo/savonet-users > > > ------------------------------------------------------------------------------ > Transform Data into Opportunity. > Accelerate data analysis in your applications with > Intel Data Analytics Acceleration Library. > Click to learn more. > http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140 > > > > _______________________________________________ > Savonet-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/savonet-users >
smime.p7s
Description: S/MIME Cryptographic Signature
------------------------------------------------------------------------------
_______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
