Free and open waste ink counter resetter for some (EPSON) printers.
A working fork of the reinkpy project by Daniel Gerber 'https://codeberg.org/atufi/reinkpy' with critical fixes implemented for resetting the Epson EcoTank waste ink counter.
Status: Confirmed working for Epson L3060 Series and similar.
The original reinkpy library fails when attempting to execute the waste counter reset (driver.reset_waste()) via LAN/SNMP. This is because:
- The
reinkpy/snmp.pyfile lacked the necessary SNMP SET command logic for writing data. - The library failed to correctly pass the necessary proprietary write community string (
EPCF_PASS) from the user script to the SNMP connection.
This repository fixes both issues.
-
Clone this Repository:
git clone https://github.com/LeFZdev/reinkpy-fix cd reinkpy-fix -
Recommended Installation Path: Install this fork's dependencies:
pip install -r requirements.txt
To ensure all original project dependencies (UI, USB, etc.) are available, you may also need to install the original project (ensure you use this step BEFORE running the script, as your local fixed files will overwrite the critical ones):
pip install -e git+https://codeberg.org/atufi/reinkpy#egg=reinkpy[ui,usb,net]
-
Setup Virtual Environment (If needed):
python -m venv venv .\venv\Scripts\activate pip install -r requirements.txt
-
Run the Reset Script: Modify the provided
main.pyto use the correct printer IP and the necessary values of your printer. -
Execute:
python main.py
The following changes were implemented to enable LAN write functionality:
reinkpy/snmp.py: Added the missing_set_cmdmethod utilizingpysnmp.hlapi.setCmdto enable SNMP SET (write) operations.reinkpy/__init__.py: PatchedNetworkDeviceto accept and pass thewrite_userargument from the calling script to theSNMPLinkconstructor.- Fixed syntax erros in
reinkpy/__init__.py, andreinkpy/snmp.py, As well as changing file nominations ofreinkpy/usbtest.pyandreinkpy/netscan.pyto prevent circular imports
This is software. It won't actually replace pads.
THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
The author(s) and contributor(s) are not liable for any damage, data loss, or printer malfunction that may occur from its use. Use this software at your own risk.