123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- bin_dir = "/usr/lib/airtime/api_clients"
- #############################
- ## Common
- #############################
- # Value needed to access the API
- api_key = '3MP2IUR45E6KYQ01CUYK'
- # 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%%'
- # URL to commit multiple updates from media monitor at the same time
- reload_metadata_group = 'reload-metadata-group/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%%'
- # 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%%'
- #URL to check live stream auth
- check_live_stream_auth = 'check-live-stream-auth/format/json/api_key/%%api_key%%/username/%%username%%/password/%%password%%/djtype/%%djtype%%'
- #URL to update source status
- update_source_status = 'update-source-status/format/json/api_key/%%api_key%%/sourcename/%%sourcename%%/status/%%status%%'
- get_bootstrap_info = 'get-bootstrap-info/format/json/api_key/%%api_key%%'
- get_files_without_replay_gain = 'get-files-without-replay-gain/api_key/%%api_key%%/dir_id/%%dir_id%%'
- update_replay_gain_value = 'update-replay-gain-value/api_key/%%api_key%%'
|