api_client.cfg 4.4 KB

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