Hi Michael,

Here some info;

We have now 2 studio's here in Holland (and hopefully more to come) both running RadioDJ as playout for there shows sometimes live sometimes auto DJ.
And a VPS running liquidsoap and icecast and some play lists for fall-back.
If "i say" if we switch between studio we do that on 16:00 or 18:00 or 20:00 and so on. Liquidsoap play from the VPS every 2 hours (16:00,18:00,20:00 and so on) the info wich is built-up like "News bed (20sec)" (must run underneath ) after 6 sec "The News (no pre know length) " and the "trafic (no pre know length)" and after that it switch to what ever is scheduled.

Also I'm playing with the thought to let liquidsoap remote the RadioDJ software by Rest server so for instants after the "info" it will send something like this http://IP:7000/opt?auth=password&command=PlayPlaylistTrack.
But that I need real help SO........

Tnx in advance,
Feiko

Here is my script so far:

#nieuws + verkeer op een bed
nieuws_bed = once(single("/home/chiel/fir_audio/info/nieuws/FIR nieuws id zonder.mp3"))
    wacht5 = once(single("/home/chiel/fir_audio/info/nieuws/5sec.mp3"))
    wacht2 = once(single("/home/chiel/fir_audio/info/nieuws/2sec.mp3"))
nieuws_nieuws = once(single("/home/chiel/fir_audio/info/nieuws/nieuws.mp3")) nieuws_verkeer = once(single("/home/chiel/fir_audio/info/nieuws/verkeer.mp3"))

    info =     fallback(
                   track_sensitive=false,
                    [
                    wacht2,
                    wacht5,
                    nieuws_nieuws,
                   nieuws_verkeer
                   ]
                   )

    nieuws = add([nieuws_bed,info])
    nieuws = amplify(2., override="replay_gain", nieuws)

#studio streams + nieuws om het uur
        almere  = "http://46.166.178.144:8000/studioalmere";
        brielle = "http://46.166.178.144:8000/studiobriele";

    relayalmere = mksafe(input.http(almere))
    relaybrielle = mksafe(input.http(brielle))

    studios_ext = fallback(
        track_sensitive=false,
        [
        switch([({18m00s}, nieuws)]),
        strip_blank(max_blank=1., relayalmere),
        strip_blank(max_blank=1., relaybrielle),
        ]
        )

#error sound
    error = single("/home/chiel/fir_audio/jingles/error/error.mp3")
    error = amplify(2.,override="replay_gain",error)

#switch tussen studio's en error
    main_stream = fallback(

        [
        studios_ext,
        error
        ]
        )

# icecast server main stream mount /mp3
    output.icecast(
        %mp3(bitrate=192,samplerate=44100,stereo=true),
        description = "Meer dan hits",
        name = "Free Internet Radio",
        genre = "van A tot Z van 0 tot 9",
        url = "www.freeinternetradio.nl",
        host = "IP",
        mount = "mp3",
        port = 8000,
        password = "password",
        main_stream
        )


Op 26-5-2016 om 9:55 schreef Mark Jeghers:

What exactly does the 2900 mean? How does it add up to the next 50 minutes?

*From:*Michael Pieper [mailto:[email protected]]
*Sent:* Wednesday, May 25, 2016 11:50 PM
*To:* [email protected]
*Subject:* Re: [Savonet-users] once(single

What do you want to achieve?

So what is the time when its needed?

I' using switch and delay to schedule an special track always at :45 Minutes:

radio = switch( id="Sonder Beitraege", [

( { 45m-55m }, delay( 2900.0, beitraege) ),

( { true }, radio)

] )

This will check at the end of a track if switch is true and then play one track of "beitraege" and then play radio again.

45m-55m is needed because I want to switch not at the exact time but after the last track ends. And as I don't know when this exactly will happen I had to do a range.

And the 2900 comes from the effect that it should not be played a second track again during the next 50 minutes.

Best regards

    Michael

-----------------------------------------

Von meinem iPhone gesendet

Erreichbar auch unter:

XMPP: [email protected] <mailto:[email protected]>

ICQ: 64853635

MSN: [email protected] <mailto:[email protected]>

Yahoo: [email protected] <mailto:[email protected]>

Astra: Mikesch1964

Skype: Mikesch8764


Am 25.05.2016 um 22:53 schrieb Feiko <[email protected] <mailto:[email protected]>>:

    Tnx,

    But I don't need it every time just when it's needed so is delay
    then the only way???

    TNX
    Feiko

    Op 25-5-2016 om 19:18 schreef Michael Pieper:

        You have to use delay()

        This will make the source unavailable for a time.

        >From my mind:

        Schedule = Delay(300, jingle)

        Will play one track of source jingle and then fail for 300 seconds.

        Put this into a fallback(schedule, radio)

        And each 5 min you should hear one track of jingle.

        BR Michael

        -----------------------------------------

        Von meinem iPhone gesendet

        Erreichbar auch unter:

        XMPP:[email protected] <mailto:[email protected]>

        ICQ: 64853635

        MSN:[email protected] <mailto:[email protected]>

        Yahoo:[email protected] <mailto:[email protected]>

        Astra: Mikesch1964

        Skype: Mikesch8764

            Am 25.05.2016 um 18:18 schrieb Feiko<[email protected]> 
<mailto:[email protected]>:

            Hi There,

            if I use single it will play the file over and over in I use once

            (single..... then it plays just one time and it can't be used after

            that......

            So my question is how can I play a file 1 time and after say 30 min.

            again???

            Tnx.

            
------------------------------------------------------------------------------

            Mobile security can be enabling, not merely restricting. Employees 
who

            bring their own devices (BYOD) to work are irked by the imposition 
of MDM

            restrictions. Mobile Device Manager Plus allows you to control only 
the

            apps on BYO-devices by containerizing them, leaving personal data 
untouched!

            https://ad.doubleclick.net/ddm/clk/304595813;131938128;j

            _______________________________________________

            Savonet-users mailing list

            [email protected]
            <mailto:[email protected]>

            https://lists.sourceforge.net/lists/listinfo/savonet-users




            
------------------------------------------------------------------------------

            Mobile security can be enabling, not merely restricting. Employees 
who

            bring their own devices (BYOD) to work are irked by the imposition 
of MDM

            restrictions. Mobile Device Manager Plus allows you to control only 
the

            apps on BYO-devices by containerizing them, leaving personal data 
untouched!

            https://ad.doubleclick.net/ddm/clk/304595813;131938128;j




            _______________________________________________

            Savonet-users mailing list

            [email protected]
            <mailto:[email protected]>

            https://lists.sourceforge.net/lists/listinfo/savonet-users

    
------------------------------------------------------------------------------
    Mobile security can be enabling, not merely restricting. Employees who
    bring their own devices (BYOD) to work are irked by the imposition
    of MDM
    restrictions. Mobile Device Manager Plus allows you to control
    only the
    apps on BYO-devices by containerizing them, leaving personal data
    untouched!
    https://ad.doubleclick.net/ddm/clk/304595813;131938128;j

    _______________________________________________
    Savonet-users mailing list
    [email protected]
    <mailto:[email protected]>
    https://lists.sourceforge.net/lists/listinfo/savonet-users



------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j


_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to