Automation
  • What would be the best way for me to completely automate what's playing? ie... play something randomly, but not have to schedule anything. My station has not and likely will never run on a schedule system.

    Is this a feature that's coming to airtime? I don't know... it seems a bit... obvious. Any basic player has a method to just play songs on shuffle without having to create a playlist or whatnot.

    Thanks for the help! 

    -Nolan
  • 18 Comments sorted by
  • Vote Up0Vote Down hoerichhoerich
    Posts: 627Member, Airtime Moderator
    without messing around with liquidsoap or icecast, this is not possible yet.

    but this should be implemented in v2.5.

    practically this would mean for v2.5 (if this feature is available then),
    to create a 24-hour-show per day and fill it with a recurring shuffle-playlist.
    Official Airtime Forum Manager
    --------------------------
    Most of the time an issue is located between keyboard and chair.
  • I don't mind messing around with liquidsoap if it works... 

    my ideal setup would be airtime streaming all the time, a DJ connects to /live or whatever, then icecast automatically switches over. DJ does his thing, then airtime takes back over. 

    No scheduling, no nothing. 

    I'm switching from using sc_trans and shoutcast 2, to icecast and airtime. 
    Shoutcast2 had some bugs, and development is basically on hold, unfortunately. So I guess from where I'm coming from, it's an expected feature, since sc_trans handles all that. 

    Edit: It would also be nice to schedule things in addition to it playing random stuff...
    Post edited by Nolan Wagner at 2013-05-25 19:09:02
  • I'm with Nolan that's EXACTLY what I need!
  • Vote Up0Vote Down hoerichhoerich
    Posts: 627Member, Airtime Moderator
    why not set a liquidsoap-fallback-function like explained in plenty of discussions onboard?
    just adapt ls_script.liq to your needs, to randomize.
    isn't this what you are looking for?

    http://forum.sourcefabric.org/discussion/15266/ls_script-liq-airtime-2-3-1/p1
    http://forum.sourcefabric.org/discussion/14687/autodj-unless-i-say-otherwise/p1
    http://forum.sourcefabric.org/discussion/11379/fallback-and-autodj/p1
    http://myassradio.com/index.php/software/airtime/5-fallback-folder

    or just search for fallback
    Official Airtime Forum Manager
    --------------------------
    Most of the time an issue is located between keyboard and chair.
  • Ah! so if I modify this, will it show what's playing in airtime, or no? 
  • Vote Up0Vote Down hoerichhoerich
    Posts: 627Member, Airtime Moderator

    Ah! so if I modify this, will it show what's playing in airtime, or no? 

    if you mean metadata-tags like Artist - Title I have to admit that I don't know, cause I don't care in my situation.
    But there are also a few discussions about metadata-forwarding with liquidsoap-fallback on the forum.

    All I can say is, when I connect wiith a Showsource with BUTT, Airtime handles the metadata-tags.

    fg, hoerich
    Official Airtime Forum Manager
    --------------------------
    Most of the time an issue is located between keyboard and chair.
  • I this currently a working solution to a random fallback -- http://myassradio.com/software/airtime/5-fallback-folder.pdf -- ?

    Or is there a better way?
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    nope ls_script.liq is always mandatory
    and this pdf is too old
    do a search on ls_script on this forum
  • Maybe I'm better off using an external solution, like a player and butt. Seems like every LS scripting thread has problems. I would have thought they would have solved this in airtime. Looks like a popular request to have a fallback player.
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    nope I'm using ls_script with modifications with no problems...
  • I'm with Nolan too. 
  • Can you share the ls_script?
  • Start with the simplest
    start with Sergei S. reply at this

    http://forum.sourcefabric.org/discussion/11379/fallback-and-autodj/p1
    but use the  fixed below to find out where to place your fallback if airtime is greater than 2:3:0

    fixed here

    http://forum.sourcefabric.org/discussion/15098/broken-playing-random-songs-on-silence

    This works also
    https://wiki.sourcefabric.org/display/CC/Playing+Random+Songs+on+Silence

    and more complex examples are 

    https://wiki.sourcefabric.org/display/CC/Playing+Jingles+or+Ads+on+15+Minute+Intervals


    or this

    https://wiki.sourcefabric.org/display/LS/UserScripts

    and if you read here http://savonet.sourceforge.net/doc-svn/documentation.html

     and can sort out the examples you could venture to wherever you chose.


    I however found that this does not occasionally stop liquidsoap from just going bunkers and stop.

    I have install 1.11 and my system stayed for 2 days no problem,I then put a web stream and after 4 hours liquidsoap quits.

    I removed all webstreams and implement playlists in the calendar and liquidsoap gave me 3 days this time.

    So IMHO,I think there is either a missing code that when liquidsoap has either a bad stream or file it quits.

    I have one remote server 64bit with no fail2ban script  2gb Ram this have ran 1 month no problem
    I have another 32bit with fail2ban 1gb of ram and this quits as describe above.

    I am still trying to narrow down the problem but I will wait on 2.4
    I check out the demo and like it.

    I would suggest if you can upgrade to liquidsoap 1.11 everyone you will get up to a full day of service

     



    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.
  • Thanks for all the info.

                                 
    Post edited by Anthony Bouchard at 2013-06-20 01:51:25
  • the only problem with the fallback solutions posted in here is the potential legal problems... in most countries you have to have a log of what you were broadcasting (something airtime fills wonderfully) but doing the fallback with those ls_script modifications won't show in the logs, wich could be problematic if the regulation agency decides to show up asking for those logs... if you really need automation then you should plan ahead and put some 24 hour smart block full of music, or wait/ask for the devs to implement an autodj feature in the airtime framework... correct me if i'm wrong in this
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    Yes and no
    You can grab theses informations directly form icecast2 or shoutcast.
    That's sure, it's not user friendly, but that's working.
    This is for this reason a lot of people waiting the 2.6 !
    normally the 2.6 will have a fallback playlist (it would be available unfortunately in December, a long time to wait...)
  • the only problem with the fallback solutions posted in here is the potential legal problems... in most countries you have to have a log of what you were broadcasting (something airtime fills wonderfully) but doing the fallback with those ls_script modifications won't show in the logs, wich could be problematic if the regulation agency decides to show up asking for those logs... if you really need automation then you should plan ahead and put some 24 hour smart block full of music, or wait/ask for the devs to implement an autodj feature in the airtime framework... correct me if i'm wrong in this



    Are you Kidding me?

    Now I do not know if I should answer a question  that arrives at a conclusion before even exploring a possibility but lets not leave any stone unturned so here are simple answer and then complex answer.

    Easy Solution

    If you print the any of the  /var/log/airtime/pypo-liquidsoap/ls_script.log

    When you use a fallback solution here it gives you even a better log than what the airtime logs will show.
    It tells which songs played,the time it played and a whole heap more information than you see  with airtime logs there (schedule1.) etc.

    Now to be clear airtime has its own play-out history tab which can be customized.
    so can this fallback be customized and certainly it can.

    Harder solution

    Let me give you a idea of the code and even if you want it in json you can.

    meta = ref []

    # s = some source

    # Update current metadata
    # converted in UTF8
    def update_meta(m) =
    m = metadata.export(m)
    recode = string.recode(out_enc="UTF-8")
    def f(x) =
    (recode(fst(x)),recode(snd(x)))
    end
    meta := list.map(f,m)
    end

    # Apply update_metadata
    # every time we see a new
    # metadata
    s = on_metadata(update_meta,s)

    # Return the json content
    # of meta
    def get_meta(~protocol,~data,~headers,uri) =
    m = !meta
    http_response(
    protocol=protocol,
    code=200,
    headers=[("Content-Type","application/json; charset=utf-8")],
    data=json_of(m)
    )
    end

    # Register get_meta at port 700
    harbor.http.register(port=7000,method="GET","/getmeta",get_meta)


    Now all you have to do in your browser is go to

    http://yourIP:7000/getmeta

    and you see it,
    You can include songname,album,composer you name it.

    For me I write (submit ) the data to html and then pull it down via php.

    Oh by the way go here

    http://savonet.sourceforge.net/doc-svn/harbor_http.html


    You will see many other alternatives.

    So here is my thoughts

    You should not hide any information through your logs,If I were an auditor,I would want the logs
    Over any customized or other results.

    Embrace authority,do not fear it,you will be a happier person no matter what the outcome.

    Finally, Ask like a child,fixed like an Adult.
    You should never come to conclusion before you start solving a problem,but I guess we
    are all built different.

    I hate software that does everything for me,Yes I hate them,I want to be able to
    Have it my way and that's why my main computer will never again be my main compute
    Nor will Any of the Windows Software.

    I want plugins, templates and add-on etc. like xbmc and mythtv.

    I want to be thought to fish not given a fish.

    Oh So for anyone who think why have two logs etc.

    Here is a master piece of software that will extract your information from Icecast.
    and gives auto DJ.

    http://sourceforge.net/projects/mscplite/









     
    Post edited by Voisses Tech at 2014-04-09 07:35:54
    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.
  • To the team of sourcefabric

    Please develope a template or plug-in approach.

    The Lesson to learn is though the playlist method now in airtime.

    There are compliants about the smartblocks,algorithm,moving the playlist,imports and export etc.

    Please review software like rivendell(RLM),SAMS(pal),XBMC(plugins and plugins),etc.

    do not go for radioboss,zaroradio aproaches

    One size will not fit all,

    You would be wasting your time if your playlist and automation are like all others, making people feel it best to use like the windows softwares.

    Trust me ,I could used Rivendell and Liqudisoap only. and complete almost all my task,but airtime ,
    or RadioDJ (voted the number1- radio automation) or SAMS but the web-based approach of airtime  is unsurpaased.

    Build templates that people can customised,do not focus too much on the core,you have done that already and IMHO its one of the thing currently attracts people to this software.
    web




    I dear you to be different.

    Good Luck
    VOISSES




    Post edited by Voisses Tech at 2014-04-09 07:57:50
    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.