Add Boomer Heater to status

This commit is contained in:
Dorian
2026-05-06 19:24:56 +01:00
parent 0c8e26f597
commit d6f8fd7686
3 changed files with 28 additions and 2 deletions

View File

@@ -34,6 +34,27 @@ const bestWorkByMiner = computed(() => {
return out;
});
const poolBestWork = computed(() => Math.max(0, ...Object.values(bestWorkByMiner.value)));
const boomerHeater = {
authUsername: "fiat.heat",
remoteHost: "wall-socket",
nickname: "Boomer Heater",
model: "Legacy Resistance Heater",
location: "The Past",
expectedHashrateThs: 0,
watts: 2000,
hashrateThs: 0,
hashrateAgeS: null,
lastShareAgeS: null,
diffAcceptedSum: 0,
diffAcceptedCount: 0,
diffRejectedSum: 0,
diffRejectedCount: 0,
rejectPct: 0,
vdiff: 0,
userAgent: "CentralHeating/fiat-only",
subscribed: false,
status: "idle",
} as const;
function minerKey(m: { nickname: string; authUsername: string; remoteHost: string }): string {
return m.nickname || m.authUsername || m.remoteHost;
@@ -76,6 +97,11 @@ function minerKey(m: { nickname: string; authUsername: string; remoteHost: strin
:miner="m"
:best-work="bestWorkByMiner[minerKey(m)]"
/>
<MinerCard
key="boomer-heater"
:miner="boomerHeater"
:best-work="0"
/>
<div v-if="!miners.length && !errorMsg" class="empty panel muted">
waiting for the first poll · the boards are warming up
</div>