feature: add support for whatsminer M31S V70
This commit is contained in:
@@ -90,6 +90,7 @@ details {
|
|||||||
</details>
|
</details>
|
||||||
<details>
|
<details>
|
||||||
<summary><a href="../whatsminer/M3X/#m31s">M31S</a></summary>
|
<summary><a href="../whatsminer/M3X/#m31s">M31S</a></summary>
|
||||||
|
<summary><a href="../whatsminer/M3X/#m31sv70">M31SV70</a></summary>
|
||||||
</details>
|
</details>
|
||||||
<details>
|
<details>
|
||||||
<summary><a href="../whatsminer/M3X/#m31s_1">M31S+</a></summary>
|
<summary><a href="../whatsminer/M3X/#m31s_1">M31S+</a></summary>
|
||||||
|
|||||||
@@ -108,6 +108,14 @@
|
|||||||
|
|
||||||
## M31S
|
## M31S
|
||||||
|
|
||||||
|
::: pyasic.miners.whatsminer.btminer.M3X.M31S.BTMinerM31S
|
||||||
|
handler: python
|
||||||
|
options:
|
||||||
|
show_root_heading: false
|
||||||
|
heading_level: 4
|
||||||
|
|
||||||
|
## M31SV70
|
||||||
|
|
||||||
::: pyasic.miners.whatsminer.btminer.M3X.M31S.BTMinerM31S
|
::: pyasic.miners.whatsminer.btminer.M3X.M31S.BTMinerM31S
|
||||||
handler: python
|
handler: python
|
||||||
options:
|
options:
|
||||||
|
|||||||
@@ -20,5 +20,14 @@ class M31S(BaseMiner): # noqa - ignore ABC method implementation
|
|||||||
super().__init__()
|
super().__init__()
|
||||||
self.ip = ip
|
self.ip = ip
|
||||||
self.model = "M31S"
|
self.model = "M31S"
|
||||||
# TODO: Add chip count for this miner (per board) - self.nominal_chips
|
self.nominal_chips = 111
|
||||||
|
self.fan_count = 2
|
||||||
|
|
||||||
|
|
||||||
|
class M31SV70(BaseMiner): # noqa - ignore ABC method implementation
|
||||||
|
def __init__(self, ip: str):
|
||||||
|
super().__init__()
|
||||||
|
self.ip = ip
|
||||||
|
self.model = "M31S V70"
|
||||||
|
self.nominal_chips = 111
|
||||||
self.fan_count = 2
|
self.fan_count = 2
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ from .M30S_Plus_Plus import (
|
|||||||
M30SPlusPlusVG40,
|
M30SPlusPlusVG40,
|
||||||
M30SPlusPlusVH60,
|
M30SPlusPlusVH60,
|
||||||
)
|
)
|
||||||
from .M31S import M31S
|
from .M31S import M31S, M31SV70
|
||||||
from .M31S_Plus import (
|
from .M31S_Plus import (
|
||||||
M31SPlus,
|
M31SPlus,
|
||||||
M31SPlusV30,
|
M31SPlusV30,
|
||||||
|
|||||||
@@ -194,6 +194,7 @@ MINER_CLASSES = {
|
|||||||
"M31S": {
|
"M31S": {
|
||||||
"Default": BTMinerM31S,
|
"Default": BTMinerM31S,
|
||||||
"BTMiner": BTMinerM31S,
|
"BTMiner": BTMinerM31S,
|
||||||
|
"V70": BTMinerM31SV70,
|
||||||
},
|
},
|
||||||
"M31S+": {
|
"M31S+": {
|
||||||
"Default": BTMinerM31SPlus,
|
"Default": BTMinerM31SPlus,
|
||||||
|
|||||||
@@ -13,10 +13,16 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from pyasic.miners._backends import BTMiner # noqa - Ignore access to _module
|
from pyasic.miners._backends import BTMiner # noqa - Ignore access to _module
|
||||||
from pyasic.miners._types import M31S # noqa - Ignore access to _module
|
from pyasic.miners._types import M31S, M31SV70 # noqa - Ignore access to _module
|
||||||
|
|
||||||
|
|
||||||
class BTMinerM31S(BTMiner, M31S):
|
class BTMinerM31S(BTMiner, M31S):
|
||||||
def __init__(self, ip: str) -> None:
|
def __init__(self, ip: str) -> None:
|
||||||
super().__init__(ip)
|
super().__init__(ip)
|
||||||
self.ip = ip
|
self.ip = ip
|
||||||
|
|
||||||
|
|
||||||
|
class BTMinerM31SV70(BTMiner, M31SV70):
|
||||||
|
def __init__(self, ip: str) -> None:
|
||||||
|
super().__init__(ip)
|
||||||
|
self.ip = ip
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ from .M30S_Plus_Plus import (
|
|||||||
BTMinerM30SPlusPlusVG40,
|
BTMinerM30SPlusPlusVG40,
|
||||||
BTMinerM30SPlusPlusVH60,
|
BTMinerM30SPlusPlusVH60,
|
||||||
)
|
)
|
||||||
from .M31S import BTMinerM31S
|
from .M31S import BTMinerM31S, BTMinerM31SV70
|
||||||
from .M31S_Plus import (
|
from .M31S_Plus import (
|
||||||
BTMinerM31SPlus,
|
BTMinerM31SPlus,
|
||||||
BTMinerM31SPlusV30,
|
BTMinerM31SPlusV30,
|
||||||
|
|||||||
Reference in New Issue
Block a user