report a serial number

This commit is contained in:
Maxim Devaev
2022-04-25 15:44:00 +03:00
parent 2294b5a9e1
commit 293490298c
3 changed files with 23 additions and 10 deletions

View File

@@ -130,7 +130,8 @@ export function Session() {
let html = "";
if (__info_hw_state !== null) {
html += `
Platform base: <span class="code-comment">${__info_hw_state.platform.base}</span><br>
Platform:
${__formatPlatform(__info_hw_state.platform)}
<hr>
Temperature:
${__formatTemp(__info_hw_state.health.temp)}
@@ -151,6 +152,10 @@ export function Session() {
$("about-hardware").innerHTML = html;
};
var __formatPlatform = function(state) {
return __formatUl([["Base", state.base], ["Serial", state.serial]]);
};
var __formatFan = function(state) {
if (!state.monitored) {
return __formatUl([["Status", "Not monitored"]]);