Add Boomer Heater to status
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user