PLS and currently playing
  • Hey guys,

    I'm running Airtime on premise successfully -> www.neo5fm.de, airtime stream is stream.neo-five.de:800/airtime_256

    I'm currently missing 2 features which I cannot implement myself, but it seems that there are solutions - but the existing ones didn't work, as far as I tried to implement them. 

    1) How can I create a PLS file for my radio? 
    2) How can I implement the "currently playing" title on my website? All scripts I tried didn't work.

    Thank you for your support.

    Best regads,

    Thorsten
  • 1 Comment sorted by
  • 1) How can I create a PLS file for my radio?

    Before  :  You mean  to use in your playout! only via a mod script
    After     :  You Mean as an output! You  need to stream to a shoutcast server

    2) How can I implement the "currently playing" title on my website? All scripts I tried didn't work.

    You mean the API

    Do this first

    Key note is that your data must lies in a folder temp
    /tmp/live-info     for current stats
    /tmp/week-info  for  weekly stats

    so I would do this

    sudo touch /tmp/live-info && sudo touch /tmp/week-info

    then I would chmod them with permission 775

    like this

    sudo chmod 775 /tmp/live-info
    sudo chmod 775 /tmp/week-info

    note you cannot put -info in any other folder ,the scripts will not work,unless you know what you are and can modified the showinfo js

    Then  as per istructions here http://sourcefabric.booktype.pro/airtime-25-for-broadcasters/exporting-the-schedule/

    do not use  curl -s instead use curl -k   (we are now using https instead of http)

    so instead of

    curl -s "https://airtime.example.com/api/live-info/?callback=***" > /tmp/live-info

    use like

    curl -k "https://airtime.example.com/api/live-info/?callback=***" > /tmp/live-info


    and when you get the json type info

    use the data for the  current show to either parse it by ajax or the recommended js script



    Good luck and please state clearly what is the problems so we can help not just"it don't works
    y
     
    Cheers

    Post edited by Voisses Tech at 2015-07-05 19:43:00
    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.