bin_dir = "/usr/lib/airtime/api_clients" ############################# ## Common ############################# # Value needed to access the API api_key = 'AAA' # Path to the base of the API api_base = 'api' # URL to get the version number of the server API version_url = 'version/api_key/%%api_key%%' #URL to register a components IP Address with the central web server register_component = 'register-component/format/json/api_key/%%api_key%%/component/%%component%%' # Hostname base_url = 'localhost' base_port = 80 ############################# ## Config for Media Monitor ############################# # URL to setup the media monitor media_setup_url = 'media-monitor-setup/format/json/api_key/%%api_key%%' # Tell Airtime the file id associated with a show instance. upload_recorded = 'upload-recorded/format/json/api_key/%%api_key%%/fileid/%%fileid%%/showinstanceid/%%showinstanceid%%' # URL to tell Airtime to update file's meta data update_media_url = 'reload-metadata/format/json/api_key/%%api_key%%/mode/%%mode%%' # URL to tell Airtime we want a listing of all files it knows about list_all_db_files = 'list-all-files/format/json/api_key/%%api_key%%/dir_id/%%dir_id%%' # URL to tell Airtime we want a listing of all dirs its watching (including the stor dir) list_all_watched_dirs = 'list-all-watched-dirs/format/json/api_key/%%api_key%%' # URL to tell Airtime we want to add watched directory add_watched_dir = 'add-watched-dir/format/json/api_key/%%api_key%%/path/%%path%%' # URL to tell Airtime we want to add watched directory remove_watched_dir = 'remove-watched-dir/format/json/api_key/%%api_key%%/path/%%path%%' # URL to tell Airtime we want to add watched directory set_storage_dir = 'set-storage-dir/format/json/api_key/%%api_key%%/path/%%path%%' # URL to tell Airtime about file system mount change update_fs_mount = 'update-file-system-mount/format/json/api_key/%%api_key%%' # URL to tell Airtime about file system mount change handle_watched_dir_missing = 'handle-watched-dir-missing/format/json/api_key/%%api_key%%/dir/%%dir%%' ############################# ## Config for Recorder ############################# # URL to get the schedule of shows set to record show_schedule_url = 'recorded-shows/format/json/api_key/%%api_key%%' # URL to upload the recorded show's file to Airtime upload_file_url = 'upload-file/format/json/api_key/%%api_key%%' #number of retries to upload file if connection problem upload_retries = 3 #time to wait between attempts to upload file if connection problem (in seconds) upload_wait = 60 ################################################################################ # Uncomment *one of the sets* of values from the API clients below, and comment # out all the others. ################################################################################ ############################# ## Config for Pypo ############################# # Schedule export path. # %%from%% - starting date/time in the form YYYY-MM-DD-hh-mm # %%to%% - starting date/time in the form YYYY-MM-DD-hh-mm export_url = 'schedule/api_key/%%api_key%%' get_media_url = 'get-media/file/%%file%%/api_key/%%api_key%%' # Update whether a schedule group has begun playing. update_item_url = 'notify-schedule-group-play/api_key/%%api_key%%/schedule_id/%%schedule_id%%' # Update whether an audio clip is currently playing. update_start_playing_url = 'notify-media-item-start-play/api_key/%%api_key%%/media_id/%%media_id%%/schedule_id/%%schedule_id%%' # ??? generate_range_url = 'generate_range_dp.php' # URL to tell Airtime we want to get stream setting get_stream_setting = 'get-stream-setting/format/json/api_key/%%api_key%%/' #URL to update liquidsoap status update_liquidsoap_status = 'update-liquidsoap-status/format/json/api_key/%%api_key%%/msg/%%msg%%/stream_id/%%stream_id%%/boot_time/%%boot_time%%' ############## # OBP config # ############## # URL to get the version number of the server API #version_url = 'api/pypo/status/json' # Schedule export path. # %%from%% - starting date/time in the form YYYY-MM-DD-hh-mm # %%to%% - starting date/time in the form YYYY-MM-DD-hh-mm # Update whether an item has been played. #update_item_url = 'api/pypo/update_shedueled_item/$$item_id%%?played=%%played%%' # Update whether an item is currently playing. #update_start_playing_url = 'api/pypo/mod/medialibrary/?playlist_type=%%playlist_type%%&export_source=%%export_source%%&media_id=%%media_id%%&playlist_id=%%playlist_id%%&transmission_id=%%transmission_id%%' # ??? #generate_range_url = 'api/pypo/generate_range_dp/'