added bmminer and cgminer functions for implementation
This commit is contained in:
@@ -11,4 +11,13 @@ class BMMiner(BaseMiner):
|
|||||||
return f"BMMiner: {str(self.ip)}"
|
return f"BMMiner: {str(self.ip)}"
|
||||||
|
|
||||||
async def send_config(self):
|
async def send_config(self):
|
||||||
return None
|
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
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ class BOSminer(BaseMiner):
|
|||||||
async def fault_light_off(self) -> None:
|
async def fault_light_off(self) -> None:
|
||||||
await self.send_ssh_command('miner fault_light off')
|
await self.send_ssh_command('miner fault_light off')
|
||||||
|
|
||||||
async def bosminer_restart(self) -> None:
|
async def restart_backend(self) -> None:
|
||||||
await self.send_ssh_command('/etc/init.d/bosminer restart')
|
await self.send_ssh_command('/etc/init.d/bosminer restart')
|
||||||
|
|
||||||
async def reboot(self) -> None:
|
async def reboot(self) -> None:
|
||||||
|
|||||||
@@ -11,4 +11,14 @@ class CGMiner(BaseMiner):
|
|||||||
return f"CGMiner: {str(self.ip)}"
|
return f"CGMiner: {str(self.ip)}"
|
||||||
|
|
||||||
async def send_config(self):
|
async def send_config(self):
|
||||||
return None
|
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