add new api stats

pull/1/head
Thomas Ballmann 3 years ago
parent b4c8f249f5
commit 248bef4b60

@ -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();

Loading…
Cancel
Save