mirror of
https://github.com/Ircama/epson_print_conf.git
synced 2024-10-18 01:00:36 -04:00
Refinements
This commit is contained in:
parent
90d6ea5c24
commit
deb33df52a
2 changed files with 7 additions and 6 deletions
|
@ -247,19 +247,20 @@ Example of advanced printer status with an XP-205 printer:
|
|||
'Emulation 5': 'other',
|
||||
'Epson Model': 'XP-205 207 Series',
|
||||
'IP Address': '192.168.1.87',
|
||||
'IPP_URL': 'http://192.168.1.87:631/Epson_IPP_Printer',
|
||||
'IPP_URL_path': 'Epson_IPP_Printer',
|
||||
'Lang 1': 'unknown',
|
||||
'Lang 2': 'ESCPL2',
|
||||
'Lang 3': 'BDC',
|
||||
'Lang 4': 'D4',
|
||||
'Lang 5': 'ESCPR1',
|
||||
'MAC Addr': '...',
|
||||
'MAC Address': '...',
|
||||
'Model': 'EPSON XP-205 207 Series',
|
||||
'Model short': 'XP-205 207 Series',
|
||||
'Name': '....',
|
||||
'Print input': 'Auto sheet feeder',
|
||||
'Total printed pages': '0',
|
||||
'URL': 'http://192.168.1.87:631/Epson_IPP_Printer',
|
||||
'URL_path': 'Epson_IPP_Printer',
|
||||
'UpTime': '00:57:48',
|
||||
'WiFi': '....',
|
||||
'device_id': 'MFG:EPSON;CMD:ESCPL2,BDC,D4,D4PX,ESCPR1;MDL:XP-205 '
|
||||
|
|
|
@ -310,10 +310,10 @@ class EpsonPrinter:
|
|||
#"Total copies": "1.3.6.1.2.1.43.11.1.1.9.1.1",
|
||||
#"Serial number": "1.3.6.1.2.1.43.5.1.1.17.1",
|
||||
"IP Address": "1.3.6.1.4.1.1248.1.1.3.1.4.19.1.3.1",
|
||||
"URL_path": "1.3.6.1.4.1.1248.1.1.3.1.4.19.1.4.1",
|
||||
"URL": "1.3.6.1.4.1.1248.1.1.3.1.4.46.1.2.1",
|
||||
"IPP_URL_path": "1.3.6.1.4.1.1248.1.1.3.1.4.19.1.4.1",
|
||||
"IPP_URL": "1.3.6.1.4.1.1248.1.1.3.1.4.46.1.2.1",
|
||||
"WiFi": "1.3.6.1.4.1.1248.1.1.3.1.29.2.1.9.0",
|
||||
"hex_data": "1.3.6.1.4.1.1248.1.1.3.1.1.5.0",
|
||||
"MAC Addr": "1.3.6.1.4.1.1248.1.1.3.1.1.5.0",
|
||||
"device_id": "1.3.6.1.4.1.11.2.3.9.1.1.7.0",
|
||||
}
|
||||
|
||||
|
@ -998,7 +998,7 @@ class EpsonPrinter:
|
|||
elif name == "UpTime" and result is not False:
|
||||
sys_info[name] = time.strftime(
|
||||
'%H:%M:%S', time.gmtime(int(result)/100))
|
||||
elif name == "MAC Address" and result is not False:
|
||||
elif name.startswith("MAC ") and result is not False:
|
||||
sys_info[name] = result.hex("-").upper()
|
||||
elif isinstance(result, bytes):
|
||||
sys_info[name] = result.decode()
|
||||
|
|
Loading…
Reference in a new issue