firmware wip

This commit is contained in:
Marcus 2024-04-17 22:33:24 +02:00
parent 5f3294c56f
commit e52a2fb4e0

View file

@ -827,9 +827,16 @@ void wifiConnect() {
Serial.println(" CONNECTED!");
Serial.print("IP: ");
Serial.println(WiFi.localIP());
Serial.println("Get actual time from NTP");
Serial.println(":: Getting time from NTP ::");
timeClient.begin();
timeClient.update();
while ( ! timeClient.isTimeSet()) {
timeClient.update();
delay(500);
Serial.print(".");
}
Serial.println(timeClient.getFormattedTime());
Serial.println(timeClient.getEpochTime());
@ -1309,7 +1316,7 @@ void WEBsystemSettings() {
// TODO ugly. can this done be better?
// PumpOnTime int
body += "Pump on time: <input type='number' name='PumpOnTime' min='0' value='";
body += "Pump on time: <input type='number' name='PumpOnTime' min='0' max='255' value='";
body += PumpOnTime;
body += "'required><br>\n";