mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
adjusted settings
This commit is contained in:
parent
5093abc1dc
commit
a955d45518
4 changed files with 30 additions and 56 deletions
|
@ -9,6 +9,7 @@ import pinia from "../store/index";
|
||||||
setActivePinia(pinia);
|
setActivePinia(pinia);
|
||||||
|
|
||||||
import { settingsStore as settings, onChange } from "../store/settingsStore.js";
|
import { settingsStore as settings, onChange } from "../store/settingsStore.js";
|
||||||
|
import { sendModemCQ } from "../js/api.js";
|
||||||
|
|
||||||
import { useStateStore } from "../store/stateStore.js";
|
import { useStateStore } from "../store/stateStore.js";
|
||||||
const state = useStateStore(pinia);
|
const state = useStateStore(pinia);
|
||||||
|
@ -61,7 +62,7 @@ function getRigControlStuff() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function testHamlib() {
|
function testHamlib() {
|
||||||
alert("Not yet implemented.");
|
sendḾodemCQ();
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -295,57 +296,7 @@ function testHamlib() {
|
||||||
>
|
>
|
||||||
<!-- Shown when rigctld is selected-->
|
<!-- Shown when rigctld is selected-->
|
||||||
|
|
||||||
<div class="input-group input-group-sm mb-1">
|
|
||||||
<label class="input-group-text w-25"
|
|
||||||
>Rigctld control</label
|
|
||||||
>
|
|
||||||
<label class="input-group-text">
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
class="btn btn-sm btn-outline-success"
|
|
||||||
data-bs-toggle="tooltip"
|
|
||||||
data-bs-trigger="hover"
|
|
||||||
data-bs-html="false"
|
|
||||||
title="Start rigctld"
|
|
||||||
v-bind:class="{
|
|
||||||
disabled: state.rigctld_started == 'true',
|
|
||||||
}"
|
|
||||||
>
|
|
||||||
<i class="bi bi-play-fill"></i>
|
|
||||||
</button> </label
|
|
||||||
><label class="input-group-text">
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
class="btn btn-sm btn-outline-danger"
|
|
||||||
data-bs-toggle="tooltip"
|
|
||||||
data-bs-trigger="hover"
|
|
||||||
data-bs-html="false"
|
|
||||||
title="Stop rigctld"
|
|
||||||
v-bind:class="{
|
|
||||||
disabled:
|
|
||||||
state.rigctld_started == 'false' ||
|
|
||||||
state.rigctld_started === undefined,
|
|
||||||
}"
|
|
||||||
>
|
|
||||||
<i class="bi bi-stop-fill"></i>
|
|
||||||
</button>
|
|
||||||
</label>
|
|
||||||
<label class="input-group-text">
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
id="testHamlib"
|
|
||||||
class="btn btn-sm btn-outline-secondary"
|
|
||||||
data-bs-placement="bottom"
|
|
||||||
data-bs-toggle="tooltip"
|
|
||||||
data-bs-trigger="hover"
|
|
||||||
data-bs-html="true"
|
|
||||||
@click="testHamlib"
|
|
||||||
title="Test your hamlib settings and toggle PTT once. Button will become <strong class='text-success'>green</strong> on success and <strong class='text-danger'>red</strong> if fails."
|
|
||||||
>
|
|
||||||
PTT test
|
|
||||||
</button>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group input-group-sm mb-1">
|
<div class="input-group input-group-sm mb-1">
|
||||||
<span class="input-group-text" style="width: 180px"
|
<span class="input-group-text" style="width: 180px"
|
||||||
|
@ -368,6 +319,30 @@ function testHamlib() {
|
||||||
</option>
|
</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="input-group input-group-sm mb-1">
|
||||||
|
<label class="input-group-text w-25"
|
||||||
|
>Rigctld Test</label
|
||||||
|
>
|
||||||
|
|
||||||
|
<label class="input-group-text">
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
id="testHamlib"
|
||||||
|
class="btn btn-sm btn-outline-secondary"
|
||||||
|
data-bs-placement="bottom"
|
||||||
|
data-bs-toggle="tooltip"
|
||||||
|
data-bs-trigger="hover"
|
||||||
|
data-bs-html="true"
|
||||||
|
@click="testHamlib"
|
||||||
|
title="Test your hamlib settings and toggle PTT once. Button will become <strong class='text-success'>green</strong> on success and <strong class='text-danger'>red</strong> if fails."
|
||||||
|
>
|
||||||
|
Send a CQ
|
||||||
|
</button>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
:class="
|
:class="
|
||||||
|
|
|
@ -157,7 +157,7 @@ class CONFIG:
|
||||||
"""
|
"""
|
||||||
read config file
|
read config file
|
||||||
"""
|
"""
|
||||||
self.log.info("[CFG] reading...")
|
#self.log.info("[CFG] reading...")
|
||||||
if not self.config_exists():
|
if not self.config_exists():
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
|
@ -767,5 +767,4 @@ def kill_and_execute(binary_path, additional_args=None):
|
||||||
|
|
||||||
# Execute the binary with additional arguments non-blocking
|
# Execute the binary with additional arguments non-blocking
|
||||||
command = [binary_path] + (additional_args if additional_args else [])
|
command = [binary_path] + (additional_args if additional_args else [])
|
||||||
process = subprocess.Popen(command)
|
return subprocess.Popen(command)
|
||||||
return process
|
|
|
@ -224,7 +224,7 @@ class radio:
|
||||||
|
|
||||||
# Helper function to check if the value should be ignored
|
# Helper function to check if the value should be ignored
|
||||||
def should_ignore(value):
|
def should_ignore(value):
|
||||||
return value == 'ignore' or value == 0
|
return value in ['ignore', 0]
|
||||||
|
|
||||||
# Model ID, Serial Port, and Speed
|
# Model ID, Serial Port, and Speed
|
||||||
if not should_ignore(config.get('model_id', "0")):
|
if not should_ignore(config.get('model_id', "0")):
|
||||||
|
|
Loading…
Reference in a new issue