Allow specifying custom rigctld cmdline arguments

This commit is contained in:
Mashintime 2023-02-12 12:40:50 -05:00
parent 8003a3c395
commit a22e4334a1
3 changed files with 21 additions and 4 deletions

View file

@ -62,15 +62,12 @@ const configDefaultSettings =
"hamlib_pttprotocol": "ignore",\
"hamlib_ptt_port": "ignore",\
"hamlib_dcd": "ignore",\
"hamlib_rigctld_port": "ignore",\
"hamlib_rigctld_ip": "ignore",\
"hamlib_rigctld_path": "ignore",\
"hamlib_rigctld_server_port": "ignore",\
"hamlbib_serialspeed_ptt": "9600",\
"hamlib_rigctld_port" : "4532",\
"hamlib_rigctld_ip" : "127.0.0.1",\
"hamlib_rigctld_path" : "",\
"hamlib_rigctld_server_port" : "4532",\
"hamlib_rigctld_custom_args": "",\
"spectrum": "waterfall",\
"tnclocation": "localhost",\
"enable_scatter" : "False",\

View file

@ -57,6 +57,7 @@ const hamlib_elements = [
"hamlib_rigctld_ip",
"hamlib_rigctld_path",
"hamlib_rigctld_server_port",
"hamlib_rigctld_custom_args",
];
// SET dbfs LEVEL GLOBAL
@ -646,6 +647,12 @@ window.addEventListener("DOMContentLoaded", () => {
"hamlib_rigctld_server_port"
).value;
paramList = paramList.concat("-t", hamlib_rigctld_server_port);
//Custom rigctld arguments to pass to rigctld
var hamlib_rigctld_custom_args = document.getElementById(
"hamlib_rigctld_custom_args"
).value;
paramList = paramList.concat(hamlib_rigctld_custom_args);
document.getElementById("hamlib_rigctld_command").value =
paramList.join(" "); // join removes the commas

View file

@ -2182,6 +2182,19 @@
<option value="ON">ON</option>
</select>
</div>
<div class="input-group input-group-sm mb-1">
<span class="input-group-text" style="width: 180px"
>Rigctld custom arguments</span
>
<input
type="text"
class="form-control"
placeholder="not typically needed"
id="hamlib_rigctld_custom_args"
aria-label="Custom arguments"
aria-describedby="basic-addon1"
/>
</div>
</div>
<!-- TNC Tab contents-->