From e5bd78fd0ca06fd1de3e174d4f156c27c4996165 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sun, 7 Feb 2021 22:49:11 +0100 Subject: [PATCH] add fst4 and fst4w interval settings --- owrx/controllers/settings.py | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/owrx/controllers/settings.py b/owrx/controllers/settings.py index 38961f5..386d063 100644 --- a/owrx/controllers/settings.py +++ b/owrx/controllers/settings.py @@ -14,9 +14,11 @@ from owrx.form import ( Js8ProfileCheckboxInput, ReceiverKeysConverter, WfmTauValues, - WfmTauConverter + WfmTauConverter, + MultiCheckboxInput, ) from urllib.parse import quote +from owrx.wsjt import Fst4Profile, Fst4wProfile import json import logging @@ -178,8 +180,8 @@ class GeneralSettingsController(AdminController): NumberInput( "frequency_display_precision", "Frequency display precision", - infotext="Number of decimal digits to show on the frequency display" - ) + infotext="Number of decimal digits to show on the frequency display", + ), ), Section( "Digital voice", @@ -226,6 +228,16 @@ class GeneralSettingsController(AdminController): infotext="A higher decoding depth will allow more results, but will also consume more cpu", ), Js8ProfileCheckboxInput("js8_enabled_profiles", "Js8Call enabled modes"), + MultiCheckboxInput( + "fst4_enabled_intervals", + "Enabled FST4 intervals", + [Option(v, "{}s".format(v)) for v in Fst4Profile.availableIntervals], + ), + MultiCheckboxInput( + "fst4w_enabled_intervals", + "Enabled FST4W intervals", + [Option(v, "{}s".format(v)) for v in Fst4wProfile.availableIntervals], + ) ), Section( "Background decoding",