firmware wip
This commit is contained in:
parent
5f3294c56f
commit
e52a2fb4e0
1 changed files with 9 additions and 2 deletions
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in a new issue