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:
@@ -86,6 +86,12 @@ class BOSminer(BaseMiner):
|
||||
print(self.ip, e)
|
||||
return "BOSMiner Unknown"
|
||||
|
||||
async def get_model(self):
|
||||
version_data = await self.api.devdetails()
|
||||
if version_data:
|
||||
return version_data["DEVDETAILS"][0]["Model"].replace("Antminer ", "")
|
||||
return None
|
||||
|
||||
async def send_config(self, yaml_config) -> None:
|
||||
"""Configures miner with yaml config."""
|
||||
toml_conf = await general_config_convert_bos(yaml_config)
|
||||
|
||||
Reference in New Issue
Block a user