firmware wip - Notification about Maintenance Mode in Menu bar
This commit is contained in:
parent
9196ef1076
commit
9e0c5056ae
1 changed files with 13 additions and 11 deletions
|
@ -291,7 +291,6 @@ a:active {
|
|||
width: 60%; min-width: 420px;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
@ -1734,21 +1733,24 @@ String returnHTMLheader(String MenuEntry = "") {
|
|||
}
|
||||
header += ">❓ Help</a></li>\n";
|
||||
|
||||
// sixth menu entry
|
||||
// sixth menu entry - time and status icons / info
|
||||
header += "<li><span class='MenuTime'>";
|
||||
header += timeClient.getFormattedTime();
|
||||
// status icons and info
|
||||
if(MaintenanceMode == true) {
|
||||
// status icons
|
||||
header += " | 🇲 ";
|
||||
header += MaintenanceDuration - ((millis() - MaintenanceStarted) / 1000);
|
||||
header += "s";
|
||||
}
|
||||
header += "</span></li>\n";
|
||||
|
||||
// seventh menu entry
|
||||
|
||||
// CanGrow Version
|
||||
header += "<li><a href='https://git.la10cy.net/DeltaLima/CanGrow' target='_blank'>CanGrow v";
|
||||
header += CanGrowVer;
|
||||
header += "</a></li>\n";
|
||||
|
||||
if(MaintenanceMode == true) {
|
||||
// status icons
|
||||
header += "<li><span>🇲</span></li>\n";
|
||||
}
|
||||
|
||||
// close <ul> and start <div>
|
||||
header += "</ul><div class='center'>";
|
||||
|
||||
|
@ -2405,7 +2407,7 @@ void POSTsystemSettings() {
|
|||
UseLEDrelais = webserver.arg("UseLEDrelais").toInt();
|
||||
UseFANrelais = webserver.arg("UseFANrelais").toInt();
|
||||
TemperatureSensor_Type = webserver.arg("TemperatureSensor_Type").toInt();
|
||||
MaintenanceDuration = webserver.arg("TemperatureSensor_Type").toInt();
|
||||
MaintenanceDuration = webserver.arg("MaintenanceDuration").toInt();
|
||||
|
||||
configured = true;
|
||||
|
||||
|
@ -2583,7 +2585,7 @@ void POSTsetOutput() {
|
|||
webserver.send(302, "text/plain", "switch: success!\n");
|
||||
}
|
||||
|
||||
if(EnableMaintenance > 0 ) {
|
||||
if((EnableMaintenance > 0) && (UseLEDrelais == false)) {
|
||||
MaintenanceMode = true;
|
||||
MaintenanceStarted = millis();
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue