Add support for M50
Received M50 units, added support for them.
This commit is contained in:
@@ -50,6 +50,15 @@ details {
|
|||||||
<summary>Stock Firmware Whatsminers:</summary>
|
<summary>Stock Firmware Whatsminers:</summary>
|
||||||
<ul>
|
<ul>
|
||||||
<details>
|
<details>
|
||||||
|
<summary>M5X Series:</summary>
|
||||||
|
<ul>
|
||||||
|
<details>
|
||||||
|
<summary><a href="/miners/whatsminer/M5X/#m50">M50</a></summary>
|
||||||
|
<ul>
|
||||||
|
<li><a href="/miners/whatsminer/M5X/#m50vh50">VH50</a></li>
|
||||||
|
</ul>
|
||||||
|
</details>
|
||||||
|
</ul>
|
||||||
<summary>M3X Series:</summary>
|
<summary>M3X Series:</summary>
|
||||||
<ul>
|
<ul>
|
||||||
<details>
|
<details>
|
||||||
|
|||||||
18
docs/miners/whatsminer/M5X.md
Normal file
18
docs/miners/whatsminer/M5X.md
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# pyasic
|
||||||
|
## M5X Models
|
||||||
|
|
||||||
|
## M50
|
||||||
|
|
||||||
|
::: pyasic.miners.whatsminer.btminer.M5X.M50.BTMinerM50
|
||||||
|
handler: python
|
||||||
|
options:
|
||||||
|
show_root_heading: false
|
||||||
|
heading_level: 4
|
||||||
|
|
||||||
|
## M50VH50
|
||||||
|
|
||||||
|
::: pyasic.miners.whatsminer.btminer.M5X.M50.BTMinerM50VH50
|
||||||
|
handler: python
|
||||||
|
options:
|
||||||
|
show_root_heading: false
|
||||||
|
heading_level: 4
|
||||||
33
pyasic/miners/_types/whatsminer/M5X/M50.py
Normal file
33
pyasic/miners/_types/whatsminer/M5X/M50.py
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
# Copyright 2022 Upstream Data Inc
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
from pyasic.miners.base import BaseMiner
|
||||||
|
|
||||||
|
|
||||||
|
class M50(BaseMiner):
|
||||||
|
def __init__(self, ip: str):
|
||||||
|
super().__init__()
|
||||||
|
self.ip = ip
|
||||||
|
self.model = "M50"
|
||||||
|
self.nominal_chips = 105
|
||||||
|
self.fan_count = 2
|
||||||
|
|
||||||
|
|
||||||
|
class M50VH50(BaseMiner):
|
||||||
|
def __init__(self, ip: str):
|
||||||
|
super().__init__()
|
||||||
|
self.ip = ip
|
||||||
|
self.model = "M50 VH50"
|
||||||
|
self.nominal_chips = 105
|
||||||
|
self.fan_count = 2
|
||||||
36
pyasic/miners/_types/whatsminer/M5X/__init__.py
Normal file
36
pyasic/miners/_types/whatsminer/M5X/__init__.py
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
# Copyright 2022 Upstream Data Inc
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
from .M30S import M30S, M30SVE10, M30SVE20, M30SVG20, M30SV50
|
||||||
|
from .M30S_Plus import M30SPlus, M30SPlusVG60, M30SPlusVE40, M30SPlusVF20
|
||||||
|
from .M30S_Plus_Plus import (
|
||||||
|
M30SPlusPlus,
|
||||||
|
M30SPlusPlusVG30,
|
||||||
|
M30SPlusPlusVG40,
|
||||||
|
M30SPlusPlusVH60,
|
||||||
|
)
|
||||||
|
|
||||||
|
from .M31S import M31S
|
||||||
|
from .M31S_Plus import (
|
||||||
|
M31SPlus,
|
||||||
|
M31SPlusVE20,
|
||||||
|
M31SPlusV30,
|
||||||
|
M31SPlusV40,
|
||||||
|
M31SPlusV80,
|
||||||
|
M31SPlusV60,
|
||||||
|
M31SPlusV90,
|
||||||
|
)
|
||||||
|
|
||||||
|
from .M32 import M32, M32V20
|
||||||
|
from .M32S import M32S
|
||||||
@@ -14,3 +14,4 @@
|
|||||||
|
|
||||||
from .M2X import *
|
from .M2X import *
|
||||||
from .M3X import *
|
from .M3X import *
|
||||||
|
from .M5X import *
|
||||||
@@ -216,6 +216,11 @@ MINER_CLASSES = {
|
|||||||
"BTMiner": BTMinerM32,
|
"BTMiner": BTMinerM32,
|
||||||
"20": BTMinerM32V20,
|
"20": BTMinerM32V20,
|
||||||
},
|
},
|
||||||
|
"M50": {
|
||||||
|
"Default": BTMinerM50,
|
||||||
|
"BTMiner": BTMinerM50,
|
||||||
|
"H50": BTMinerM50VH50,
|
||||||
|
},
|
||||||
"AVALONMINER 721": {
|
"AVALONMINER 721": {
|
||||||
"Default": CGMinerAvalon721,
|
"Default": CGMinerAvalon721,
|
||||||
"CGMiner": CGMinerAvalon721,
|
"CGMiner": CGMinerAvalon721,
|
||||||
|
|||||||
28
pyasic/miners/whatsminer/btminer/M5X/M50.py
Normal file
28
pyasic/miners/whatsminer/btminer/M5X/M50.py
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
# Copyright 2022 Upstream Data Inc
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
from pyasic.miners._backends import BTMiner # noqa - Ignore access to _module
|
||||||
|
from pyasic.miners._types import M50, M50VH50 # noqa - Ignore access to _module
|
||||||
|
|
||||||
|
|
||||||
|
class BTMinerM50(BTMiner, M50):
|
||||||
|
def __init__(self, ip: str) -> None:
|
||||||
|
super().__init__(ip)
|
||||||
|
self.ip = ip
|
||||||
|
|
||||||
|
|
||||||
|
class BTMinerM50VH50(BTMiner, M50VH50):
|
||||||
|
def __init__(self, ip: str) -> None:
|
||||||
|
super().__init__(ip)
|
||||||
|
self.ip = ip
|
||||||
18
pyasic/miners/whatsminer/btminer/M5X/__init__.py
Normal file
18
pyasic/miners/whatsminer/btminer/M5X/__init__.py
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# Copyright 2022 Upstream Data Inc
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
from .M50 import (
|
||||||
|
BTMinerM50,
|
||||||
|
BTMinerM50VH50,
|
||||||
|
)
|
||||||
@@ -14,3 +14,4 @@
|
|||||||
|
|
||||||
from .M2X import *
|
from .M2X import *
|
||||||
from .M3X import *
|
from .M3X import *
|
||||||
|
from .M5X import *
|
||||||
Reference in New Issue
Block a user