added feeds auto-updater for web testbench

This commit is contained in:
UpstreamData
2022-04-11 16:13:04 -06:00
parent b9b7da8746
commit 7ebfdb3f33
2 changed files with 152 additions and 0 deletions

View File

@@ -55,6 +55,15 @@ class BMMiner(BaseMiner):
continue
return result
async def get_config(self):
pools = await self.api.pools()
pool_data = []
if not pools:
return
for pool in pools["POOLS"]:
pool_data.append({"url": pool["URL"], "user": pool["User"], "pwd": "123"})
return pool_data
async def reboot(self) -> None:
logging.debug(f"{self}: Sending reboot command.")
await self.send_ssh_command("reboot")