battery basico funciona
This commit is contained in:
parent
fc8d3fd9fb
commit
d50b0767c4
|
|
@ -544,12 +544,12 @@
|
|||
>
|
||||
<input
|
||||
type="checkbox"
|
||||
name="other.externalVoltageMeasurement"
|
||||
id="other.externalVoltageMeasurement"
|
||||
name="battery.externalVoltageMeasurement"
|
||||
id="battery.externalVoltageMeasurement"
|
||||
class="form-check-input"
|
||||
/>
|
||||
<label
|
||||
for="other.externalVoltageMeasurement"
|
||||
for="battery.externalVoltageMeasurement"
|
||||
class="form-label"
|
||||
>Measure External Voltage</label
|
||||
>
|
||||
|
|
@ -558,13 +558,13 @@
|
|||
<div class="form-floating col-6 p-1">
|
||||
<input
|
||||
type="text"
|
||||
name="other.externalVoltagePin"
|
||||
id="other.externalVoltagePin"
|
||||
name="battery.externalVoltagePin"
|
||||
id="battery.externalVoltagePin"
|
||||
value="34"
|
||||
class="form-control"
|
||||
/>
|
||||
<label
|
||||
for="other.externalVoltagePin"
|
||||
for="battery.externalVoltagePin"
|
||||
class="form-label"
|
||||
>External Voltage Pin</label
|
||||
>
|
||||
|
|
|
|||
|
|
@ -165,8 +165,8 @@ function loadSettings(settings) {
|
|||
document.getElementById("beacon.interval").value = settings.beacon.interval;
|
||||
document.getElementById("other.rememberStationTime").value = settings.other.rememberStationTime;
|
||||
document.getElementById("battery.sendBatteryVoltage").checked = settings.battery.sendBatteryVoltage;
|
||||
document.getElementById("other.externalVoltageMeasurement").checked = settings.other.externalVoltageMeasurement;
|
||||
document.getElementById("other.externalVoltagePin").value = settings.other.externalVoltagePin;
|
||||
document.getElementById("battery.externalVoltageMeasurement").checked = settings.battery.externalVoltageMeasurement;
|
||||
document.getElementById("battery.externalVoltagePin").value = settings.battery.externalVoltagePin;
|
||||
// document.getElementById("beacon.igateSendsLoRaBeacon").value = settings.beacon.igateSendsLoRaBeacon;
|
||||
// document.getElementById("beacon.igateRepeatLoRaPackets").value = settings.beacon.igateRepeatLoRaPackets;
|
||||
document.getElementById("beacon.path").value = settings.beacon.path;
|
||||
|
|
@ -268,10 +268,10 @@ function updateImage() {
|
|||
|
||||
function toggleFields() {
|
||||
const externalVoltageMeasurementCheckbox = document.querySelector(
|
||||
'input[name="other.externalVoltageMeasurement"]'
|
||||
'input[name="battery.externalVoltageMeasurement"]'
|
||||
);
|
||||
const externalVoltagePinInput = document.querySelector(
|
||||
'input[name="other.externalVoltagePin"]'
|
||||
'input[name="battery.externalVoltagePin"]'
|
||||
);
|
||||
|
||||
externalVoltagePinInput.disabled =
|
||||
|
|
@ -279,10 +279,10 @@ function toggleFields() {
|
|||
}
|
||||
|
||||
const externalVoltageMeasurementCheckbox = document.querySelector(
|
||||
'input[name="other.externalVoltageMeasurement"]'
|
||||
'input[name="battery.externalVoltageMeasurement"]'
|
||||
);
|
||||
const externalVoltagePinInput = document.querySelector(
|
||||
'input[name="other.externalVoltagePin"]'
|
||||
'input[name="battery.externalVoltagePin"]'
|
||||
);
|
||||
|
||||
externalVoltageMeasurementCheckbox.addEventListener("change", function () {
|
||||
|
|
|
|||
Loading…
Reference in New Issue