From d4db1fa1f8d54a36bc7763065295d15c479b49c5 Mon Sep 17 00:00:00 2001 From: mattbk Date: Sun, 3 Sep 2023 10:56:54 -0500 Subject: [PATCH] Push current time back to web page. --- vulpes/src/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vulpes/src/main.cpp b/vulpes/src/main.cpp index f3e8653..87e9548 100644 --- a/vulpes/src/main.cpp +++ b/vulpes/src/main.cpp @@ -86,7 +86,8 @@ const char index_html[] PROGMEM = R"rawliteral( WPM (current value %inputWPM%): (doesn't work yet)
- + Current time (UTC): %inputTimeUnix% +
inputFloat (current value %inputFloat%):
@@ -178,6 +179,8 @@ String processor(const String& var){ } else if(var == "inputFloat"){ return readFile(SPIFFS, "/inputFloat.txt"); + } else if(var == "inputTimeUnix"){ + return rtc.now().timestamp(); } return String(); }