well… 24 hours in a day. 24 different jingles.

00_jingle.mp3 (12 am) 01_jingle.mp3 (1am) 02_jingle.mp3 (2am).

instead of using {0m0s}  to specify every hour you can specifically specify 
with {0h} for 12am or {2h} for 2am, etc.

-alex

> On Apr 1, 2016, at 10:06 PM, Oriol Gómez Sentís <[email protected]> wrote:
> 
> 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 
>>> <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 
>>> <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 
>> <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 
>> <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

------------------------------------------------------------------------------
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

Reply via email to