tracks boards by left/center/right now in lieu of board numbers, and works with Hive T9s and BOS S9s and X17s

This commit is contained in:
UpstreamData
2022-01-25 15:53:36 -07:00
parent 66792e1ab9
commit 1c0b5e6441
5 changed files with 48 additions and 36 deletions

View File

@@ -15,7 +15,7 @@ class HiveonT9(BMMiner):
board_stats = await self.api.stats()
stats = board_stats['STATS'][1]
boards = {}
board_chains = {6: [2, 9, 10], 7: [3, 11, 12], 8: [4, 13, 14]}
board_chains = {0: [2, 9, 10], 1: [3, 11, 12], 2: [4, 13, 14]}
for idx, board in enumerate(board_chains):
boards[board] = []
for chain in board_chains[board]:

View File

@@ -5,6 +5,7 @@ class BOSMinerX17(BOSMiner):
def __init__(self, ip: str) -> None:
super().__init__(ip)
self.api_type = "BOSMiner"
self.nominal_chips = 65
def __repr__(self) -> str:
return f"BOSminerX17: {str(self.ip)}"