# ToneOut Pi Feed Node — rtl_airband configuration
# 24-hour recording test mode: writes per-transmission files alongside live streams
mixers:
{
  fire_ems: {
    outputs: (
      {
        type = "icecast";
        server = "127.0.0.1";
        port = 8000;
        mountpoint = "glastonbury-fire-ems";
        name = "Glastonbury Fire/EMS";
        genre = "Public Safety";
        description = "Glastonbury, CT combined dispatch + EMS";
        username = "source";
        password = "tonefeed-source-2026";
        send_scan_freq_tags = false;
        continuous = true;
      }
    );
  };
};
devices:
({
    type = "rtlsdr";
    serial = "00000001";
    gain = 14.4;
    centerfreq = 452762500;
    correction = 0;
    sample_rate = 2.4;
    channels:
    (
        {
            freq = 452.45;
            ctcss = 192.8;
            notch = 192.8;
            modulation = "nfm";
            label = "Glastonbury Dispatch";
            squelch_threshold = -35;
            outputs: (
                {
                    type = "icecast";
                    server = "127.0.0.1";
                    port = 8000;
                    mountpoint = "glastonbury-dispatch";
                    name = "Glastonbury Dispatch";
                    genre = "Public Safety";
                    description = "Glastonbury, CT town dispatch (452.445 MHz)";
                    username = "source";
                    password = "tonefeed-source-2026";
                    send_scan_freq_tags = false;
                    continuous = true;
                },
                {
                    type = "file";
                    directory = "/var/lib/toneout/recordings/dispatch";
                    filename_template = "dispatch";
                    continuous = false;
                    split_on_transmission = true;
                    include_freq = false;
                },
                {
                    type = "mixer";
                    name = "fire_ems";
                    input = "left";
                }
            );
        },
        {
            freq = 453.075;
            modulation = "nfm";
            label = "Glastonbury EMS";
            squelch_threshold = -35;
            outputs: (
                {
                    type = "icecast";
                    server = "127.0.0.1";
                    port = 8000;
                    mountpoint = "glastonbury-ems";
                    name = "Glastonbury EMS";
                    genre = "Public Safety";
                    description = "Glastonbury, CT EMS dispatch (453.075 MHz)";
                    username = "source";
                    password = "tonefeed-source-2026";
                    send_scan_freq_tags = false;
                    continuous = true;
                },
                {
                    type = "file";
                    directory = "/var/lib/toneout/recordings/ems";
                    filename_template = "ems";
                    continuous = false;
                    split_on_transmission = true;
                    include_freq = false;
                },
                {
                    type = "mixer";
                    name = "fire_ems";
                    input = "right";
                }
            );
        }
    );
});
