mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-03-16 10:14:46 +01:00
cambio5
This commit is contained in:
parent
eb5b3aaa25
commit
d70a35de1c
|
|
@ -90,8 +90,6 @@
|
|||
},
|
||||
"other": {
|
||||
"rememberStationTime": 30,
|
||||
"lowPowerMode": false,
|
||||
"lowVoltageCutOff": 0,
|
||||
"backupDigiMode": false,
|
||||
"rebootMode": false,
|
||||
"rebootModeTime": 6
|
||||
|
|
|
|||
|
|
@ -655,20 +655,25 @@
|
|||
</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-12 mt-5">
|
||||
<div class="form-check form-switch">
|
||||
<input
|
||||
type="checkbox"
|
||||
name="digi.ecoMode"
|
||||
id="digi.ecoMode"
|
||||
class="form-check-input"
|
||||
/>
|
||||
<label
|
||||
for="digi.ecoMode"
|
||||
class="form-label"
|
||||
>Eco Mode<small> This will disable WiFi, Display, Leds and lower CPU Speed for Low Power Digipeater. (<strong>Caution:</strong> Active means No WebUI Configuration, so <strong>ONLY</strong> activate this for Remote Digipeater)</small></label
|
||||
>
|
||||
</div>
|
||||
<div class="col-12 mt-3">
|
||||
<label
|
||||
for="digi.ecoMode"
|
||||
class="form-label"
|
||||
>Eco Modes</label
|
||||
>
|
||||
<select
|
||||
class="form-select form-select"
|
||||
name="digi.ecoMode"
|
||||
id="digi.ecoMode"
|
||||
>
|
||||
<option value="0">OFF</option>
|
||||
<option value="1">
|
||||
Ultra Eco Mode (Sleep until Packet Rx (WiFiAP/WebUI and Display disabled))
|
||||
</option>
|
||||
<option value="2">
|
||||
OFF (Normal Mode without WiFiAP)
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1858,46 +1863,6 @@
|
|||
>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<div class="form-check form-switch">
|
||||
<div class="form-text">
|
||||
WiFi disabled. Sleep mode. Best for solar Digi with SX126X.
|
||||
</div>
|
||||
<input
|
||||
type="checkbox"
|
||||
name="other.lowPowerMode"
|
||||
id="other.lowPowerMode"
|
||||
class="form-check-input"
|
||||
/>
|
||||
<label
|
||||
for="other.lowPowerMode"
|
||||
class="form-label"
|
||||
>Low power mode (only for HT-CT62)</label
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 mt-3">
|
||||
<label
|
||||
for="other.lowVoltageCutOff"
|
||||
class="form-label"
|
||||
>Low voltage cut off <small>(Deep sleep below specific voltage)</small></label
|
||||
>
|
||||
<input
|
||||
type="text"
|
||||
name="other.lowVoltageCutOff"
|
||||
id="other.lowVoltageCutOff"
|
||||
placeholder="0"
|
||||
min="0"
|
||||
step="0.01"
|
||||
class="form-control"
|
||||
/>
|
||||
<span class="input-group-text"
|
||||
>Volts</span
|
||||
>
|
||||
<div class="form-text">
|
||||
MCU will deep sleep when below provided battery voltage to save power. Set to <strong>0</strong> if you don't want this option. <u>Please calibrate your voltage reading first!</u>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -220,9 +220,6 @@ function loadSettings(settings) {
|
|||
// Experimental
|
||||
document.getElementById("other.backupDigiMode").checked = settings.other.backupDigiMode;
|
||||
|
||||
document.getElementById("other.lowPowerMode").checked = settings.other.lowPowerMode;
|
||||
document.getElementById("other.lowVoltageCutOff").value = settings.other.lowVoltageCutOff || 0
|
||||
|
||||
// Management over APRS
|
||||
document.getElementById("remoteManagement.managers").value = settings.remoteManagement.managers;
|
||||
document.getElementById("remoteManagement.rfOnly").checked = settings.remoteManagement.rfOnly;
|
||||
|
|
|
|||
|
|
@ -132,8 +132,6 @@ class Configuration {
|
|||
public:
|
||||
String callsign;
|
||||
int rememberStationTime;
|
||||
bool lowPowerMode;
|
||||
double lowVoltageCutOff;
|
||||
bool backupDigiMode;
|
||||
bool rebootMode;
|
||||
int rebootModeTime;
|
||||
|
|
|
|||
|
|
@ -94,9 +94,6 @@ void Configuration::writeFile() {
|
|||
|
||||
data["other"]["backupDigiMode"] = backupDigiMode;
|
||||
|
||||
data["other"]["lowPowerMode"] = lowPowerMode;
|
||||
data["other"]["lowVoltageCutOff"] = lowVoltageCutOff;
|
||||
|
||||
data["personalNote"] = personalNote;
|
||||
|
||||
data["blacklist"] = blacklist;
|
||||
|
|
@ -216,9 +213,6 @@ bool Configuration::readFile() {
|
|||
|
||||
ntp.gmtCorrection = data["ntp"]["gmtCorrection"] | 0.0;
|
||||
|
||||
lowPowerMode = data["other"]["lowPowerMode"] | false;
|
||||
lowVoltageCutOff = data["other"]["lowVoltageCutOff"] | 0;
|
||||
|
||||
backupDigiMode = data["other"]["backupDigiMode"] | false;
|
||||
|
||||
rebootMode = data["other"]["rebootMode"] | false;
|
||||
|
|
@ -327,9 +321,6 @@ void Configuration::init() {
|
|||
|
||||
battery.sendVoltageAsTelemetry = false;
|
||||
|
||||
lowPowerMode = false;
|
||||
lowVoltageCutOff = 0;
|
||||
|
||||
backupDigiMode = false;
|
||||
|
||||
rebootMode = false;
|
||||
|
|
|
|||
|
|
@ -202,8 +202,6 @@ namespace WEB_Utils {
|
|||
Config.rememberStationTime = request->getParam("other.rememberStationTime", true)->value().toInt();
|
||||
|
||||
Config.backupDigiMode = request->hasParam("other.backupDigiMode", true);
|
||||
Config.lowPowerMode = request->hasParam("other.lowPowerMode", true);
|
||||
Config.lowVoltageCutOff = request->getParam("other.lowVoltageCutOff", true)->value().toDouble();
|
||||
|
||||
Config.personalNote = request->getParam("personalNote", true)->value();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue