This python script resets the ink waste counter of the printer Epson L4160. It uses Easy SNMP which might be tricky to install, therefore also is included a Dockerfile to build an image with all dependencies.
Note
This script only resets the waste ink counter for the Epson L4160. The OIDs are model-specific and won't work on other printers. For other models, check out epson_print_conf — it supports hundreds of Epson models, can auto-detect unknown printers, and has both a GUI and CLI. epson-printer-snmp is another lighter alternative with support for many models.
To use this script the printer must be connected over Wi-Fi.
To run with a prebuild docker image run the following command
docker run nicootto/epson_l4160_ink_waste_resetter <PRINTER_IP>
docker build -t epson_l4160_ink_waste_resetter .
docker run epson_l4160_ink_waste_resetter <PRINTER_IP>
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python resetter.py <PRINTER_IP>