minor info page updates

* removed core restart reasons (esp restart code is sufficient)
* added time info
* moved repo to last line
This commit is contained in:
Frank
2026-03-11 19:02:29 +01:00
parent 37946a947b
commit 2dedbf469a
2 changed files with 8 additions and 4 deletions

View File

@@ -720,6 +720,7 @@ ${inforow("Build",i.vid)}
${i.leds.count?inforow("Total LEDs",i.leds.count):""}
${inforow("Estimated current",pwru)}
${inforow("Average FPS",i.leds.fps)}
<tr><td colspan=2><hr style="height:2px;border-width:0;color:SeaGreen;background-color:SeaGreen"></td></tr>
${inforow("Signal strength",i.wifi.signal +"% ("+ i.wifi.rssi, " dBm)")}
${inforow("MAC address",i.mac)}
${inforow("Uptime",getRuntimeStr(i.uptime))}
@@ -737,12 +738,12 @@ ${i.tpsram?inforow("PSRAM " + (i.psrmode?"("+i.psrmode+" mode) ":"") + " ☾",(i
${i.e32flash?inforow("Flash mode "+i.e32flashmode+i.e32flashtext + " ☾",i.e32flash+" MB, "+i.e32flashspeed," Mhz"):""}
${i.e32model?inforow(i.e32model + " ☾",i.e32cores +" core(s),"," "+i.e32speed+" Mhz"):""}
${inforow("Environment",i.arch + " " + i.core + ( i.lwip ? " (" + i.lwip + ")" : ""))}
${i.repo?inforow("GitHub","<a href=\"https://github.com/"+i.repo+"\" target=\"_blank\" rel=\"noopener noreferrer\">" + i.repo + "</a>"):""}
<tr><td colspan=2><hr style="height:1px;border-width:0;color:SeaGreen;background-color:SeaGreen"></td></tr>
<!-- <tr><td colspan=2><hr style="height:1px;border-width:0;color:SeaGreen;background-color:SeaGreen"></td></tr> -->
${i.e32code?inforow("Last ESP Restart ☾",i.e32code+" "+i.e32text):""}
${i.e32core0code?inforow("Core0 rst reason ☾",i.e32core0code, " "+i.e32core0text):""}
${i.e32core1code?inforow("Core1 rst reason ☾",i.e32core1code, " "+i.e32core1text):""}
<!-- ${i.e32core0code?inforow("Core0 rst reason ☾",i.e32core0code, " "+i.e32core0text):""} -->
<!-- ${i.e32core1code?inforow("Core1 rst reason ☾",i.e32core1code, " "+i.e32core1text):""} -->
<!-- WLEDMM end-->
${i.repo?inforow("GitHub","<a href=\"https://github.com/"+i.repo+"\" target=\"_blank\" rel=\"noopener noreferrer\">" + i.repo + "</a>"):""}
</table>`;
gId('kv').innerHTML = cn;
// update all sliders in Info

View File

@@ -1227,6 +1227,9 @@ void serializeInfo(JsonObject root)
// end WLEDMM
root[F("uptime")] = millis()/1000 + rolloverMillis*4294967;
char time[48];
getTimeString(time);
root[F("time")] = time;
usermods.addToJsonInfo(root);