I think you need to put the schedule in braces, but I really am not sure how to
do this I also though have my make safe in the play list section to make it
easier not below like you do.
good luck. I'm still learning a lot myself.
> On Jun 23, 2015, at 9:05 PM, Eduardo Martinez <[email protected]> wrote:
>
> Hello,
>
> I have a series of simple daily playlists named as follows:
> 23062015.m3u
> 24062015.m3u
> 25062015.m3u
>
> I would like liquidsoap to reload to a new playlist every 24 hours based on
> the current date.
> I'm able to use get_process_output function to pass the appropriate playlist
> using the date command.
>
> The part I get stuck on, is setting the reload frequency, and triggering it
> every day at a specific time.
> reload (int – defaults to 0): Amount of time (in seconds or rounds).
> reload_mode (string – defaults to "seconds"): Unit of the reload parameter,
> either 'rounds', 'seconds' or 'watch' (reload the file whenever it is
> changed).
>
> Neither of these seem to be in liquidsoap's time format of 1h (The first hour
> of every day).
> I cant use a reload frequency in seconds, because the timer would then be
> dependent on when I started the script, not a specific time of the day.
>
> Is there a way to load a new playlist at a specific time of the day, based on
> the m3u naming convention provided above?
>
> #!/usr/local/bin/liquidsoap -v
>
> set("log.file.path","/home/ed/liquidsoap/logs/daily.log")
> set("log.stdout",true)
>
> input = playlist(get_process_output("date +%d%m%Y.m3u|tr -d
> '\n'"),mode="normal")
>
> output.icecast(
> %fdkaac(channels=2, samplerate=44100, bitrate=64, aot="mpeg2_he_aac_v2",
> sbr_mode=true),
> mount="/test.aac",
> host="radio.myserver.net <http://radio.myserver.net/>", port=80,
> password="pword",
> mksafe(input))
>
> Thanks in advance.
> ------------------------------------------------------------------------------
> Monitor 25 network devices or servers for free with OpManager!
> OpManager is web-based network management software that monitors
> network devices and physical & virtual servers, alerts via email & sms
> for fault. Monitor 25 devices for free with no restriction. Download now
> http://ad.doubleclick.net/ddm/clk/292181274;119417398;o_______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users