2022-06-09 20:11:05 +02:00
|
|
|
{ config, lib, ... }:
|
|
|
|
let
|
|
|
|
|
2022-07-11 13:53:55 +02:00
|
|
|
file = ../../configs/config_${toString config.dump-dvb.systemNumber}.json;
|
2022-06-11 01:19:12 +02:00
|
|
|
receiver_configs = [
|
|
|
|
{ frequency = 170795000; offset = 19550; device = "hackrf=0"; } # dresden - barkhausen
|
|
|
|
{ frequency = 170795000; offset = 19500; device = "hackrf=0"; } # dresden - zentralwerk
|
|
|
|
{ frequency = 153850000; offset = 20000; device = ""; } # chemnitz
|
|
|
|
{ frequency = 170795000; offset = 19550; device = "hackrf=0"; } # dresden unused
|
|
|
|
{ frequency = 170795000; offset = 19550; device = "hackrf=0"; } # dresden unused
|
|
|
|
];
|
2022-06-09 20:11:05 +02:00
|
|
|
|
2022-06-11 01:19:12 +02:00
|
|
|
receiver_config = lib.elemAt receiver_configs config.dump-dvb.systemNumber;
|
2022-06-09 20:11:05 +02:00
|
|
|
in
|
|
|
|
{
|
2022-07-07 15:57:15 +02:00
|
|
|
dump-dvb.gnuradio = {
|
2022-06-09 20:11:05 +02:00
|
|
|
enable = true;
|
|
|
|
frequency = receiver_config.frequency;
|
|
|
|
offset = receiver_config.offset;
|
|
|
|
device = receiver_config.device;
|
|
|
|
};
|
2022-07-07 15:57:15 +02:00
|
|
|
dump-dvb.telegramDecoder = {
|
2022-06-09 20:11:05 +02:00
|
|
|
enable = true;
|
2022-06-14 13:40:36 +02:00
|
|
|
server = [ "http://10.13.37.1:8080" "http://10.13.37.5:8080" ];
|
2022-06-09 20:11:05 +02:00
|
|
|
configFile = file;
|
2022-07-10 23:23:11 +02:00
|
|
|
authTokenFile = "/etc/telegram-decoder/token";
|
2022-06-09 20:11:05 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|