diff --git a/src/WebApi.cpp b/src/WebApi.cpp index 11b8ac6..2211f4a 100644 --- a/src/WebApi.cpp +++ b/src/WebApi.cpp @@ -122,6 +122,8 @@ void WebApiClass::onSystemStatus(AsyncWebServerRequest* request) sprintf(version, "%d.%d.%d", CONFIG_VERSION >> 24 & 0xff, CONFIG_VERSION >> 16 & 0xff, CONFIG_VERSION >> 8 & 0xff); root[F("firmware_version")] = version; + root[F("uptime")] = esp_timer_get_time() / 1000000; + response->setLength(); request->send(response); } diff --git a/webapp/src/components/partials/FirmwareInfo.vue b/webapp/src/components/partials/FirmwareInfo.vue index cde8da1..8661ede 100644 --- a/webapp/src/components/partials/FirmwareInfo.vue +++ b/webapp/src/components/partials/FirmwareInfo.vue @@ -31,6 +31,10 @@