feature: add support for luckyminer LV07

This commit is contained in:
Upstream Data
2025-02-03 09:32:16 -07:00
parent de728f12d2
commit 16ab2bd4e3
9 changed files with 40 additions and 4 deletions

View File

@@ -509,7 +509,8 @@ class BitAxeModels(MinerModelType):
class LuckyMinerModels(MinerModelType):
BM1366 = "LV08"
LV07 = "LV07"
LV08 = "LV08"
def __str__(self):
return self.value

View File

@@ -0,0 +1,12 @@
from pyasic.device.algorithm import MinerAlgo
from pyasic.device.models import MinerModel
from pyasic.miners.device.makes import LuckyMinerMake
class LV07(LuckyMinerMake):
raw_model = MinerModel.LUCKYMINER.LV07
expected_hashboards = 1
expected_chips = 1
expected_fans = 1
algo = MinerAlgo.SHA256

View File

@@ -4,7 +4,7 @@ from pyasic.miners.device.makes import LuckyMinerMake
class LV08(LuckyMinerMake):
raw_model = MinerModel.LUCKYMINER.BM1366
raw_model = MinerModel.LUCKYMINER.LV08
expected_hashboards = 1
expected_chips = 1

View File

@@ -1 +1,2 @@
from .LV07 import LV07
from .LV08 import LV08

View File

@@ -641,7 +641,8 @@ MINER_CLASSES = {
},
MinerTypes.LUCKYMINER: {
None: LuckyMiner,
"BM1366": LuckyMinerLV08,
"LV08": LuckyMinerLV08,
"LV07": LuckyMinerLV07,
},
MinerTypes.ICERIVER: {
None: type("IceRiverUnknown", (IceRiver, IceRiverMake), {}),
@@ -1312,7 +1313,7 @@ class MinerFactory:
web_json_data = await self.send_web_command(ip, "/api/system/info")
try:
miner_model = web_json_data["ASICModel"]
miner_model = web_json_data["minerModel"]
if miner_model == "":
return None

View File

@@ -0,0 +1,6 @@
from pyasic.miners.backends.luckyminer import LuckyMiner
from pyasic.miners.device.models.luckyminer import LV07
class LuckyMinerLV07(LuckyMiner, LV07):
pass

View File

@@ -1 +1,2 @@
from .LV07 import LuckyMinerLV07
from .LV08 import LuckyMinerLV08