feature: add support for luckyminer LV07
This commit is contained in:
@@ -1,6 +1,19 @@
|
|||||||
# pyasic
|
# pyasic
|
||||||
## LV Models
|
## LV Models
|
||||||
|
|
||||||
|
## LV07 (Stock)
|
||||||
|
|
||||||
|
- [ ] Shutdowns
|
||||||
|
- [ ] Power Modes
|
||||||
|
- [ ] Setpoints
|
||||||
|
- [ ] Presets
|
||||||
|
|
||||||
|
::: pyasic.miners.luckyminer.espminer.LV.LV07.LuckyMinerLV07
|
||||||
|
handler: python
|
||||||
|
options:
|
||||||
|
show_root_heading: false
|
||||||
|
heading_level: 0
|
||||||
|
|
||||||
## LV08 (Stock)
|
## LV08 (Stock)
|
||||||
|
|
||||||
- [ ] Shutdowns
|
- [ ] Shutdowns
|
||||||
|
|||||||
@@ -869,6 +869,7 @@ details {
|
|||||||
<summary>LV Series:</summary>
|
<summary>LV Series:</summary>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="../luckyminer/LV#lv08-stock">LV08 (Stock)</a></li>
|
<li><a href="../luckyminer/LV#lv08-stock">LV08 (Stock)</a></li>
|
||||||
|
<li><a href="../luckyminer/LV#lv07-stock">LV07 (Stock)</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</details>
|
</details>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -509,7 +509,8 @@ class BitAxeModels(MinerModelType):
|
|||||||
|
|
||||||
|
|
||||||
class LuckyMinerModels(MinerModelType):
|
class LuckyMinerModels(MinerModelType):
|
||||||
BM1366 = "LV08"
|
LV07 = "LV07"
|
||||||
|
LV08 = "LV08"
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.value
|
return self.value
|
||||||
|
|||||||
12
pyasic/miners/device/models/luckyminer/LV/LV07.py
Normal file
12
pyasic/miners/device/models/luckyminer/LV/LV07.py
Normal 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
|
||||||
@@ -4,7 +4,7 @@ from pyasic.miners.device.makes import LuckyMinerMake
|
|||||||
|
|
||||||
|
|
||||||
class LV08(LuckyMinerMake):
|
class LV08(LuckyMinerMake):
|
||||||
raw_model = MinerModel.LUCKYMINER.BM1366
|
raw_model = MinerModel.LUCKYMINER.LV08
|
||||||
|
|
||||||
expected_hashboards = 1
|
expected_hashboards = 1
|
||||||
expected_chips = 1
|
expected_chips = 1
|
||||||
|
|||||||
@@ -1 +1,2 @@
|
|||||||
|
from .LV07 import LV07
|
||||||
from .LV08 import LV08
|
from .LV08 import LV08
|
||||||
|
|||||||
@@ -641,7 +641,8 @@ MINER_CLASSES = {
|
|||||||
},
|
},
|
||||||
MinerTypes.LUCKYMINER: {
|
MinerTypes.LUCKYMINER: {
|
||||||
None: LuckyMiner,
|
None: LuckyMiner,
|
||||||
"BM1366": LuckyMinerLV08,
|
"LV08": LuckyMinerLV08,
|
||||||
|
"LV07": LuckyMinerLV07,
|
||||||
},
|
},
|
||||||
MinerTypes.ICERIVER: {
|
MinerTypes.ICERIVER: {
|
||||||
None: type("IceRiverUnknown", (IceRiver, IceRiverMake), {}),
|
None: type("IceRiverUnknown", (IceRiver, IceRiverMake), {}),
|
||||||
@@ -1312,7 +1313,7 @@ class MinerFactory:
|
|||||||
web_json_data = await self.send_web_command(ip, "/api/system/info")
|
web_json_data = await self.send_web_command(ip, "/api/system/info")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
miner_model = web_json_data["ASICModel"]
|
miner_model = web_json_data["minerModel"]
|
||||||
if miner_model == "":
|
if miner_model == "":
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|||||||
6
pyasic/miners/luckyminer/espminer/LV/LV07.py
Normal file
6
pyasic/miners/luckyminer/espminer/LV/LV07.py
Normal 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
|
||||||
@@ -1 +1,2 @@
|
|||||||
|
from .LV07 import LuckyMinerLV07
|
||||||
from .LV08 import LuckyMinerLV08
|
from .LV08 import LuckyMinerLV08
|
||||||
|
|||||||
Reference in New Issue
Block a user