mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-04-20 22:05:11 +00:00
funciona
This commit is contained in:
parent
5d9493314d
commit
601b72da9f
4 changed files with 56 additions and 37 deletions
|
|
@ -107,7 +107,7 @@
|
|||
Station
|
||||
</h5>
|
||||
<small
|
||||
>>Add your ham callsign and SSID. Optionally,
|
||||
>Add your ham callsign and SSID. Optionally,
|
||||
you can leave a comment describing your
|
||||
station. In the bottom there is a field for
|
||||
personal note that can only be seen in WEB GUI.</small
|
||||
|
|
@ -249,7 +249,7 @@
|
|||
name="personalNote"
|
||||
id="personalNote"
|
||||
class="form-control"
|
||||
placeholder="iGate/Digirepeater description"
|
||||
placeholder="A Couple of words."
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -940,13 +940,9 @@
|
|||
</svg>
|
||||
Battery
|
||||
</h5>
|
||||
<small>Battery Monitor & Health
|
||||
<br>
|
||||
<br>
|
||||
Max Voltage on input pin is 3.3V.
|
||||
<br>
|
||||
Calculate voltage divider accordingly.
|
||||
</small>
|
||||
<small>Battery Monitor & Health <br>
|
||||
Max Voltage on input pin is 3.3V.
|
||||
Calculate voltage divider accordingly.</small>
|
||||
</div>
|
||||
<div class="col-9 mt-2">
|
||||
<div class="row mt-2">
|
||||
|
|
@ -1010,6 +1006,15 @@
|
|||
>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<label for="battery.voltageDividerR1" class="form-label">External Voltage divider R1</label>
|
||||
<div class="input-group">
|
||||
<input type="number" name="battery.voltageDividerR1"
|
||||
id="battery.voltageDividerR1" placeholder="R1" class="form-control"
|
||||
step="0.1" min="1" max="1000" />
|
||||
<span class="input-group-text">kOhm</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<div class="form-floating col-7">
|
||||
|
|
@ -1058,6 +1063,13 @@
|
|||
>volts</span
|
||||
>
|
||||
</div>
|
||||
<div class="col">
|
||||
<label for="battery.voltageDividerR2" class="form-label">External Voltage divider R2</label>
|
||||
<div class="input-group">
|
||||
<input type="number" name="battery.voltageDividerR2" id="battery.voltageDividerR2" placeholder="R2" class="form-control" step="0.1" min="1" max="1000" />
|
||||
<span class="input-group-text">kOhm</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1723,4 +1735,4 @@
|
|||
</body>
|
||||
<script src="/bootstrap.js"></script>
|
||||
<script src="/script.js"></script>
|
||||
</html>
|
||||
</html>
|
||||
|
|
@ -162,6 +162,8 @@ function loadSettings(settings) {
|
|||
document.getElementById("battery.internalSleepVoltage").value = settings.battery.internalSleepVoltage.toFixed(1);
|
||||
document.getElementById("battery.sendExternalVoltage").checked = settings.battery.sendExternalVoltage;
|
||||
document.getElementById("battery.externalVoltagePin").value = settings.battery.externalVoltagePin;
|
||||
document.getElementById("battery.voltageDividerR1").value = settings.battery.voltageDividerR1;
|
||||
document.getElementById("battery.voltageDividerR2").value = settings.battery.voltageDividerR2;
|
||||
document.getElementById("battery.monitorExternalVoltage").checked = settings.battery.monitorExternalVoltage;
|
||||
document.getElementById("battery.externalSleepVoltage").value = settings.battery.externalSleepVoltage.toFixed(1);
|
||||
|
||||
|
|
@ -271,8 +273,9 @@ function toggleFields() {
|
|||
'input[name="battery.externalVoltagePin"]'
|
||||
);
|
||||
|
||||
externalVoltagePinInput.disabled =
|
||||
!sendExternalVoltageCheckbox.checked;
|
||||
externalVoltagePinInput.disabled = !sendExternalVoltageCheckbox.checked;
|
||||
voltageDividerR1.disabled = !sendExternalVoltageCheckbox.checked;
|
||||
voltageDividerR2.disabled = !sendExternalVoltageCheckbox.checked;
|
||||
}
|
||||
|
||||
const sendExternalVoltageCheckbox = document.querySelector(
|
||||
|
|
@ -282,8 +285,18 @@ const externalVoltagePinInput = document.querySelector(
|
|||
'input[name="battery.externalVoltagePin"]'
|
||||
);
|
||||
|
||||
const voltageDividerR1 = document.querySelector(
|
||||
'input[name="battery.voltageDividerR1"]'
|
||||
);
|
||||
|
||||
const voltageDividerR2 = document.querySelector(
|
||||
'input[name="battery.voltageDividerR2"]'
|
||||
);
|
||||
|
||||
sendExternalVoltageCheckbox.addEventListener("change", function () {
|
||||
externalVoltagePinInput.disabled = !this.checked;
|
||||
voltageDividerR1.disabled = !this.checked;
|
||||
voltageDividerR2.disabled = !this.checked;
|
||||
});
|
||||
|
||||
document.querySelector(".new button").addEventListener("click", function () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue