Set up scheduled program cycles #24
|
@ -78,8 +78,8 @@ const char index_html[] PROGMEM = R"rawliteral(
|
|||
console.log("Reloading");
|
||||
}
|
||||
// Current start date to string
|
||||
//s = %inputStartTimeUnix%;
|
||||
s = "1694019170";
|
||||
s = %inputStartTimeUnix%;
|
||||
//s = "1694019170";
|
||||
console.log(s);
|
||||
current_start = new Date(s * 1000);
|
||||
//current_start_utc = current_start.toUTCString();
|
||||
|
@ -218,7 +218,11 @@ String processor(const String& var){
|
|||
else if(var == "inputFloat"){
|
||||
return readFile(SPIFFS, "/inputFloat.txt");
|
||||
} else if(var == "inputStartTimeUnix"){
|
||||
return readFile(SPIFFS, "/inputStartTimeUnix.txt");
|
||||
String temp = readFile(SPIFFS, "/inputStartTimeUnix.txt");
|
||||
if(temp == ""){
|
||||
temp = "0";
|
||||
}
|
||||
return temp;
|
||||
}
|
||||
return String();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user