mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 17:59:27 +02:00
Add manual override charge(discharge limits
This commit is contained in:
parent
91bbb25270
commit
a9185be603
14 changed files with 66 additions and 34 deletions
|
@ -299,6 +299,14 @@ String settings_processor(const String& var, BatteryEmulatorSettingsStore& setti
|
|||
return String(settings.getUInt("WIFICHANNEL", 0));
|
||||
}
|
||||
|
||||
if (var == "CHGPOWER") {
|
||||
return String(settings.getUInt("CHGPOWER", 0));
|
||||
}
|
||||
|
||||
if (var == "DCHGPOWER") {
|
||||
return String(settings.getUInt("DCHGPOWER", 0));
|
||||
}
|
||||
|
||||
if (var == "LOCALIP1") {
|
||||
return String(settings.getUInt("LOCALIP1", 0));
|
||||
}
|
||||
|
@ -869,6 +877,17 @@ const char* getCANInterfaceName(CAN_Interface interface) {
|
|||
display: contents;
|
||||
}
|
||||
|
||||
form .if-estimated { display: none; } /* Integrations with manually set charge/discharge power */
|
||||
form[data-battery="3"] .if-estimated,
|
||||
form[data-battery="4"] .if-estimated,
|
||||
form[data-battery="6"] .if-estimated,
|
||||
form[data-battery="14"] .if-estimated,
|
||||
form[data-battery="24"] .if-estimated,
|
||||
form[data-battery="32"] .if-estimated,
|
||||
form[data-battery="33"] .if-estimated {
|
||||
display: contents;
|
||||
}
|
||||
|
||||
form .if-dblbtr { display: none; }
|
||||
form[data-dblbtr="true"] .if-dblbtr {
|
||||
display: contents;
|
||||
|
@ -963,6 +982,14 @@ const char* getCANInterfaceName(CAN_Interface interface) {
|
|||
</select>
|
||||
</div>
|
||||
|
||||
<div class="if-estimated">
|
||||
<label>Manual charging power, watt: </label>
|
||||
<input name='CHGPOWER' pattern="^[0-9]+$" type='text' value='%CHGPOWER%' />
|
||||
|
||||
<label>Manual discharge power, watt: </label>
|
||||
<input name='DCHGPOWER' pattern="^[0-9]+$" type='text' value='%DCHGPOWER%' />
|
||||
</div>
|
||||
|
||||
<div class="if-battery">
|
||||
<label for='BATTCOMM'>Battery comm I/F: </label><select name='BATTCOMM' id='BATTCOMM'>
|
||||
%BATTCOMM%
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue