added wattage to configure tab
This commit is contained in:
@@ -6,6 +6,7 @@ class HiveonT9(BMMiner):
|
|||||||
super().__init__(ip)
|
super().__init__(ip)
|
||||||
self.model = "T9"
|
self.model = "T9"
|
||||||
self.api_type = "Hiveon"
|
self.api_type = "Hiveon"
|
||||||
|
self.nominal_chips = 54
|
||||||
|
|
||||||
def __repr__(self) -> str:
|
def __repr__(self) -> str:
|
||||||
return f"HiveonT9: {str(self.ip)}"
|
return f"HiveonT9: {str(self.ip)}"
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ TABLE_HEADERS = {
|
|||||||
"Pool 2",
|
"Pool 2",
|
||||||
"Pool 2 User",
|
"Pool 2 User",
|
||||||
],
|
],
|
||||||
"CONFIG": ["IP", "Model", "Pool 1 User"],
|
"CONFIG": ["IP", "Model", "Pool 1 User", "Wattage"],
|
||||||
}
|
}
|
||||||
|
|
||||||
TABLE_KEYS = {
|
TABLE_KEYS = {
|
||||||
@@ -507,6 +507,12 @@ def get_pools_layout():
|
|||||||
|
|
||||||
|
|
||||||
def get_config_layout():
|
def get_config_layout():
|
||||||
|
CFG_COL_WIDTHS = [
|
||||||
|
IP_COL_WIDTH,
|
||||||
|
MODEL_COL_WIDTH,
|
||||||
|
TABLE_TOTAL_WIDTH - ((30 * 2) + (6 + WATTAGE_COL_WIDTH)),
|
||||||
|
WATTAGE_COL_WIDTH,
|
||||||
|
]
|
||||||
config_layout = [
|
config_layout = [
|
||||||
[
|
[
|
||||||
sg.Button(
|
sg.Button(
|
||||||
@@ -572,19 +578,16 @@ def get_config_layout():
|
|||||||
sbar_width=SCROLLBAR_WIDTH,
|
sbar_width=SCROLLBAR_WIDTH,
|
||||||
sbar_arrow_width=SCROLLBAR_ARROW_WIDTH,
|
sbar_arrow_width=SCROLLBAR_ARROW_WIDTH,
|
||||||
sbar_relief=SCROLLBAR_RELIEF,
|
sbar_relief=SCROLLBAR_RELIEF,
|
||||||
col_widths=[
|
col_widths=CFG_COL_WIDTHS,
|
||||||
IP_COL_WIDTH,
|
|
||||||
MODEL_COL_WIDTH,
|
|
||||||
TABLE_TOTAL_WIDTH - ((2 * 40) - 4),
|
|
||||||
],
|
|
||||||
size=(0, TABLE_HEIGHT),
|
size=(0, TABLE_HEIGHT),
|
||||||
expand_x=True,
|
expand_x=True,
|
||||||
enable_click_events=True,
|
enable_click_events=True,
|
||||||
pad=TABLE_PAD,
|
pad=TABLE_PAD,
|
||||||
),
|
),
|
||||||
sg.Multiline(
|
sg.Multiline(
|
||||||
size=(40, TABLE_HEIGHT + 1),
|
size=(30, TABLE_HEIGHT + 3),
|
||||||
key="cfg_config_txt",
|
key="cfg_config_txt",
|
||||||
|
font=("Noto Mono", 9),
|
||||||
sbar_trough_color=SCROLLBAR_TROUGH_COLOR,
|
sbar_trough_color=SCROLLBAR_TROUGH_COLOR,
|
||||||
sbar_background_color=SCROLLBAR_BACKGROUND_COLOR,
|
sbar_background_color=SCROLLBAR_BACKGROUND_COLOR,
|
||||||
sbar_arrow_color=SCROLLBAR_ARROW_COLOR,
|
sbar_arrow_color=SCROLLBAR_ARROW_COLOR,
|
||||||
|
|||||||
Reference in New Issue
Block a user