Set up scheduled program cycles #24

Merged
W1CDN merged 41 commits from program-cycle into main 2023-09-15 16:51:45 -05:00
Showing only changes of commit a996c13e63 - Show all commits

View File

@ -91,9 +91,9 @@ const char index_html[] PROGMEM = R"rawliteral(
}
// Refresh page after submit so values are right https://stackoverflow.com/a/1860732/2152245
window.onload = function() {
document.getElementById("hidden-form").onload = function() {
top.location.reload();
}
//document.getElementById("hidden-form").onload = function() {
//top.location.reload();
//}
// Current start date to string
s = %inputStartTimeUnix%;
current_start = new Date(s * 1000);
@ -110,7 +110,7 @@ const char index_html[] PROGMEM = R"rawliteral(
<p>Local time: <b><span id=local-time-unix></span></b></p>
<form action="/get" target="hidden-form" onsubmit="putDate(this);" accept-charset=utf-8>
<form action="/get" onsubmit="putDate(this);" accept-charset=utf-8>
<p>Sending program (cycle doesn't work yet) (current value: <b>%inputSend%</b>):
<select name="inputSend" id="send-program">
@ -597,8 +597,8 @@ void setup() {
// else {
// inputMessage = "No message sent";
// }
request->send(200, "text/plain", inputMessage);
//request->send(200, "text/plain", inputMessage);
request->redirect("/");
});
server.onNotFound(notFound);
server.begin();