Integrate RTC chip #16
|
@ -86,7 +86,8 @@ const char index_html[] PROGMEM = R"rawliteral(
|
||||||
|
|
||||||
WPM (current value %inputWPM%): <input type="number " name="inputWPM" value = %inputWPM%> (doesn't work yet)<br>
|
WPM (current value %inputWPM%): <input type="number " name="inputWPM" value = %inputWPM%> (doesn't work yet)<br>
|
||||||
|
|
||||||
<input type="hidden" name="inputTimeUnix" id="js_time_unix">
|
Current time (UTC): %inputTimeUnix%
|
||||||
|
<input type="hidden" name="inputTimeUnix" id="js_time_unix"><br>
|
||||||
|
|
||||||
inputFloat (current value %inputFloat%): <input type="number " name="inputFloat" value = %inputFloat%><br>
|
inputFloat (current value %inputFloat%): <input type="number " name="inputFloat" value = %inputFloat%><br>
|
||||||
<input type="submit" value="Submit"">
|
<input type="submit" value="Submit"">
|
||||||
|
@ -178,6 +179,8 @@ String processor(const String& var){
|
||||||
}
|
}
|
||||||
else if(var == "inputFloat"){
|
else if(var == "inputFloat"){
|
||||||
return readFile(SPIFFS, "/inputFloat.txt");
|
return readFile(SPIFFS, "/inputFloat.txt");
|
||||||
|
} else if(var == "inputTimeUnix"){
|
||||||
|
return rtc.now().timestamp();
|
||||||
}
|
}
|
||||||
return String();
|
return String();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user