added get_model to get the model of the miner, and reformatted the style of the miner factory getting miner to get a different miner for each type of supported miner
This commit is contained in:
26
miners/antminer/X19/bmminer.py
Normal file
26
miners/antminer/X19/bmminer.py
Normal file
@@ -0,0 +1,26 @@
|
||||
from API.bmminer import BMMinerAPI
|
||||
from miners import BaseMiner
|
||||
|
||||
|
||||
class BMMinerX19(BaseMiner):
|
||||
def __init__(self, ip: str) -> None:
|
||||
api = BMMinerAPI(ip)
|
||||
super().__init__(ip, api)
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return f"BMMiner: {str(self.ip)}"
|
||||
|
||||
async def get_hostname(self) -> str:
|
||||
return "BMMiner Unknown"
|
||||
|
||||
async def send_config(self, _):
|
||||
return None # ignore for now
|
||||
|
||||
async def restart_backend(self) -> None:
|
||||
return None # Murray
|
||||
|
||||
async def reboot(self) -> None:
|
||||
return None # Murray
|
||||
|
||||
async def get_config(self) -> None:
|
||||
return None # Murray
|
||||
Reference in New Issue
Block a user