mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 18:29:48 +02:00
Improve visibility on scale_soc setting
This commit is contained in:
parent
874e54a4d7
commit
6f1bffea5e
2 changed files with 8 additions and 5 deletions
|
@ -23,7 +23,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Preferences settings; // Store user settings
|
Preferences settings; // Store user settings
|
||||||
const char* version_number = "5.4.dev"; // The current software version, shown on webserver
|
const char* version_number = "5.4.dev"; //The current software version, shown on webserver
|
||||||
// Interval settings
|
// Interval settings
|
||||||
int intervalUpdateValues = 4800; // Interval at which to update inverter values / Modbus registers
|
int intervalUpdateValues = 4800; // Interval at which to update inverter values / Modbus registers
|
||||||
const int interval10 = 10; // Interval for 10ms tasks
|
const int interval10 = 10; // Interval for 10ms tasks
|
||||||
|
|
|
@ -15,11 +15,14 @@ String settings_processor(const String& var) {
|
||||||
// Show current settings with edit buttons and input fields
|
// Show current settings with edit buttons and input fields
|
||||||
content += "<h4 style='color: white;'>Battery capacity: <span id='BATTERY_WH_MAX'>" + String(BATTERY_WH_MAX) +
|
content += "<h4 style='color: white;'>Battery capacity: <span id='BATTERY_WH_MAX'>" + String(BATTERY_WH_MAX) +
|
||||||
" Wh </span> <button onclick='editWh()'>Edit</button></h4>";
|
" Wh </span> <button onclick='editWh()'>Edit</button></h4>";
|
||||||
content += "<h4 style='color: white;'>Rescale SOC: <span id='USE_SCALED_SOC'>" + String(USE_SCALED_SOC) +
|
content += "<h4 style='color: white;'>Rescale SOC: <span id='USE_SCALED_SOC'>" +
|
||||||
|
String(USE_SCALED_SOC ? "<span>✓</span>" : "<span style='color: red;'>✕</span>") +
|
||||||
"</span> <button onclick='editUseScaledSOC()'>Edit</button></h4>";
|
"</span> <button onclick='editUseScaledSOC()'>Edit</button></h4>";
|
||||||
content += "<h4 style='color: white;'>SOC max percentage: " + String(MAXPERCENTAGE / 10.0, 1) +
|
content += "<h4 style='color: " + String(USE_SCALED_SOC ? "white" : "darkgrey") +
|
||||||
|
";'>SOC max percentage: " + String(MAXPERCENTAGE / 10.0, 1) +
|
||||||
" </span> <button onclick='editSocMax()'>Edit</button></h4>";
|
" </span> <button onclick='editSocMax()'>Edit</button></h4>";
|
||||||
content += "<h4 style='color: white;'>SOC min percentage: " + String(MINPERCENTAGE / 10.0, 1) +
|
content += "<h4 style='color: " + String(USE_SCALED_SOC ? "white" : "darkgrey") +
|
||||||
|
";'>SOC min percentage: " + String(MINPERCENTAGE / 10.0, 1) +
|
||||||
" </span> <button onclick='editSocMin()'>Edit</button></h4>";
|
" </span> <button onclick='editSocMin()'>Edit</button></h4>";
|
||||||
content += "<h4 style='color: white;'>Max charge speed: " + String(MAXCHARGEAMP / 10.0, 1) +
|
content += "<h4 style='color: white;'>Max charge speed: " + String(MAXCHARGEAMP / 10.0, 1) +
|
||||||
" A </span> <button onclick='editMaxChargeA()'>Edit</button></h4>";
|
" A </span> <button onclick='editMaxChargeA()'>Edit</button></h4>";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue