added temperatures to the tool, and fixed a bug with multicommand not removing bad commands if they were adjacent to each other in the list

This commit is contained in:
UpstreamData
2022-01-05 15:33:56 -07:00
parent e77cbc5415
commit 1148946a29
6 changed files with 42 additions and 44 deletions

View File

@@ -13,8 +13,9 @@ class BTMiner(BaseMiner):
async def get_hostname(self) -> str:
try:
host_data = await self.api.get_miner_info("hostname")
print(host_data)
host_data = await self.api.get_miner_info()
if host_data:
return host_data["Msg"]["hostname"]
except APIError:
return "BTMiner Unknown"