fixed a bug with temp not displaying on the cfg tool

This commit is contained in:
UpstreamData
2022-05-18 12:50:44 -06:00
parent 7f7964526c
commit ed89476866
4 changed files with 10 additions and 10 deletions

View File

@@ -128,7 +128,7 @@ class BMMiner(BaseMiner):
"Model": "Unknown",
"Hostname": "Unknown",
"Hashrate": 0,
"Temperature": 0,
"Temp": 0,
"Pool User": "Unknown",
"Wattage": 0,
"Total": 0,
@@ -193,7 +193,7 @@ class BMMiner(BaseMiner):
for item in ["temp2", "temp1", "temp3"]:
temperature = temp[1].get(item)
if temperature and not temperature == 0.0:
data["Temperature"] = round(temperature)
data["Temp"] = round(temperature)
if pools:
pool_1 = None

View File

@@ -247,7 +247,7 @@ class BOSMiner(BaseMiner):
"Model": "Unknown",
"Hostname": "Unknown",
"Hashrate": 0,
"Temperature": 0,
"Temp": 0,
"Pool User": "Unknown",
"Wattage": 0,
"Total": 0,
@@ -298,9 +298,9 @@ class BOSMiner(BaseMiner):
temp = temps.get("TEMPS")
if temp:
if len(temp) > 0:
temp = temp[0].get("Chip")
if temp:
data["Temperature"] = round(temp)
chip_temp = temp[0].get("Chip")
if chip_temp:
data["Temp"] = round(chip_temp)
if pools:
pool_1 = None

View File

@@ -88,7 +88,7 @@ class BTMiner(BaseMiner):
"Model": "Unknown",
"Hostname": "Unknown",
"Hashrate": 0,
"Temperature": 0,
"Temp": 0,
"Pool User": "Unknown",
"Wattage": 0,
"Total": 0,
@@ -153,7 +153,7 @@ class BTMiner(BaseMiner):
for board in temp_data:
temp = board.get("Chip Temp Avg")
if temp and not temp == 0.0:
data["Temperature"] = round(temp)
data["Temp"] = round(temp)
break
if devs:

View File

@@ -108,7 +108,7 @@ class CGMiner(BaseMiner):
"Model": "Unknown",
"Hostname": "Unknown",
"Hashrate": 0,
"Temperature": 0,
"Temp": 0,
"Pool User": "Unknown",
"Wattage": 0,
"Split": 0,
@@ -154,7 +154,7 @@ class CGMiner(BaseMiner):
for item in ["temp2", "temp1", "temp3"]:
temperature = temp[1].get(item)
if temperature and not temperature == 0.0:
data["Temperature"] = round(temperature)
data["Temp"] = round(temperature)
if pools:
pool_1 = None