Music and jingles
  • Hello, my irtime is buging:

    i want  weekdays play weekday music (have), but they include morning, day, evening music. But why my playing 4 songs, and 10-30 jingles:


    ##############################################################################################################



    #music = playlist (mode='randomize',reload=1200,reload_mode="rounds", "/home/mp3/muzika/Muzika/")

    jingles = playlist(mode='randomize',reload=1200,reload_mode="rounds", "/home/mp3/muzika/dzinglai/")

    weekends = playlist (mode='randomize',reload=1200,reload_mode="rounds", "/home/mp3/muzika/Muzika/Savaitgalio Muzika/")

    morningday = playlist (mode='randomize',reload=1200,reload_mode="rounds", "/home/mp3/muzika/Muzika/Rytas - DIENA/")

    night = playlist (mode='randomize',reload=1200,reload_mode="rounds", "/home/mp3/muzika/Muzika/Vakaro Muzika/")

    security = single("/home/mp3/muzika/dzinglai/Jingles/Radijo stotis fixfm su muzika.mp3")

    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)),
    ({ 20h0m0s},delay(1.,valanda)),
    ({ 21h0m00s },delay(1.,valanda)),
    ({ 22h0m00s},delay(1.,valanda)),
    ({ 23h0m00s },delay(1.,valanda)),
    ])
    ])


    weekend=
    add([
    switch([
    ({ (6w) and (7w) },weekends),
    ])
    ])

    weekdays=
    add([
    switch([
    ({ (1w) and 0h-17h59m59s}, morningday),
    ({ (1w) and 18h-23h59m59s}, night),
    ({ (2w) and 0h-4h59m59s}, night),
    ({ (2w) and 5h-17h59m59s}, morningday),
    ({ (2w) and 18h-23h59m59s}, night),
    ({ (3w) and 0h-4h59m59s}, night),
    ({ (3w) and 5h-17h59m59s}, morningday),
    ({ (3w) and 18h-23h59m59s}, night),
    ({ (4w) and 0h-4h59m59s}, night),
    ({ (4w) and 5h-17h59m59s}, morningday),
    ({ (4w) and 18h-23h59m59s}, night),
    ({ (5w) and 0h-4h59m59s}, night),
    ({ (5w) and 5h-15h59m59s}, morningday),
    ({ (5w) and 18h-23h59m59s}, night),
    ])
    ])

    mixed = rotate(weights=[1,4,4],[jingles,weekdays, weekend])


    playmymusic = fallback(track_sensitive = true,[schedule,mixed])
    #put this instead
    default = fallback(track_sensitive=true,[schedule,playmymusic,security])


    ##############################################################################################################


  • 15 Comments sorted by
    1. Your Switch is wrong (you are asking to add morning to night and add weekends on top of the music currently playing and on top of the hour to be added on this.So confusing.
    2. Your rotation is wrong  (it says play 1 jingles then 4 weekdays music then 4 weekend music and start over doing the same thing play 1 jingles then 4 weekdays music then 4 weekend music and over and over).I think you want 1 jingles and then 4 songs on weekdays Also you want the same rotations on weekends where 1 song will play and then 4 music 

    So here you go.

    its best to create a top of the in the calendar

    • create a playlist with the toh
    • place that in the calendar.(sorry you just have to do it 24 times and set it to repeat with no-end and link

    The advantage of this is that you can use the calendar to change this toh anytime without have to mess with the script


    Then crate your autodj


    Thats a good suggestion bear that in mind


    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.
  • I using airtime clendar for Program schedule, but autodj for all: music, jingles, etc.

    but very need how to fix this?
  • #Now here is  doing it only by the script way

    ##############################################################################################################



    #music = playlist (mode='randomize',reload=1200,reload_mode="rounds", "/home/mp3/muzika/Muzika/")

    jingles = playlist(mode='randomize',reload=1200,reload_mode="rounds", "/home/mp3/muzika/dzinglai/")

    weekends = playlist (mode='randomize',reload=1200,reload_mode="rounds", "/home/mp3/muzika/Muzika/Savaitgalio Muzika/")

    morningday = playlist (mode='randomize',reload=1200,reload_mode="rounds", "/home/mp3/muzika/Muzika/Rytas - DIENA/")

    night = playlist (mode='randomize',reload=1200,reload_mode="rounds", "/home/mp3/muzika/Muzika/Vakaro Muzika/")

    security = single("/home/mp3/muzika/dzinglai/Jingles/Radijo stotis fixfm su muzika.mp3")

    valanda = single("/home/mp3/muzika/kiti/valanda.mp3")

    #Lets  add autodj playtime
    # read here http://savonet.sourceforge.net/doc-svn/language.html

    mixed = switch([
                      ({ (1w) and 00h00m00s-17h59m59s}, morningday),
                      ({ (1w) and 18h00m00s-23h59m59s}, night),
                      ({ (2w) and 00h00m00s-4h59m59s}, night),
                      ({ (2w) and 05h00m00s-17h59m59s}, morningday),
                      ({ (2w) and 18h00m00s-23h59m59s}, night),
                      ({ (3w) and 00h00m00s-4h59m59s}, night),
                      ({ (3w) and 05h00m00s-17h59m59s}, morningday),
                      ({ (3w) and 18h00m00s-23h59m59s}, night),
                      ({ (4w) and 00h00m00s-4h59m59s}, night),
                      ({ (4w) and 05h00m00s-17h59m59s}, morningday),
                      ({ (4w) and 18h00m00s-23h59m59s}, night),
                      ({ (5w) and 00h00m00s-4h59m59s}, night),
                      ({ (5w) and 05h00m00s-15h59m59s}, morningday),
                      ({ (5w) and 18h00m00s-23h59m59s}, night),
                      ({ (6w) and (7w) },weekends),
                      ({ true }, delay(1.,
    morningday))     #this is played for missing times
                    ])


    # now lets set up a music rotation

    playrotation = rotate(weights=[1,4],[jingles,mixed])

    # add a TOH (can be represented by {0m0s} smooth switch but
    #lower the music playing and play a little higher like an alert

    valanda =amplify(1.2,valanda)  #play a little higher

    # see below for an alternative way of doing this,I prefer this method to have the music lowered

    playrotation =add([playrotation,
                            switch([
                                        ({0m0s},delay(1.,valanda))
                                     ])
                      ])


    default = fallback(track_sensitive=true,[playrotation,security])

    Post edited by Voisses Tech at 2014-12-07 13:05:41
    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.
  • There is a gap between 59m59s and 00m00s and so the smooth switch would be better but you also use the



    schedule =add([playrotation,
                            switch([
                                       ({0m0s},delay(1.,valanda))
                                     ])
                      ])


    default = fallback(track_sensitive=true,[schedule,playrotation,security])


    VOISSES
    Post edited by Voisses Tech at 2014-12-06 17:13:25
    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.
  • Doesn't work
  • Be more specific or precise

    What did not work?

    The Script,the rotations,the jingle every hour or it has a missing variable?

    Did you remember to check the script and then restart it?

    give me a synopsis of your log preferable 10 songs ,the log is obtained by issuing the command

    sudo airtime-log -t liquidsoap 


    you can also issue  the command

    sudo pico /var/log/airtime/pypo-liquidsoap/ls_script.log


    Please bear in mind these troubleshoot steps as you seek answers
    https://forum.sourcefabric.org/discussion/15654/airtime-troubleshoot-for-dummies-like-me-basic-things-you-can-do-to-see-under-the-hood

    VOISSES



    Post edited by Voisses Tech at 2014-12-06 17:07:39
    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.
  • Please note I made a correction the the toh since you have a list of files in the jingles directory ,you have to delay it from queing and playing more than one jingles behind each other.

    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.
  • ##############################################################################################################



    #music = playlist (mode='randomize',reload=1200,reload_mode="rounds", "/home/mp3/muzika/Muzika/")

    jingles = playlist(mode='randomize',reload=1200,reload_mode="rounds", "/home/mp3/muzika/dzinglai/")

    weekends= playlist (mode='randomize',reload=1200,reload_mode="rounds", "/home/mp3/muzika/Muzika/Savaitgalio Muzika/")

    morningday = playlist (mode='randomize',reload=1200,reload_mode="rounds", "/home/mp3/muzika/Muzika/Rytas - DIENA/")

    night = playlist (mode='randomize',reload=1200,reload_mode="rounds", "/home/mp3/muzika/Muzika/Vakaro Muzika/")

    security = single("/home/mp3/muzika/dzinglai/Jingles/Radijo stotis fixfm su muzika.mp3")

    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)),
    ({ 20h0m0s},delay(1.,valanda)),
    ({ 21h0m00s },delay(1.,valanda)),
    ({ 22h0m00s},delay(1.,valanda)),
    ({ 23h0m00s },delay(1.,valanda)),
    ])])

    mixed = add([ switch([
                      ({ (1w) and 00h00m00s-17h59m59s}, morningday),
                      ({ (1w) and 18h00m00s-23h59m59s}, night),
                      ({ (2w) and 00h00m00s-4h59m59s}, night),
                      ({ (2w) and 05h00m00s-17h59m59s}, morningday),
                      ({ (2w) and 18h00m00s-23h59m59s}, night),
                      ({ (3w) and 00h00m00s-4h59m59s}, night),
                      ({ (3w) and 05h00m00s-17h59m59s}, morningday),
                      ({ (3w) and 18h00m00s-23h59m59s}, night),
                      ({ (4w) and 00h00m00s-4h59m59s}, night),
                      ({ (4w) and 05h00m00s-17h59m59s}, morningday),
                      ({ (4w) and 18h00m00s-23h59m59s}, night),
                      ({ (5w) and 00h00m00s-4h59m59s}, night),
                      ({ (5w) and 05h00m00s-15h59m59s}, morningday),
                      ({ (5w) and 18h00m00s-23h59m59s}, night),
                      ({ (6w) and (7w) },weekends),
                    ])])

    # now lets set up a music rotation

    playrotation = rotate(weights=[1,4],[jingles,mixed])

    #put this instead 
    default = fallback(track_sensitive=true,[schedule,playrotation,security])


    ##############################################################################################################


    play only jingles
  • ##############################################################################################################



    #music = playlist (mode='randomize',reload=1200,reload_mode="rounds", "/home/mp3/muzika/Muzika/")

    jingles = playlist(mode='randomize',reload=1200,reload_mode="rounds", "/home/mp3/muzika/dzinglai/")

    weekends= playlist (mode='randomize',reload=1200,reload_mode="rounds", "/home/mp3/muzika/Muzika/Savaitgalio Muzika/")

    morningday = playlist (mode='randomize',reload=1200,reload_mode="rounds", "/home/mp3/muzika/Muzika/Rytas - DIENA/")

    night = playlist (mode='randomize',reload=1200,reload_mode="rounds", "/home/mp3/muzika/Muzika/Vakaro Muzika/")

    security = single("/home/mp3/muzika/dzinglai/Jingles/Radijo stotis fixfm su muzika.mp3")

    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)),
    ({ 20h0m0s},delay(1.,valanda)),
    ({ 21h0m00s },delay(1.,valanda)),
    ({ 22h0m00s},delay(1.,valanda)),
    ({ 23h0m00s },delay(1.,valanda)),
    ])])

    mixed = add([ switch([
                      ({ (1w) and 00h00m00s-17h59m59s}, morningday),
                      ({ (1w) and 18h00m00s-23h59m59s}, night),
                      ({ (2w) and 00h00m00s-4h59m59s}, night),
                      ({ (2w) and 05h00m00s-17h59m59s}, morningday),
                      ({ (2w) and 18h00m00s-23h59m59s}, night),
                      ({ (3w) and 00h00m00s-4h59m59s}, night),
                      ({ (3w) and 05h00m00s-17h59m59s}, morningday),
                      ({ (3w) and 18h00m00s-23h59m59s}, night),
                      ({ (4w) and 00h00m00s-4h59m59s}, night),
                      ({ (4w) and 05h00m00s-17h59m59s}, morningday),
                      ({ (4w) and 18h00m00s-23h59m59s}, night),
                      ({ (5w) and 00h00m00s-4h59m59s}, night),
                      ({ (5w) and 05h00m00s-15h59m59s}, morningday),
                      ({ (5w) and 18h00m00s-23h59m59s}, night),
                      ({ (6w) and (7w) },weekends),
                    ])])

    # now lets set up a music rotation

    playrotation = rotate(weights=[1,4],[jingles,mixed])

    #put this instead 
    default = fallback(track_sensitive=true,[schedule,playrotation,security])


    ##############################################################################################################


    play only jingles
  • #put this instead
    default = fallback(track_sensitive=true,[schedule,playrotation,security])

    That is where the problem is so lets change the rubics or logics

    It basically saying

    do the schedule, then move to the rotation  but the schedule is not breaking fast enough maybe because  of timing,so lets break it

    #put this instead

    musicbreak= fallback.skip(input=schedule,playrotation) # This will also kick the current song playing #and que a newsong on the break

    default = fallback(track_sensitive=true,[musicbreak,security])

    #**********************************************************************************************************

    • You have to tell me what is wrong so I can fix it.
    • Remember I am not testing so I cannot identify a specific problem



    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.
  • In our scipt above
    #put this instead
    default = fallback(track_sensitive=true,[schedule,playrotation,security])

    That is where the problem is so lets change the rubics or logics

    It basically saying

    do the schedule, then move to the rotation  but the schedule is not breaking fast enough maybe because  of timing,so lets break it

    #put this instead

    musicbreak= fallback.skip(input=schedule,playrotation) # This will also kick the current song playing #and que a newsong on the break

    default = fallback(track_sensitive=true,[musicbreak,security])

    #**********************************************************************************************************

    • You have to tell me what is wrong so I can fix it.
    • Remember I am not testing so I cannot identify a specific problem
    • What we fixed here will benefit others


    VOISSES
    Post edited by Voisses Tech at 2014-12-07 09:30:30
    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.
  • Doesn't work too only jingles...

    ##############################################################################################################



    #music = playlist (mode='randomize',reload=1200,reload_mode="rounds", "/home/mp3/muzika/Muzika/")

    jingles = playlist(mode='randomize',reload=1200,reload_mode="rounds", "/home/mp3/muzika/dzinglai/")

    weekends= playlist (mode='randomize',reload=1200,reload_mode="rounds", "/home/mp3/muzika/Muzika/Savaitgalio Muzika/")

    morningday = playlist (mode='randomize',reload=1200,reload_mode="rounds", "/home/mp3/muzika/Muzika/Rytas - DIENA/")

    night = playlist (mode='randomize',reload=1200,reload_mode="rounds", "/home/mp3/muzika/Muzika/Vakaro Muzika/")

    security = single("/home/mp3/muzika/dzinglai/Jingles/Radijo stotis fixfm su muzika.mp3")

    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)),
    ({ 20h0m0s},delay(1.,valanda)),
    ({ 21h0m00s },delay(1.,valanda)),
    ({ 22h0m00s},delay(1.,valanda)),
    ({ 23h0m00s },delay(1.,valanda)),
    ])])

    mixed = add([ switch([
                      ({ (1w) and 00h00m00s-17h59m59s}, morningday),
                      ({ (1w) and 18h00m00s-23h59m59s}, night),
                      ({ (2w) and 00h00m00s-4h59m59s}, night),
                      ({ (2w) and 05h00m00s-17h59m59s}, morningday),
                      ({ (2w) and 18h00m00s-23h59m59s}, night),
                      ({ (3w) and 00h00m00s-4h59m59s}, night),
                      ({ (3w) and 05h00m00s-17h59m59s}, morningday),
                      ({ (3w) and 18h00m00s-23h59m59s}, night),
                      ({ (4w) and 00h00m00s-4h59m59s}, night),
                      ({ (4w) and 05h00m00s-17h59m59s}, morningday),
                      ({ (4w) and 18h00m00s-23h59m59s}, night),
                      ({ (5w) and 00h00m00s-4h59m59s}, night),
                      ({ (5w) and 05h00m00s-15h59m59s}, morningday),
                      ({ (5w) and 18h00m00s-23h59m59s}, night),
                      ({ (6w) and (7w) },weekends),
                    ])])

    # now lets set up a music rotation

    playrotation = rotate(weights=[1,4],[jingles,mixed])

    #put this instead 

    musicbreak= fallback.skip(input=schedule,playrotation) # This will also kick the current song playing #and que a newsong on the break

    default = fallback(track_sensitive=true,[musicbreak,security])


    ##############################################################################################################

    please me full autodj code edited :/ Im not pro with airtime :D
    Post edited by TheNerka at 2014-12-07 12:22:00
  • Go back to what I wrote above and look at where I put the code above .Its correct what I have.
    My Gosh How could I not look back at what you were sending back to me
    You have two add switch

    one should be an add switch for toh,the other is a switch

    I have highlighted the section you have wrong

    Please delete everything you have and copy the information in this file I attached as I have it.

    When i used to teach,I never took likely that anybody that I will encounter is a pro not even myself.I am always available for new approaches
    I still today think ,there is so much to learn,that today you are pro,tomorrow we are all novice

    Voisses

    Do not use the first script below it will complain that the variable schedule is missing.I am unable to delete it

    Post edited by Voisses Tech at 2014-12-07 18:47:45
    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.
  • I have actually Installed the script and Have confidence in it that I will use it on my show tonight 2300 until 0500 tomorrow. EST.
    You can hear me testing at http://tunein.com/radio/BIGLINK-RADIO-s190864/

    Please use the second script above.The first one will say the variable schedule is missing

    I am unable to delete it so I attach it again here

    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.
  • Working, but I wanted to ask you not to create another topic that I ask this here:
    How to code the show last played songs from Airtime autodj php?