mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
added tci gui control field
This commit is contained in:
parent
ba7737594d
commit
9c6df07ef5
|
@ -70,6 +70,8 @@ const configDefaultSettings =
|
|||
"hamlib_rigctld_path" : "",\
|
||||
"hamlib_rigctld_server_port" : "4532",\
|
||||
"hamlib_rigctld_custom_args": "",\
|
||||
"tci_port" : "50001",\
|
||||
"tci_ip" : "127.0.0.1",\
|
||||
"spectrum": "waterfall",\
|
||||
"tnclocation": "localhost",\
|
||||
"enable_scatter" : "False",\
|
||||
|
|
|
@ -250,6 +250,11 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||
document.getElementById("hamlib_rigctld_ip").value = config.hamlib_rigctld_ip;
|
||||
document.getElementById("hamlib_rigctld_port").value =
|
||||
config.hamlib_rigctld_port;
|
||||
document.getElementById("tci_ip").value = config.tci_ip;
|
||||
document.getElementById("tci_port").value =
|
||||
config.tci_port;
|
||||
|
||||
|
||||
document.getElementById("hamlib_rigctld_path").value =
|
||||
config.hamlib_rigctld_path;
|
||||
document.getElementById("hamlib_rigctld_server_port").value =
|
||||
|
@ -1364,6 +1369,10 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||
|
||||
var rigctld_ip = document.getElementById("hamlib_rigctld_ip").value;
|
||||
var rigctld_port = document.getElementById("hamlib_rigctld_port").value;
|
||||
|
||||
var tci_ip = document.getElementById("tci_ip").value;
|
||||
var tci_port = document.getElementById("tci_port").value;
|
||||
|
||||
var hamlib_rigctld_server_port = document.getElementById(
|
||||
"hamlib_rigctld_server_port"
|
||||
).value;
|
||||
|
@ -1374,6 +1383,8 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||
var pttprotocol = document.getElementById("hamlib_pttprotocol").value;
|
||||
var hamlib_dcd = document.getElementById("hamlib_dcd").value;
|
||||
|
||||
|
||||
|
||||
var mycall = document.getElementById("myCall").value;
|
||||
var ssid = document.getElementById("myCallSSID").value;
|
||||
callsign_ssid = mycall.toUpperCase() + "-" + ssid;
|
||||
|
@ -1464,8 +1475,12 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||
}
|
||||
}
|
||||
|
||||
if (!document.getElementById("radio-control-switch-disabled").checked) {
|
||||
|
||||
|
||||
if (document.getElementById("radio-control-switch-rigctld").checked) {
|
||||
var radiocontrol = "rigctld";
|
||||
} else if (document.getElementById("radio-control-switch-tci").checked) {
|
||||
var radiocontrol = "tci";
|
||||
} else {
|
||||
var radiocontrol = "disabled";
|
||||
}
|
||||
|
@ -1499,6 +1514,8 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||
config.explorer_stats = explorer_stats;
|
||||
config.auto_tune = auto_tune;
|
||||
config.tx_delay = tx_delay;
|
||||
config.tci_ip = tci_ip;
|
||||
config.tci_port = tci_port;
|
||||
|
||||
//fs.writeFileSync(configPath, JSON.stringify(config, null, 2));
|
||||
FD.saveConfig(config, configPath);
|
||||
|
@ -1546,7 +1563,9 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||
enable_explorer,
|
||||
explorer_stats,
|
||||
auto_tune,
|
||||
tx_delay
|
||||
tx_delay,
|
||||
tci_ip,
|
||||
tci_port
|
||||
);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue