Display calendar on separate website
  • Hi,

    Does anyone know how to show the calendar information from airtime onto a separate website? I know it is possible as some sites already use it.

    Thanks
  • 10 Comments sorted by
  • Mmmmm... can you please post some examples?

    I think you can do it parsing api's output with php and posting it to your page. i never tried this yet but maybe i can help you a little bit

    You must parse the output from http://{youraddress}/api/schedule/api_key/{yourapikey} . You will have a thing like this:

    {"status":{"range":{"start":"2011-05-09 
    <skipped> 
    Station"},"server_timezone":"+0200"}


  • On this website is an example of what I mean. The program schedule is what I am looking for. Being able to display a weekly calendar with the current playlist.

    I will try your suggestion, I think this is what I was looking for thanks.
  • Yeah, i got it! I need this function also, we can collaborate to create a script togheter! Smile (I'm not so good with php but i think that i can help you a little bit)

    That's all about the database, try to run this query on the postgres database:
    select gunid, track_title, artist_name, length, album_title, genre from cc_files;
    

    You will get all the tracks currently stored in your database. I noticed that gunid refers to "id" field from api's output, so it' all about this:
    select gunid, track_title, artist_name, length, album_title, genre from cc_files where gunid={api_parsed_id};
    

    And you will get all the information ready to be posted on your website! Wink
    Let's post here our updates about this work, that's very interesting!!!
  • Vote Up0Vote Down Paul BaranowskiPaul Baranowski
    Posts: 389Member, Administrator, Sourcefabric Team
    Please look in the /plugins directory of the GIT source code to get the
    frontend widgets.

    For a tutorial on setting them up, look here:
    http://wiki.sourcefabric.org/x/O4Bm


    Paul Baranowski
    CTO, Sourcefabric, http://sourcefabric.org

    +1 (416) 832-6436 (Cell)
    Skype: paulbaranowski
    720 Bathurst St. / Suite 203 / Toronto / ON / M5S 2R4 / Canada



    On Sat, May 7, 2011 at 9:53 AM, mellowtothemax <
    airtime-support@lists.sourcefabric.org> wrote:

    > Hi,
    >
    > Does anyone know how to show the calendar information from airtime onto a
    > separate website? I know it is possible as some sites already use it.
    >
    > Thanks
    >

  • Wow very good!

    Thanks a lot Paul! Wink
  • That's it, thanks
  • This is the content of /tmp/week-info and /tmp/live-info. You are not allowed to access this resource, should I be running the curl command as a specific user?
  • Is anyone else receiving the same message (see previous post)as me when they try to access

    http://localhost/api/week-info/?callback=***

    and

    http://localhost/api/live-info/?callback=***

    If so what can I do to fix it?
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    go to airtime preferences and enable
    Allow Remote Websites To Access "Schedule" Info?
    (Enable this to make front-end widgets work.)
  • Solved. Thanks very much