diff --git a/README.md b/README.md index 0f9a131..202b575 100644 --- a/README.md +++ b/README.md @@ -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-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) - [XP-7100 with firmware version YL25O7 (25 Jul 2024)](https://github.com/Ircama/epson_print_conf/issues/42) (firmware YL11K6 works) diff --git a/epson_print_conf.py b/epson_print_conf.py index fee2742..67737ca 100644 --- a/epson_print_conf.py +++ b/epson_print_conf.py @@ -2149,7 +2149,7 @@ def update_parameter( 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: logging.error("EpsonPrinter - invalid API usage") diff --git a/ui.py b/ui.py index 878beb5..75dfcf3 100644 --- a/ui.py +++ b/ui.py @@ -129,6 +129,7 @@ def show_help(self): '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(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('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)" @@ -368,7 +369,7 @@ def __init__( # Create Help menu help_menu = Menu(menubar, tearoff=0) 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) # Setup frames @@ -1083,7 +1084,7 @@ def keep_printer_conf(self): self.status_text.insert(tk.END, '[ERROR]', "error") self.status_text.insert( tk.END, - ': Select a valid printer model.\n' + ' Select a valid printer model.\n' ) return keep_model = self.model_var.get() @@ -1105,7 +1106,7 @@ def remove_printer_conf(self): self.status_text.insert(tk.END, '[ERROR]', "error") self.status_text.insert( tk.END, - ': Select a valid printer model.\n' + ' Select a valid printer model.\n' ) return remove_model = self.model_var.get() @@ -1410,7 +1411,7 @@ def get_po_mins(self, cursor=True): self.status_text.insert(tk.END, '[ERROR]', "error") self.status_text.insert( tk.END, - f": Missing 'Power off timer' in configuration\n", + f" Missing 'Power off timer' in configuration\n", ) self.config(cursor="") self.update_idletasks() @@ -1457,7 +1458,7 @@ def get_ser_number(self, cursor=True): self.status_text.insert(tk.END, '[ERROR]', "error") self.status_text.insert( tk.END, - f": Improper values in printer serial number.\n", + f" Improper values in printer serial number.\n", ) self.config(cursor="") self.update_idletasks() @@ -1466,7 +1467,7 @@ def get_ser_number(self, cursor=True): self.status_text.insert(tk.END, '[ERROR]', "error") self.status_text.insert( tk.END, - f": Cannot retrieve the printer serial number.\n", + f" Cannot retrieve the printer serial number.\n", ) self.config(cursor="") self.update_idletasks() @@ -1508,7 +1509,7 @@ def get_mac_address(self, cursor=True): self.status_text.insert(tk.END, '[ERROR]', "error") self.status_text.insert( tk.END, - f": Cannot retrieve the printer WiFi MAC address.\n", + f" Cannot retrieve the printer WiFi MAC address.\n", ) self.config(cursor="") self.update_idletasks() @@ -1539,7 +1540,7 @@ def get_current_eeprom_values(self, values, label): self.status_text.insert( tk.END, 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.update_idletasks() @@ -1575,7 +1576,7 @@ def set_po_mins(self, cursor=True): self.status_text.insert(tk.END, '[ERROR]', "error") self.status_text.insert( tk.END, - f": Missing 'Power off timer' in configuration\n", + f" Missing 'Power off timer' in configuration\n", ) self.config(cursor="") self.update_idletasks() @@ -1830,7 +1831,7 @@ def get_ti_date(self, cursor=True): self.status_text.insert(tk.END, '[ERROR]', "error") self.status_text.insert( tk.END, - f": Missing 'First TI received time' in configuration\n", + f" Missing 'First TI received time' in configuration\n", ) self.config(cursor="") self.update_idletasks() @@ -1841,7 +1842,7 @@ def get_ti_date(self, cursor=True): self.status_text.insert(tk.END, '[ERROR]', "error") self.status_text.insert( tk.END, - ": No data from 'First TI received time'." + " No data from 'First TI received time'." " Check printer configuration.\n", ) self.config(cursor="") @@ -1882,7 +1883,7 @@ def set_ti_date(self, cursor=True): self.status_text.insert(tk.END, '[ERROR]', "error") self.status_text.insert( tk.END, - f": Missing 'First TI received time' in configuration\n", + f" Missing 'First TI received time' in configuration\n", ) self.config(cursor="") self.update_idletasks() @@ -2030,14 +2031,14 @@ def reset_printer_model(self): self.status_text.insert(tk.END, '[ERROR]', "error") self.status_text.insert( tk.END, - ': Unknown printer model ' + ' Unknown printer model ' f'"{self.model_var.get()}"\n', ) else: self.status_text.insert(tk.END, '[ERROR]', "error") self.status_text.insert( tk.END, - ': Select a valid printer model.\n' + ' Select a valid printer model.\n' ) self.config(cursor="") self.update() @@ -2230,7 +2231,7 @@ def get_values(addresses): self.status_text.insert( tk.END, f' Cannot read EEPROM values for addresses "{addresses}"' - ': invalid printer model selected.\n' + ' invalid printer model selected.\n' ) self.config(cursor="") self.update_idletasks()