Add host temperature telemetry and history

This commit is contained in:
2026-10-13 23:39:04 -04:00
parent 09396ab584
commit 171f657876
28 changed files with 1466 additions and 32 deletions
+8 -1
View File
@@ -1,5 +1,6 @@
<script lang="ts">
import type { Host } from '$lib/hosts.js';
import { cpuTemperature, formatTemperature } from '$lib/host-temperatures.js';
import { contextHref } from '$lib/navigation-context.js';
import {
hostListStatus,
@@ -68,7 +69,13 @@
? '—'
: `${host.playerCount}${host.unreportedInstances ? '+' : ''}`}</td
>
<td class:stale>{hostCpuUsage(host.inventory.cpuUsagePercent)}</td>
<td class:stale
>{hostCpuUsage(host.inventory.cpuUsagePercent)}<span class="secondary"
>CPU temp: {formatTemperature(
cpuTemperature(host.inventory.temperatures)?.celsius
)}</span
></td
>
<td class:stale
>{hostUsedSpace(
host.inventory.memoryTotal,