Revised messages and documentation
This commit is contained in:
@@ -154,7 +154,7 @@ For the following models there is no known way to read the EEPROM via SNMP proto
|
|||||||
|
|
||||||
- [ET-2800](https://github.com/Ircama/epson_print_conf/issues/27)
|
- [ET-2800](https://github.com/Ircama/epson_print_conf/issues/27)
|
||||||
- [ET-2850 ET-2851 ET-2853 ET-2855 ET-2856](https://github.com/Ircama/epson_print_conf/issues/26)
|
- [ET-2850 ET-2851 ET-2853 ET-2855 ET-2856](https://github.com/Ircama/epson_print_conf/issues/26)
|
||||||
- [ET-4800](https://github.com/Ircama/epson_print_conf/issues/29) might not work, to be verified
|
- [ET-4800](https://github.com/Ircama/epson_print_conf/issues/29) with new firmware (older firmware might work)
|
||||||
- [L3250](https://github.com/Ircama/epson_print_conf/issues/35)
|
- [L3250](https://github.com/Ircama/epson_print_conf/issues/35)
|
||||||
- [XP-7100 with firmware version YL25O7 (25 Jul 2024)](https://github.com/Ircama/epson_print_conf/issues/42) (firmware YL11K6 works)
|
- [XP-7100 with firmware version YL25O7 (25 Jul 2024)](https://github.com/Ircama/epson_print_conf/issues/42) (firmware YL11K6 works)
|
||||||
|
|
||||||
|
|||||||
@@ -2149,7 +2149,7 @@ class EpsonPrinter:
|
|||||||
|
|
||||||
def reset_waste_ink_levels(self, dry_run=False) -> bool:
|
def reset_waste_ink_levels(self, dry_run=False) -> bool:
|
||||||
"""
|
"""
|
||||||
Set waste ink levels to 0.
|
Set waste ink levels to the values specified in the configuration.
|
||||||
"""
|
"""
|
||||||
if not self.parm:
|
if not self.parm:
|
||||||
logging.error("EpsonPrinter - invalid API usage")
|
logging.error("EpsonPrinter - invalid API usage")
|
||||||
|
|||||||
31
ui.py
31
ui.py
@@ -129,6 +129,7 @@ class EpcTextConsole(TextConsole):
|
|||||||
'import pprint;pprint.pprint(self.printer.status_parser(self.printer.snmp_mib("1.3.6.1.4.1.1248.1.2.2.1.1.1.4.1")[1]))\n'
|
'import pprint;pprint.pprint(self.printer.status_parser(self.printer.snmp_mib("1.3.6.1.4.1.1248.1.2.2.1.1.1.4.1")[1]))\n'
|
||||||
"self.printer.read_eeprom_many([0])\n"
|
"self.printer.read_eeprom_many([0])\n"
|
||||||
"self.printer.read_eeprom(0)\n"
|
"self.printer.read_eeprom(0)\n"
|
||||||
|
"self.printer.reset_waste_ink_levels()\n"
|
||||||
"self.printer.snmp_mib(self.printer.eeprom_oid_read_address(0))\n"
|
"self.printer.snmp_mib(self.printer.eeprom_oid_read_address(0))\n"
|
||||||
"self.printer.snmp_mib('1.3.6.1.4.1.1248.1.2.2.44.1.1.2.1.124.124.7.0.25.7.65.190.160.0.0')\n"
|
"self.printer.snmp_mib('1.3.6.1.4.1.1248.1.2.2.44.1.1.2.1.124.124.7.0.25.7.65.190.160.0.0')\n"
|
||||||
"self.get_ti_date(cursor=True)"
|
"self.get_ti_date(cursor=True)"
|
||||||
@@ -368,7 +369,7 @@ class EpsonPrinterUI(tk.Tk):
|
|||||||
# Create Help menu
|
# Create Help menu
|
||||||
help_menu = Menu(menubar, tearoff=0)
|
help_menu = Menu(menubar, tearoff=0)
|
||||||
menubar.add_cascade(label="Help", menu=help_menu)
|
menubar.add_cascade(label="Help", menu=help_menu)
|
||||||
help_menu.add_command(label="Help", command=self.open_help_browser)
|
help_menu.add_command(label="Usage guide", command=self.open_help_browser)
|
||||||
help_menu.add_command(label="Program Information", command=self.show_program_info)
|
help_menu.add_command(label="Program Information", command=self.show_program_info)
|
||||||
|
|
||||||
# Setup frames
|
# Setup frames
|
||||||
@@ -1083,7 +1084,7 @@ class EpsonPrinterUI(tk.Tk):
|
|||||||
self.status_text.insert(tk.END, '[ERROR]', "error")
|
self.status_text.insert(tk.END, '[ERROR]', "error")
|
||||||
self.status_text.insert(
|
self.status_text.insert(
|
||||||
tk.END,
|
tk.END,
|
||||||
': Select a valid printer model.\n'
|
' Select a valid printer model.\n'
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
keep_model = self.model_var.get()
|
keep_model = self.model_var.get()
|
||||||
@@ -1105,7 +1106,7 @@ class EpsonPrinterUI(tk.Tk):
|
|||||||
self.status_text.insert(tk.END, '[ERROR]', "error")
|
self.status_text.insert(tk.END, '[ERROR]', "error")
|
||||||
self.status_text.insert(
|
self.status_text.insert(
|
||||||
tk.END,
|
tk.END,
|
||||||
': Select a valid printer model.\n'
|
' Select a valid printer model.\n'
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
remove_model = self.model_var.get()
|
remove_model = self.model_var.get()
|
||||||
@@ -1410,7 +1411,7 @@ Web site: https://github.com/Ircama/epson_print_conf
|
|||||||
self.status_text.insert(tk.END, '[ERROR]', "error")
|
self.status_text.insert(tk.END, '[ERROR]', "error")
|
||||||
self.status_text.insert(
|
self.status_text.insert(
|
||||||
tk.END,
|
tk.END,
|
||||||
f": Missing 'Power off timer' in configuration\n",
|
f" Missing 'Power off timer' in configuration\n",
|
||||||
)
|
)
|
||||||
self.config(cursor="")
|
self.config(cursor="")
|
||||||
self.update_idletasks()
|
self.update_idletasks()
|
||||||
@@ -1457,7 +1458,7 @@ Web site: https://github.com/Ircama/epson_print_conf
|
|||||||
self.status_text.insert(tk.END, '[ERROR]', "error")
|
self.status_text.insert(tk.END, '[ERROR]', "error")
|
||||||
self.status_text.insert(
|
self.status_text.insert(
|
||||||
tk.END,
|
tk.END,
|
||||||
f": Improper values in printer serial number.\n",
|
f" Improper values in printer serial number.\n",
|
||||||
)
|
)
|
||||||
self.config(cursor="")
|
self.config(cursor="")
|
||||||
self.update_idletasks()
|
self.update_idletasks()
|
||||||
@@ -1466,7 +1467,7 @@ Web site: https://github.com/Ircama/epson_print_conf
|
|||||||
self.status_text.insert(tk.END, '[ERROR]', "error")
|
self.status_text.insert(tk.END, '[ERROR]', "error")
|
||||||
self.status_text.insert(
|
self.status_text.insert(
|
||||||
tk.END,
|
tk.END,
|
||||||
f": Cannot retrieve the printer serial number.\n",
|
f" Cannot retrieve the printer serial number.\n",
|
||||||
)
|
)
|
||||||
self.config(cursor="")
|
self.config(cursor="")
|
||||||
self.update_idletasks()
|
self.update_idletasks()
|
||||||
@@ -1508,7 +1509,7 @@ Web site: https://github.com/Ircama/epson_print_conf
|
|||||||
self.status_text.insert(tk.END, '[ERROR]', "error")
|
self.status_text.insert(tk.END, '[ERROR]', "error")
|
||||||
self.status_text.insert(
|
self.status_text.insert(
|
||||||
tk.END,
|
tk.END,
|
||||||
f": Cannot retrieve the printer WiFi MAC address.\n",
|
f" Cannot retrieve the printer WiFi MAC address.\n",
|
||||||
)
|
)
|
||||||
self.config(cursor="")
|
self.config(cursor="")
|
||||||
self.update_idletasks()
|
self.update_idletasks()
|
||||||
@@ -1539,7 +1540,7 @@ Web site: https://github.com/Ircama/epson_print_conf
|
|||||||
self.status_text.insert(
|
self.status_text.insert(
|
||||||
tk.END,
|
tk.END,
|
||||||
f' Cannot read EEPROM values for "{label}"'
|
f' Cannot read EEPROM values for "{label}"'
|
||||||
f': invalid printer model selected: {self.printer.model}.\n'
|
f' invalid printer model selected: {self.printer.model}.\n'
|
||||||
)
|
)
|
||||||
self.config(cursor="")
|
self.config(cursor="")
|
||||||
self.update_idletasks()
|
self.update_idletasks()
|
||||||
@@ -1575,7 +1576,7 @@ Web site: https://github.com/Ircama/epson_print_conf
|
|||||||
self.status_text.insert(tk.END, '[ERROR]', "error")
|
self.status_text.insert(tk.END, '[ERROR]', "error")
|
||||||
self.status_text.insert(
|
self.status_text.insert(
|
||||||
tk.END,
|
tk.END,
|
||||||
f": Missing 'Power off timer' in configuration\n",
|
f" Missing 'Power off timer' in configuration\n",
|
||||||
)
|
)
|
||||||
self.config(cursor="")
|
self.config(cursor="")
|
||||||
self.update_idletasks()
|
self.update_idletasks()
|
||||||
@@ -1830,7 +1831,7 @@ Web site: https://github.com/Ircama/epson_print_conf
|
|||||||
self.status_text.insert(tk.END, '[ERROR]', "error")
|
self.status_text.insert(tk.END, '[ERROR]', "error")
|
||||||
self.status_text.insert(
|
self.status_text.insert(
|
||||||
tk.END,
|
tk.END,
|
||||||
f": Missing 'First TI received time' in configuration\n",
|
f" Missing 'First TI received time' in configuration\n",
|
||||||
)
|
)
|
||||||
self.config(cursor="")
|
self.config(cursor="")
|
||||||
self.update_idletasks()
|
self.update_idletasks()
|
||||||
@@ -1841,7 +1842,7 @@ Web site: https://github.com/Ircama/epson_print_conf
|
|||||||
self.status_text.insert(tk.END, '[ERROR]', "error")
|
self.status_text.insert(tk.END, '[ERROR]', "error")
|
||||||
self.status_text.insert(
|
self.status_text.insert(
|
||||||
tk.END,
|
tk.END,
|
||||||
": No data from 'First TI received time'."
|
" No data from 'First TI received time'."
|
||||||
" Check printer configuration.\n",
|
" Check printer configuration.\n",
|
||||||
)
|
)
|
||||||
self.config(cursor="")
|
self.config(cursor="")
|
||||||
@@ -1882,7 +1883,7 @@ Web site: https://github.com/Ircama/epson_print_conf
|
|||||||
self.status_text.insert(tk.END, '[ERROR]', "error")
|
self.status_text.insert(tk.END, '[ERROR]', "error")
|
||||||
self.status_text.insert(
|
self.status_text.insert(
|
||||||
tk.END,
|
tk.END,
|
||||||
f": Missing 'First TI received time' in configuration\n",
|
f" Missing 'First TI received time' in configuration\n",
|
||||||
)
|
)
|
||||||
self.config(cursor="")
|
self.config(cursor="")
|
||||||
self.update_idletasks()
|
self.update_idletasks()
|
||||||
@@ -2030,14 +2031,14 @@ Web site: https://github.com/Ircama/epson_print_conf
|
|||||||
self.status_text.insert(tk.END, '[ERROR]', "error")
|
self.status_text.insert(tk.END, '[ERROR]', "error")
|
||||||
self.status_text.insert(
|
self.status_text.insert(
|
||||||
tk.END,
|
tk.END,
|
||||||
': Unknown printer model '
|
' Unknown printer model '
|
||||||
f'"{self.model_var.get()}"\n',
|
f'"{self.model_var.get()}"\n',
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
self.status_text.insert(tk.END, '[ERROR]', "error")
|
self.status_text.insert(tk.END, '[ERROR]', "error")
|
||||||
self.status_text.insert(
|
self.status_text.insert(
|
||||||
tk.END,
|
tk.END,
|
||||||
': Select a valid printer model.\n'
|
' Select a valid printer model.\n'
|
||||||
)
|
)
|
||||||
self.config(cursor="")
|
self.config(cursor="")
|
||||||
self.update()
|
self.update()
|
||||||
@@ -2230,7 +2231,7 @@ Web site: https://github.com/Ircama/epson_print_conf
|
|||||||
self.status_text.insert(
|
self.status_text.insert(
|
||||||
tk.END,
|
tk.END,
|
||||||
f' Cannot read EEPROM values for addresses "{addresses}"'
|
f' Cannot read EEPROM values for addresses "{addresses}"'
|
||||||
': invalid printer model selected.\n'
|
' invalid printer model selected.\n'
|
||||||
)
|
)
|
||||||
self.config(cursor="")
|
self.config(cursor="")
|
||||||
self.update_idletasks()
|
self.update_idletasks()
|
||||||
|
|||||||
Reference in New Issue
Block a user