add js8 settings to web configuration
This commit is contained in:
parent
978eea400d
commit
2198c00d00
@ -11,6 +11,7 @@ from owrx.form import (
|
|||||||
DropdownInput,
|
DropdownInput,
|
||||||
Option,
|
Option,
|
||||||
ServicesCheckboxInput,
|
ServicesCheckboxInput,
|
||||||
|
Js8ProfileCheckboxInput,
|
||||||
)
|
)
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
@ -145,14 +146,23 @@ class SettingsController(AdminController):
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
Section(
|
Section(
|
||||||
"WSJT-X settings",
|
"Decoding settings",
|
||||||
NumberInput("decoding_queue_workers", "Number of decoding workers"),
|
NumberInput("decoding_queue_workers", "Number of decoding workers"),
|
||||||
NumberInput("decoding_queue_length", "Maximum length of decoding job queue"),
|
NumberInput("decoding_queue_length", "Maximum length of decoding job queue"),
|
||||||
NumberInput(
|
NumberInput(
|
||||||
"wsjt_decoding_depth",
|
"wsjt_decoding_depth",
|
||||||
"WSJT decoding depth",
|
"Default WSJT decoding depth",
|
||||||
infotext="A higher decoding depth will allow more results, but will also consume more cpu",
|
infotext="A higher decoding depth will allow more results, but will also consume more cpu",
|
||||||
),
|
),
|
||||||
|
NumberInput(
|
||||||
|
"js8_decoding_depth",
|
||||||
|
"Js8Call decoding depth",
|
||||||
|
infotext="A higher decoding depth will allow more results, but will also consume more cpu",
|
||||||
|
),
|
||||||
|
Js8ProfileCheckboxInput(
|
||||||
|
"js8_enabled_profiles",
|
||||||
|
"Js8Call enabled modes"
|
||||||
|
),
|
||||||
),
|
),
|
||||||
Section(
|
Section(
|
||||||
"Background decoding",
|
"Background decoding",
|
||||||
|
@ -201,6 +201,17 @@ class ServicesCheckboxInput(MultiCheckboxInput):
|
|||||||
super().__init__(id, label, services, infotext)
|
super().__init__(id, label, services, infotext)
|
||||||
|
|
||||||
|
|
||||||
|
class Js8ProfileCheckboxInput(MultiCheckboxInput):
|
||||||
|
def __init__(self, id, label, infotext=None):
|
||||||
|
profiles = [
|
||||||
|
Option("normal", "Normal (15s, 50Hz, ~16WPM)"),
|
||||||
|
Option("slow", "Slow (30s, 25Hz, ~8WPM"),
|
||||||
|
Option("fast", "Fast (10s, 80Hz, ~24WPM"),
|
||||||
|
Option("turbo", "Turbo (6s, 160Hz, ~40WPM"),
|
||||||
|
]
|
||||||
|
super().__init__(id, label, profiles, infotext)
|
||||||
|
|
||||||
|
|
||||||
class DropdownInput(Input):
|
class DropdownInput(Input):
|
||||||
def __init__(self, id, label, options, infotext=None):
|
def __init__(self, id, label, options, infotext=None):
|
||||||
super().__init__(id, label, infotext=infotext)
|
super().__init__(id, label, infotext=infotext)
|
||||||
|
Loading…
Reference in New Issue
Block a user