added rebooting, still need to add the buttons

This commit is contained in:
UpstreamData
2022-01-08 19:49:12 -07:00
parent 93665772c3
commit e9210eb37d
5 changed files with 89 additions and 9 deletions

View File

@@ -61,7 +61,10 @@ class BOSminer(BaseMiner):
"""Sends command to turn off fault light on the miner."""
await self.send_ssh_command('miner fault_light off')
async def restart_backend(self) -> None:
async def restart_backend(self):
await self.restart_bosminer()
async def restart_bosminer(self) -> None:
"""Restart bosminer hashing process."""
await self.send_ssh_command('/etc/init.d/bosminer restart')