feature: add support for whatsminer M30S+ VG40

This commit is contained in:
UpstreamData
2022-12-13 10:05:07 -07:00
parent f69e07fe68
commit 2d8c7eb4fd
7 changed files with 27 additions and 1 deletions

View File

@@ -77,6 +77,7 @@ details {
<ul>
<li><a href="../whatsminer/M3X/#m30svf20">VF20</a></li>
<li><a href="../whatsminer/M3X/#m30sve40">VE40</a></li>
<li><a href="../whatsminer/M3X/#m30svg40">VG40</a></li>
<li><a href="../whatsminer/M3X/#m30svg60">VG60</a></li>
</ul>
</details>

View File

@@ -65,6 +65,14 @@
show_root_heading: false
heading_level: 4
## M30S+VG40
::: pyasic.miners.whatsminer.btminer.M3X.M30S_Plus.BTMinerM30SPlusVG40
handler: python
options:
show_root_heading: false
heading_level: 4
## M30S+VG60
::: pyasic.miners.whatsminer.btminer.M3X.M30S_Plus.BTMinerM30SPlusVG60

View File

@@ -32,6 +32,14 @@ class M30SPlusVG60(BaseMiner): # noqa - ignore ABC method implementation
self.nominal_chips = 86
self.fan_count = 2
class M30SPlusVG40(BaseMiner): # noqa - ignore ABC method implementation
def __init__(self, ip: str):
super().__init__()
self.ip = ip
self.model = "M30S+ VG40"
self.nominal_chips = 105
self.fan_count = 2
class M30SPlusVE40(BaseMiner): # noqa - ignore ABC method implementation
def __init__(self, ip: str):

View File

@@ -13,7 +13,7 @@
# limitations under the License.
from .M30S import M30S, M30SV50, M30SVE10, M30SVE20, M30SVG20
from .M30S_Plus import M30SPlus, M30SPlusVE40, M30SPlusVF20, M30SPlusVG60
from .M30S_Plus import M30SPlus, M30SPlusVE40, M30SPlusVF20, M30SPlusVG60, M30SPlusVG40
from .M30S_Plus_Plus import (
M30SPlusPlus,
M30SPlusPlusVG30,

View File

@@ -183,6 +183,7 @@ MINER_CLASSES = {
"BTMiner": BTMinerM30SPlus,
"F20": BTMinerM30SPlusVF20,
"E40": BTMinerM30SPlusVE40,
"G40": BTMinerM30SPlusVG40,
"G60": BTMinerM30SPlusVG60,
},
"M30S++": {

View File

@@ -18,6 +18,7 @@ from pyasic.miners._types import ( # noqa - Ignore access to _module
M30SPlusVE40,
M30SPlusVF20,
M30SPlusVG60,
M30SPlusVG40,
)
@@ -39,6 +40,12 @@ class BTMinerM30SPlusVE40(BTMiner, M30SPlusVE40):
self.ip = ip
class BTMinerM30SPlusVG40(BTMiner, M30SPlusVG40):
def __init__(self, ip: str) -> None:
super().__init__(ip)
self.ip = ip
class BTMinerM30SPlusVG60(BTMiner, M30SPlusVG60):
def __init__(self, ip: str) -> None:
super().__init__(ip)

View File

@@ -23,6 +23,7 @@ from .M30S_Plus import (
BTMinerM30SPlus,
BTMinerM30SPlusVE40,
BTMinerM30SPlusVF20,
BTMinerM30SPlusVG40,
BTMinerM30SPlusVG60,
)
from .M30S_Plus_Plus import (