Skip to content

Instantly share code, notes, and snippets.

@crazybird82
crazybird82 / printer-head-save.php
Created February 20, 2017 20:33
Epson WF-7620 - save printer heads with php on linux system snmp
<?php
/**
* @autor Pascal Specht
*
* a quick and dirty solution for Epson WorkFlow 7620 printerhead problems
* let the printer always on! the standby-mode it costs 0.70 € with a price 0.28 € kilowatt hour in a year and only then the printer can try to not let the ink dry.
*
* this script is asking the printer server with snmp how many color pages are printed with a cronjob once per day. That information put it into a mysql-db.
* After 2 days without printing a color page this script will print a test page, so the printer heads can't get a problem with dried ink ...