From 248bef4b60b36a07b64537aa4f0992b91f626ce8 Mon Sep 17 00:00:00 2001 From: Thomas Ballmann Date: Thu, 24 Dec 2020 12:19:26 +0100 Subject: [PATCH] add new api stats --- lib/app/app.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/app/app.cpp b/lib/app/app.cpp index e4ac6a5..1c0be61 100644 --- a/lib/app/app.cpp +++ b/lib/app/app.cpp @@ -115,7 +115,9 @@ void setupApp() doc["device"]["id"] = DeviceId; doc["device"]["time"] = time(NULL); doc["device"]["name"] = NVS.getString("device.name"); + doc["device"]["theme"] = NVS.getString("device.theme"); doc["device"]["hostname"] = WiFi.getHostname(); + doc["device"]["runtime"] = ceil(millis() / 1000); doc["device"]["bootCycle"] = deviceGetBootCount(); doc["device"]["screen"]["width"] = displayGetWidth(); doc["device"]["screen"]["height"] = displayGetHeight();