I've written some jQuery/javascript functions that pull the artist/title info from the Liquidsoap flows website. To do that, I added a small section to my Liquidsoap script to allow it to publish my radio information. It looks something like:
s = register_flow(radio="radio name", website="http://myradiowebsite.com",description="Small blurb about my radio station",genre="misc",user="radio_user",password="radio_password",streams[("mp3/128k","http://radio_ip:port)],s)
This appears just before I call output.shoutcast(). Magically, Liquidsoap registers my radio on its flows website and I have programmatic access to lots of useful information via their io.socket.js functions. I was thinking I could easily mock up an Airtime page to show that information. This is useful to me because when a scheduled show is not playing on my radio, I broadcast random selections from my default music directory and I would like to see what is currently playing.
Where would the best place be to put the call to register_flow() - would this be in ls_script.liq?