add js8 settings to web configuration
This commit is contained in:
		| @@ -11,6 +11,7 @@ from owrx.form import ( | ||||
|     DropdownInput, | ||||
|     Option, | ||||
|     ServicesCheckboxInput, | ||||
|     Js8ProfileCheckboxInput, | ||||
| ) | ||||
| import logging | ||||
|  | ||||
| @@ -145,14 +146,23 @@ class SettingsController(AdminController): | ||||
|             ), | ||||
|         ), | ||||
|         Section( | ||||
|             "WSJT-X settings", | ||||
|             "Decoding settings", | ||||
|             NumberInput("decoding_queue_workers", "Number of decoding workers"), | ||||
|             NumberInput("decoding_queue_length", "Maximum length of decoding job queue"), | ||||
|             NumberInput( | ||||
|                 "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", | ||||
|             ), | ||||
|             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( | ||||
|             "Background decoding", | ||||
|   | ||||
| @@ -201,6 +201,17 @@ class ServicesCheckboxInput(MultiCheckboxInput): | ||||
|         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): | ||||
|     def __init__(self, id, label, options, infotext=None): | ||||
|         super().__init__(id, label, infotext=infotext) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jakob Ketterl
					Jakob Ketterl