updated a bunch of miner chip counts, added S19a, and fixed a bug with whatsminer M30S++

This commit is contained in:
UpstreamData
2022-05-16 08:42:26 -06:00
parent 61334ed99e
commit 45befb569b
19 changed files with 46 additions and 13 deletions

View File

@@ -140,9 +140,13 @@ class BTMiner(BaseMiner):
if boards:
if len(boards) > 0:
board_map = {0: "Left Board", 1: "Center Board", 2: "Right Board"}
offset = boards[0]["ID"]
if "ID" in boards[0].keys():
id_key = "ID"
else:
id_key = "ASC"
offset = boards[0][id_key]
for board in boards:
id = board["ID"] - offset
id = board[id_key] - offset
chips = board["Effective Chips"]
data["Total"] += chips
data[board_map[id]] = chips