mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-30 01:06:11 +02:00
Add mqtt sunrise/sunset + setupAp + system.html
This commit is contained in:
parent
da04d3ff73
commit
553f64caa3
8 changed files with 92 additions and 17 deletions
|
@ -17,7 +17,18 @@
|
|||
<div id="topnav" class="hide"></div>
|
||||
</div>
|
||||
<div id="wrapper">
|
||||
<div id="content"></div>
|
||||
<div id="content">
|
||||
<ul>
|
||||
<li>Heap:<progress id="heap" max="100" value="70"></progress> <span id="heap_used"></span>(<span id="heap_total"></span>)</li>
|
||||
<li><span id="sdkversion"></span></li>
|
||||
<li><span id="cpufreq"></span></li>
|
||||
<li><span id="chiprevision"></span></li>
|
||||
<li><span id="chipmodel"></span></li>
|
||||
<li><span id="chipcores"></span></li>
|
||||
<li><span id="esp_type"></span></li>
|
||||
</ul>
|
||||
<div id="system"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="footer">
|
||||
<div class="left">
|
||||
|
@ -39,13 +50,15 @@
|
|||
function parseSys(obj) {
|
||||
parseVersion(obj);
|
||||
parseESP(obj);
|
||||
changeProgressbar("heap", obj["heap_used"], obj["heap_total"]);
|
||||
}
|
||||
|
||||
function parse(obj) {
|
||||
if(null != obj) {
|
||||
parseMenu(obj["menu"]);
|
||||
parseSys(obj["system"]);
|
||||
var e = document.getElementById("content");
|
||||
parseSysInfo(obj["system"]);
|
||||
var e = document.getElementById("system");
|
||||
e.innerHTML = obj["html"];
|
||||
|
||||
if(null != obj["refresh"]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue