add S19 and S17 and S9 models to GUI

This commit is contained in:
UpstreamData
2022-01-07 10:44:09 -07:00
parent c93d99b27c
commit 51e9e19409
3 changed files with 4 additions and 4 deletions

View File

@@ -120,7 +120,7 @@ async def get_data(ip_list: list):
if data_point["IP"] in ordered_all_ips:
ip_table_index = ordered_all_ips.index(data_point["IP"])
ip_table_data[ip_table_index] = [
data_point["IP"], data_point["host"], str(data_point['TH/s']) + " TH/s", data_point["temp"],
data_point["IP"], data_point["model"], data_point["host"], str(data_point['TH/s']) + " TH/s", data_point["temp"],
data_point['user'], str(data_point['wattage']) + " W"
]
window["ip_table"].update(ip_table_data)

View File

@@ -22,7 +22,7 @@ class BMMiner(BaseMiner):
async def get_hostname(self) -> str:
return "BMMiner Unknown"
return "?"
async def send_config(self, _):
return None # ignore for now

View File

@@ -31,9 +31,9 @@ class CGMiner(BaseMiner):
data = await conn.run('cat /proc/sys/kernel/hostname')
return data.stdout.strip()
else:
return "CGMiner Unknown"
return "?"
except Exception:
return "CGMiner Unknown"
return "?"
async def send_config(self, _):
return None # ignore for now