########################### ## THINGS TO CHANGE ## ########################### # The radio station details. radio_name = '' radio_description = '' radio_genre = '' # Daemon settings log_file = '' pid_file = '' # This is the file that will play when something catastophic occurs. # Make sure it's an absolute path! fallback_audio = '' # The URL to the radio's webpage. radio_url_main = 'https://' # The stream server (IP or FQDN) stream_address = '' stream_port = 8000 stream_password = '' # The authorization token for the DJ account. dj_token = '' ########################### ## THINGS TO LEAVE ALONE ## ########################### # This is the annotate string that incorporates the fallback audio if # we somehow have a problem communicating with the web server. fallback_annotate = 'annotate:artist="#{radio_name}",title="Stream is down :(",game="We\'ll be up again soon!":#{fallback_audio}' # These are specific URL endpoints for the radio controls API. url_next = '#{radio_url_main}/api/next/' url_played = '#{radio_url_main}/api/played/' # Headers for the API calls api_headers_next = [ ("Content-Type", "application/json; charset=utf-8"), ("Authorization", "Token #{dj_token}"), ("Accept", "application/vnd.liquidsoap.annotate") ] api_headers_played = [ ("Content-Type", "application/json; charset=utf-8"), ("Authorization", "Token #{dj_token}") ]