RTL Airband - ver1

Z Poznámkový blok
Přejít na: navigace, hledání
# Moje konfugurace ... Do toho nikomu nic neni ..

# global settings
stats_filepath = "usr/local/etc/airband-stats.txt"; # Nastavi soubor pto export statistik
multiple_demod_threads = true;                      # Povoli vecevlaknove zpracovani demodulece. Jen pro Rasberry 3 a vyssi
multiple_output_threads = true;                     # Povoli vecevlaknove zpracovani vystupu. Vyznam jen pokud je vyce jak 2 vystupy.

# mixer setting - neni potreba, pokud streamy budou posilany primo, v konfiguraci devices nebude pouzit type mixer
mixers: {
  mixer1: {
    outputs: (
        {
          type = "icecast";
          server = "rs.slapnet.cz";
          port = 8000;
          mountpoint = "brno-mix1";
          username = "user";
          password = "1234";
          name = "Turany zem, SLZ, Turany radar";     # Pojmenovani streamu.
          description = "Prijem vybranych kannalu";   # Popis streamu - vetsinou se nezobrazuje
          genre = "ATC";                              # Zanr streamu
        }
    );
  },
  mixer2: {
    outputs: (
        {
          type = "icecast";
          server = "rs.slapnet.cz";
          port = 8000;
          mountpoint = "brno-mix2";
          username = "user";
          password = "1234";
          name = "Ground + Delivery";
          description = "Prijem testik ...";
          genre = "ATC";
        }
    );
  },
  mixer3: {
    outputs: (
        {
          type = "icecast";
          server = "rs.slapnet.cz";
          port = 8000;
          mountpoint = "brno-mix3";
          username = "user";
          password = "1234";
          name = "Scan Brno";
          description = "Scan letiste Brno";
          genre = "ATC";
          send_scan_freq_tags = true;
        }
    );
  }
};

# device list
devices:
(
  {
    type = "rtlsdr";
    index = 0;
    gain = 25;
    sample_rate = 2.048;        # Nastaveni sirky pasma ( 1.024, 1.4, 1.8, 1.92, 2.048, 2.4, 2.8 )
    centerfreq = 126.390;       # Stredni, vychozi frekvence
    correction = 55;            # Korekce RTL-SDR v ppm
    mode = "multichannel";      # Mod rezimu [ multichannel / scan ]
    channels:
    (
      {
        freq = 125.430;
        outputs: (
          {
            type = "mixer";
            name = "mixer1";
            balance = 0.8;      # Umisteni streamu v ramci stereo poslechu [-1.0 az 1.0] -1.0 jen v levo, 0.0 na stred, 1.0 jen v pravo
            ampfactor = 1.0;    # Uroven hlasitosti [0 az 2] Hodnota 1 bezezmeny, 0 - 1 ztlumeni, 1 - 2 zesileni
          }
        );
      },
      {
        freq = 125.830;
        outputs: (
          {
            type = "mixer";
            name = "mixer1";
            balance = 0.0;
            ampfactor = 1.0;
          }
        );
      },
      {
        freq = 127.350;
        outputs: (
          {
            type = "mixer";
            name = "mixer1";
            balance = -0.8;
            ampfactor = 1.0;
          }
        );
      }
    );
  },
  {
    type = "rtlsdr";
    index = 1;
    gain = 25;
    sample_rate = 2.4;
    centerfreq = 120.553;
    correction = 55;
    mode = "multichannel";
    channels:
    (
      {
        freq = 119.605;
        outputs: (
          {
            type = "mixer";
            name = "mixer2";
            balance = -0.8;
            ampfactor = 1.0;
          }
        );
      },
      {
        freq = 120.555;
        outputs: (
          {
            type = "mixer";
            name = "mixer2";
            balance = -0.4;
            ampfactor = 1.0;
          }
        );
      },
      {
        freq = 121.005;
        outputs: (
          {
            type = "mixer";
            name = "mixer2";
            balance = 0.8;
            ampfactor = 1.0;
          }
        );
      },
      {
        freq = 121.500;
        outputs: (
          {
            type = "mixer";
            name = "mixer1";
            balance = 0.0;
            ampfactor = 1.5;
          }
        );
      }
    );
  },
  {
    type = "rtlsdr";
    index = 2;
    gain = 25;
    correction = 55;
    mode = "scan";
    channels: (
      {
        freqs = ( 125.430, 131.800, 127.350, 119.605 );
        labels = ( "Zem", "Provoz", "Radar", "Vez" );
        afc = 0;                # Automaticka korekce frekvence. 0 - vypnuto, 1 - zapnuto
#       notch = 100.0;          # Uskopasmovy filtru
#       notch_q = 10.0;         # Selektivni filtr
#       bandwidth = 8000;       # Filtr kanalu pred modulaci
        outputs: (
          {
            type = "mixer";
            name = "mixer3";
          }
        );
      }
    );
  }
);