two_dongles_multiple_outputs.conf 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. # Example configuration file for 2 dongles.
  2. # First dongle - scanning mode, NFM modulation, three frequencies,
  3. # output to Icecast stream, to a file and to PulseAudio server
  4. # on a local network.
  5. # Second dongle - multichannel mode, three channels:
  6. #
  7. # - channel 1: AM, goes to Icecast stream
  8. # - channel 2: AM, goes to two Icecast streams
  9. # - channel 3: NFM, goes to two files
  10. #
  11. # Dongles are specified with their serial numbers instead of
  12. # indexes, because the latter can change when devices are
  13. # reconnected into different USB ports.
  14. #
  15. # Refer to https://github.com/charlie-foxtrot/RTLSDR-Airband/wiki
  16. # for description of keywords and config syntax.
  17. devices:
  18. ({
  19. type = "rtlsdr";
  20. serial = "777755221";
  21. gain = 25;
  22. correction = 80;
  23. mode = "scan";
  24. channels:
  25. (
  26. {
  27. modulation = "nfm";
  28. freqs = ( 152.1, 168.25, 168.375 );
  29. outputs: (
  30. {
  31. type = "icecast";
  32. server = "icecast.server.example.org";
  33. port = 8080;
  34. mountpoint = "utility.mp3";
  35. name = "Utility channels";
  36. username = "source";
  37. password = "mypassword";
  38. },
  39. {
  40. type = "file";
  41. directory = "/home/pi/recordings";
  42. filename_template = "utility";
  43. },
  44. {
  45. type = "pulse";
  46. server = "192.168.11.10";
  47. stream_name = "Utility channels";
  48. continuous = false;
  49. }
  50. );
  51. }
  52. );
  53. },
  54. {
  55. type = "rtlsdr";
  56. serial = "33433123";
  57. gain = 20;
  58. centerfreq = 118.5;
  59. correction = 43;
  60. mode = "multichannel";
  61. channels:
  62. (
  63. {
  64. freq = 118.15;
  65. outputs: (
  66. {
  67. type = "icecast";
  68. server = "icecast.server.example.org";
  69. port = 8080;
  70. mountpoint = "TWR.mp3";
  71. name = "Tower";
  72. genre = "ATC";
  73. username = "source";
  74. password = "mypassword";
  75. }
  76. );
  77. },
  78. {
  79. freq = 119.425;
  80. outputs: (
  81. {
  82. type = "icecast";
  83. server = "icecast.server.example.org";
  84. port = 8080;
  85. mountpoint = "ACC.mp3";
  86. name = "Radar";
  87. genre = "ATC";
  88. username = "source";
  89. password = "mypassword";
  90. },
  91. {
  92. type = "icecast";
  93. server = "other.server.example.org";
  94. port = 9999;
  95. mountpoint = "feed.mp3";
  96. username = "user";
  97. password = "secretpass";
  98. }
  99. );
  100. },
  101. {
  102. freq = 119.6;
  103. modulation = "nfm";
  104. outputs: (
  105. {
  106. type = "file";
  107. directory = "/home/pi/recordings";
  108. filename_template = "somechannel";
  109. },
  110. {
  111. type = "file";
  112. directory = "/home/pi/recordings";
  113. filename_template = "somechannel_full";
  114. continuous = true;
  115. }
  116. );
  117. }
  118. );
  119. }
  120. );