mirror of
https://github.com/Ircama/epson_print_conf.git
synced 2024-10-18 01:00:36 -04:00
Revise cartridge info
This commit is contained in:
parent
f4407161a7
commit
d7d0ca9bdb
2 changed files with 5 additions and 5 deletions
|
@ -268,22 +268,22 @@ printer.write_first_ti_received_time(2000, 1, 2)
|
|||
Example of advanced printer status with an XP-205 printer:
|
||||
|
||||
```python
|
||||
{'cartridge_information': [{'id': '0D081F172A0D04004C',
|
||||
{'cartridge_information': [{'data': '0D081F172A0D04004C',
|
||||
'ink_color': [1811, 'Black'],
|
||||
'ink_quantity': 76,
|
||||
'production_month': 8,
|
||||
'production_year': 2013},
|
||||
{'id': '15031D06230D080093',
|
||||
{'data': '15031D06230D080093',
|
||||
'ink_color': [1814, 'Yellow'],
|
||||
'ink_quantity': 69,
|
||||
'production_month': 3,
|
||||
'production_year': 2021},
|
||||
{'id': '150317111905020047',
|
||||
{'data': '150317111905020047',
|
||||
'ink_color': [1813, 'Magenta'],
|
||||
'ink_quantity': 49,
|
||||
'production_month': 3,
|
||||
'production_year': 2021},
|
||||
{'id': '14091716080501001D',
|
||||
{'data': '14091716080501001D',
|
||||
'ink_color': [1812, 'Cyan'],
|
||||
'ink_quantity': 29,
|
||||
'production_month': 9,
|
||||
|
|
|
@ -1365,7 +1365,7 @@ class EpsonPrinter:
|
|||
1900 if int(i['PDY'], 16) > 80 else 2000),
|
||||
"production_month": int(i['PDM'], 16),
|
||||
# items which can be excluded
|
||||
"id": i.get('SID'),
|
||||
"data": i.get('SID'),
|
||||
"manufacturer": i.get('LOG'),
|
||||
}.items()
|
||||
if v # exclude items without value
|
||||
|
|
Loading…
Reference in a new issue