live_client.cfg 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. bin_dir = "/usr/lib/airtime/api_clients"
  2. ############################################
  3. # RabbitMQ settings #
  4. ############################################
  5. rabbitmq_host = 'localhost'
  6. rabbitmq_user = 'guest'
  7. rabbitmq_password = 'guest'
  8. rabbitmq_vhost = '/'
  9. ############################################
  10. # Media-Monitor preferences #
  11. ############################################
  12. check_filesystem_events = 5 #how long to queue up events performed on the files themselves.
  13. check_airtime_events = 30 #how long to queue metadata input from airtime.
  14. touch_interval = 5
  15. chunking_number = 450
  16. request_max_wait = 3.0
  17. rmq_event_wait = 0.5
  18. logpath = '/home/rudi/throwaway/mm2.log'
  19. #############################
  20. ## Common
  21. #############################
  22. index_path = '/home/rudi/Airtime/python_apps/media-monitor2/sample_post.txt'
  23. # Value needed to access the API
  24. api_key = '5LF5D953RNS3KJSHN6FF'
  25. # Path to the base of the API
  26. api_base = 'api'
  27. # URL to get the version number of the server API
  28. version_url = 'version/api_key/%%api_key%%'
  29. #URL to register a components IP Address with the central web server
  30. register_component = 'register-component/format/json/api_key/%%api_key%%/component/%%component%%'
  31. # Hostname
  32. base_url = 'localhost'
  33. base_port = 80
  34. #############################
  35. ## Config for Media Monitor
  36. #############################
  37. # URL to setup the media monitor
  38. media_setup_url = 'media-monitor-setup/format/json/api_key/%%api_key%%'
  39. # Tell Airtime the file id associated with a show instance.
  40. upload_recorded = 'upload-recorded/format/json/api_key/%%api_key%%/fileid/%%fileid%%/showinstanceid/%%showinstanceid%%'
  41. # URL to tell Airtime to update file's meta data
  42. update_media_url = 'reload-metadata/format/json/api_key/%%api_key%%/mode/%%mode%%'
  43. # URL to tell Airtime we want a listing of all files it knows about
  44. list_all_db_files = 'list-all-files/format/json/api_key/%%api_key%%/dir_id/%%dir_id%%'
  45. # URL to tell Airtime we want a listing of all dirs its watching (including the stor dir)
  46. list_all_watched_dirs = 'list-all-watched-dirs/format/json/api_key/%%api_key%%'
  47. # URL to tell Airtime we want to add watched directory
  48. add_watched_dir = 'add-watched-dir/format/json/api_key/%%api_key%%/path/%%path%%'
  49. # URL to tell Airtime we want to add watched directory
  50. remove_watched_dir = 'remove-watched-dir/format/json/api_key/%%api_key%%/path/%%path%%'
  51. # URL to tell Airtime we want to add watched directory
  52. set_storage_dir = 'set-storage-dir/format/json/api_key/%%api_key%%/path/%%path%%'
  53. # URL to tell Airtime about file system mount change
  54. update_fs_mount = 'update-file-system-mount/format/json/api_key/%%api_key%%'
  55. # URL to tell Airtime about file system mount change
  56. handle_watched_dir_missing = 'handle-watched-dir-missing/format/json/api_key/%%api_key%%/dir/%%dir%%'
  57. #############################
  58. ## Config for Recorder
  59. #############################
  60. # URL to get the schedule of shows set to record
  61. show_schedule_url = 'recorded-shows/format/json/api_key/%%api_key%%'
  62. # URL to upload the recorded show's file to Airtime
  63. upload_file_url = 'upload-file/format/json/api_key/%%api_key%%'
  64. # URL to commit multiple updates from media monitor at the same time
  65. reload_metadata_group = 'reload-metadata-group/format/json/api_key/%%api_key%%'
  66. #number of retries to upload file if connection problem
  67. upload_retries = 3
  68. #time to wait between attempts to upload file if connection problem (in seconds)
  69. upload_wait = 60
  70. ################################################################################
  71. # Uncomment *one of the sets* of values from the API clients below, and comment
  72. # out all the others.
  73. ################################################################################
  74. #############################
  75. ## Config for Pypo
  76. #############################
  77. # Schedule export path.
  78. # %%from%% - starting date/time in the form YYYY-MM-DD-hh-mm
  79. # %%to%% - starting date/time in the form YYYY-MM-DD-hh-mm
  80. export_url = 'schedule/api_key/%%api_key%%'
  81. get_media_url = 'get-media/file/%%file%%/api_key/%%api_key%%'
  82. # Update whether a schedule group has begun playing.
  83. update_item_url = 'notify-schedule-group-play/api_key/%%api_key%%/schedule_id/%%schedule_id%%'
  84. # Update whether an audio clip is currently playing.
  85. update_start_playing_url = 'notify-media-item-start-play/api_key/%%api_key%%/media_id/%%media_id%%/schedule_id/%%schedule_id%%'
  86. # URL to tell Airtime we want to get stream setting
  87. get_stream_setting = 'get-stream-setting/format/json/api_key/%%api_key%%/'
  88. #URL to update liquidsoap status
  89. update_liquidsoap_status = 'update-liquidsoap-status/format/json/api_key/%%api_key%%/msg/%%msg%%/stream_id/%%stream_id%%/boot_time/%%boot_time%%'
  90. #URL to check live stream auth
  91. check_live_stream_auth = 'check-live-stream-auth/format/json/api_key/%%api_key%%/username/%%username%%/password/%%password%%/djtype/%%djtype%%'
  92. #URL to update source status
  93. update_source_status = 'update-source-status/format/json/api_key/%%api_key%%/sourcename/%%sourcename%%/status/%%status%%'
  94. get_bootstrap_info = 'get-bootstrap-info/format/json/api_key/%%api_key%%'
  95. get_files_without_replay_gain = 'get-files-without-replay-gain/api_key/%%api_key%%/dir_id/%%dir_id%%'
  96. update_replay_gain_value = 'update-replay-gain-value/api_key/%%api_key%%'