mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-02 18:51:38 +02:00
BF: Navigation was not updated in history.htm due to disable of yieldPerDay graph
* Added wifi channel number info to system.html
This commit is contained in:
parent
f2d8208b04
commit
802dc21863
3 changed files with 6 additions and 3 deletions
|
@ -398,6 +398,7 @@ class RestApi {
|
|||
obj[F("heap_free")] = mHeapFree;
|
||||
obj[F("sketch_total")] = ESP.getFreeSketchSpace();
|
||||
obj[F("sketch_used")] = ESP.getSketchSize() / 1024; // in kb
|
||||
obj[F("wifi_channel")] = WiFi.channel();
|
||||
getGeneric(request, obj);
|
||||
|
||||
getRadioNrf(obj.createNestedObject(F("radioNrf")));
|
||||
|
|
|
@ -343,6 +343,8 @@
|
|||
document.getElementById("pwrDayRefresh").innerHTML = refresh;
|
||||
if (addNextChart)
|
||||
setTimeout(() => { getAjax("/api/yieldDayHistory", parseYieldDayHistory); }, 50);
|
||||
else
|
||||
parseNav(obj.generic);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
}
|
||||
|
||||
function parseSysInfo(obj) {
|
||||
const data = ["sdk", "cpu_freq", "chip_revision",
|
||||
"chip_model", "chip_cores", "esp_type", "mac", "wifi_rssi", "ts_uptime",
|
||||
const data = ["sdk", "cpu_freq", "chip_revision", "device_name",
|
||||
"chip_model", "chip_cores", "esp_type", "mac", "wifi_rssi", "wifi_channel", "ts_uptime",
|
||||
"flash_size", "sketch_used", "heap_total", "heap_free", "heap_frag",
|
||||
"max_free_blk", "version", "modules", "env", "core_version", "reboot_reason"];
|
||||
|
||||
|
@ -49,7 +49,7 @@
|
|||
case 0: return badge(false, "{#UNKNOWN}", "warning"); break;
|
||||
case 1: return badge(true, "{#TRUE}"); break;
|
||||
default: return badge(false, "{#FALSE}"); break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function parseRadio(obj) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue