add S19 and S17 and S9 models to GUI
This commit is contained in:
@@ -120,7 +120,7 @@ async def get_data(ip_list: list):
|
|||||||
if data_point["IP"] in ordered_all_ips:
|
if data_point["IP"] in ordered_all_ips:
|
||||||
ip_table_index = ordered_all_ips.index(data_point["IP"])
|
ip_table_index = ordered_all_ips.index(data_point["IP"])
|
||||||
ip_table_data[ip_table_index] = [
|
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"
|
data_point['user'], str(data_point['wattage']) + " W"
|
||||||
]
|
]
|
||||||
window["ip_table"].update(ip_table_data)
|
window["ip_table"].update(ip_table_data)
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ class BMMiner(BaseMiner):
|
|||||||
|
|
||||||
|
|
||||||
async def get_hostname(self) -> str:
|
async def get_hostname(self) -> str:
|
||||||
return "BMMiner Unknown"
|
return "?"
|
||||||
|
|
||||||
async def send_config(self, _):
|
async def send_config(self, _):
|
||||||
return None # ignore for now
|
return None # ignore for now
|
||||||
|
|||||||
@@ -31,9 +31,9 @@ class CGMiner(BaseMiner):
|
|||||||
data = await conn.run('cat /proc/sys/kernel/hostname')
|
data = await conn.run('cat /proc/sys/kernel/hostname')
|
||||||
return data.stdout.strip()
|
return data.stdout.strip()
|
||||||
else:
|
else:
|
||||||
return "CGMiner Unknown"
|
return "?"
|
||||||
except Exception:
|
except Exception:
|
||||||
return "CGMiner Unknown"
|
return "?"
|
||||||
|
|
||||||
async def send_config(self, _):
|
async def send_config(self, _):
|
||||||
return None # ignore for now
|
return None # ignore for now
|
||||||
|
|||||||
Reference in New Issue
Block a user