On air new hour
  • Hello anyone help me: i want if on air 01:00 02:00 03:00 04:00 05:00 06:00 07:00 08:00 09:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 17:00 18:00 19:00 20:00 21:00 22:00 23:00 00:00 time, play 1 jingle
  • 4 Comments sorted by
  • Look for Script number 2 in this

    Its in the second thread

    https://forum.sourcefabric.org/discussion/15701/fallover-101-how-to-make-all-scripts-worked-easy-steps-to-build-your-scripts-fixed-silence

    It cover exactly what you are asking for.

    Please copy it and then look for what you want I cover a wide range of possibility

    VOISSES
    Anyone reading this a find it funny about my grammar , I make no apology ,Go get a translator.
    "The Problem with education today is that it takes a university degree to switch on a light bulb"
    "You learn from your mistakes but wise people learn from others mistakes avoid Making mistakes there is not sufficient rooms to make them"
    "Innuendo","If's","Assumptions" and "Fear" are for politician.Who,What,where,When and How are for those seeking knowledge and care about Humanity.
    "I might be in Mud but that does not Make me a Wild Hog(pig)"
    “Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage to move in the opposite direction.”
    "The only thing that remains constant is change itself"
    May the force be with you,until our path or destiny bring us in tandem.
  • valanda = single("/home/mp3/muzika/kiti/valanda.mp3")
    schedule=
    add([
    switch([
    ({ 0h0m00s },delay(1.,valanda)),
    ({ 1h0m00s},delay(1.,valanda)),
    ({ 2h0m00s},delay(1.,valanda)),
    ({ 3h0m00s},delay(1.,valanda)),
    ({ 4h0m00s},delay(1.,valanda)),
    ({ 5h0m00s},delay(1.,valanda)),
    ({ 6h0m00s},delay(1.,valanda)),
    ({ 7h0m00s},delay(1.,valanda)),
    ({ 8h0m00s},delay(1.,valanda)),
    ({ 9h0m00s},delay(1.,valanda)),
    ({ 10h0m00s },delay(1.,valanda)),
    ({ 11h0m00s },delay(1.,valanda)),
    ({ 12h0m00s},delay(1.,valanda)),
    ({ 13h0m00s},delay(1.,valanda)),
    ({ 14h0m00s},delay(1.,valanda)),
    ({ 15h0m00s},delay(1.,valanda)),
    ({ 16h0m00s},delay(1.,valanda)),
    ({ 17h0m00s},delay(1.,valanda)),
    ({ 18h0m00s},delay(1.,valanda)),
    ({ 19h0m00s},delay(1.,valanda)),
    ({ 20h0m00s},delay(1.,valanda)),
    ({ 21h0m00s },delay(1.,valanda)),
    ({ 22h0m00s},delay(1.,valanda)),
    ({ 23h0m00s },delay(1.,valanda)),
    ])
    ])

    this code working?


    inserted this code got:


    Restarting Liquidsoap Playout Engine: At line 161, character 9: The variable schedule defined here is not used
      anywhere in its scope. Use ignore(...) instead of schedule = ... if
      you meant to not use it. Otherwise, this may be a typo or a sign that
      your script does not do what you intend.
    Done.


    line 161:

    schedule=
    Post edited by TheNerka at 2014-12-03 12:02:41
  • You Have to follow the whole script

    You need these for any  script like this one to work

    1. Your playlist
    2. Your Jingles/adverts
    3. You emergency file
    4. your schedule event
    5. your rotation and
    6. your fallback (which should also include in your fallback)

    the full script is this

    myplaylist     = playlist(mode="random",reload=300,"/srv/backup/music")


    # If something goes wrong, we'll play this like a startup
    startup = playlist("/srv/backup/startup")

    # If something goes wrong, we'll play this
    security = single("/srv/backup/drops/station.mp3")

    #
    # jingles

    jingles     = playlist(mode="random",reload=300,"/srv/backup/jingles")

    #

    # stationid
    stationID    = playlist(mode="random",reload=300,"/srv/backup/stationid")



    #*********Create Some Schedule Event********************************

    # This type of schedule will cause the music to stop
    # The trick to make a seperate variable for schedule
    # when the time reach liquidsoap knows something happen jumps to fall back and see there is a schedule
    # It plays the fall back it first meets
    # try to space your timing more appropriately this is just a sample
    # this is a hourly break out
    # it makes better use of carts like(jingle,promo,beds,station ID) 


    schedule=
             add([
                   switch([
                            ({ 0m00s },delay(1.,jingles)),
                            ({ 0m30s},delay(1.,stationID)),
                            ({ 03m10s},delay(1.,jingles)),
                            ({ 15m00s},delay(1.,stationID)),
                            ({ 25m00s},delay(1.,jingles)),
                            ({ 30m00s},delay(1.,stationID)),
                            ({ 32m00s},delay(1.,jingles)),
                            ({ 35m00s},delay(1.,jingles)),
                            ({ 45m00s},delay(1.,stationID)),
                            ({ 45m40s},delay(1.,jingles)),
                            ({ 50m00s },delay(1.,jingles)),
                         ])
               ])



    #******Start building the feed with music*************************************
    # Start building the feed with music by assigning to the same clock (variables)

    mymusicbackup = mksafe(myplaylist)
    mystartup = startup

    #******Feed with music*************************************************

    # And now to play the back up music when something goes wrong

    playmymusicbackup=rotate(weights = [1,4],[mystartup,mymusicbackup])

    #********Processing Section*****************************************




    #*******Fallback to schedule with music************************************

    # Fall back for Music track_sensitive=false,because we want the music pause/stop then
    # play the schedule and start again

    playmymusicbackup = fallback(track_sensitive = false,[schedule,playmymusicbackup])



    #*******Fallback to default**********************************************


    #And finally the security

    default = fallback(track_sensitive = false,[schedule,playmymusicbackup,security])



    #^^^^^^^^^^^^^^^End Of Modification^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


    So you need to have most of this for it to work.


    you cannot just take one section and put it in the script that is why you are having variable missing error

    please become familiar with the syntax

    VOISSES




    Anyone reading this a find it funny about my grammar , I make no apology ,Go get a translator.
    "The Problem with education today is that it takes a university degree to switch on a light bulb"
    "You learn from your mistakes but wise people learn from others mistakes avoid Making mistakes there is not sufficient rooms to make them"
    "Innuendo","If's","Assumptions" and "Fear" are for politician.Who,What,where,When and How are for those seeking knowledge and care about Humanity.
    "I might be in Mud but that does not Make me a Wild Hog(pig)"
    “Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage to move in the opposite direction.”
    "The only thing that remains constant is change itself"
    May the force be with you,until our path or destiny bring us in tandem.
  • Read this  https://forum.sourcefabric.org/discussion/16128/jingle-every-3-songs

    This should work but I cannot test it for you


    music = playlist (mode='randomize',reload=1200,reload_mode="rounds", "/srv/airtime/stor/imported/")
    promo = playlist(mode='randomize',reload=1200,reload_mode="rounds", "/srv/airtime/promo/")
    jingles = playlist(mode='randomize',reload=1200,reload_mode="rounds", "/srv/airtime/Jingles/")
    stationID= single("/src/airtime/stationID/stationID.mp3")
    emergency = single("/src/airtime/emergency/emergency.mp3") #should something go wrong

    mixed = rotate(weights=[1,4],[promo,music])

    #remember you can do below station time and AD insert by programming
    #the airtime calendar as describe by Adam Thomas in
    # this blog post
    # https://blog.sourcefabric.org/en/news/blog/2838/Get-the-most-out-of-Airtime-smart-blocks.htm

    schedule=
             add([
                   switch([
                            ({ 0m00s },delay(1.,jingles)),
                            ({ 0m30s},delay(1.,stationID)),
                            ({ 03m10s},delay(1.,jingles)),
                            ({ 15m00s},delay(1.,stationID)),
                            ({ 25m00s},delay(1.,jingles)),
                            ({ 30m00s},delay(1.,stationID)),
                            ({ 32m00s},delay(1.,jingles)),
                            ({ 35m00s},delay(1.,jingles)),
                            ({ 45m00s},delay(1.,stationID)),
                            ({ 45m40s},delay(1.,jingles)),
                            ({ 50m00s },delay(1.,jingles)),
                         ])
               ])


    #put this instead
    default = fallback(track_sensitive=false,[schedule,mixed,emergency])


    Anyone reading this a find it funny about my grammar , I make no apology ,Go get a translator.
    "The Problem with education today is that it takes a university degree to switch on a light bulb"
    "You learn from your mistakes but wise people learn from others mistakes avoid Making mistakes there is not sufficient rooms to make them"
    "Innuendo","If's","Assumptions" and "Fear" are for politician.Who,What,where,When and How are for those seeking knowledge and care about Humanity.
    "I might be in Mud but that does not Make me a Wild Hog(pig)"
    “Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage to move in the opposite direction.”
    "The only thing that remains constant is change itself"
    May the force be with you,until our path or destiny bring us in tandem.