printerStats
Right now it is a very crude Printer Status Monitor, for the Ricoh Aficio SP 8200DN. A very very crude HP LaserJet 4200 module has been made, just remember its not perfect.
Requirements:
- MySQL or MariaDB 5.0+
- PHP 5.4+ for the front end
- Smarty 3+ will also need to configure the www config file to the path that smarty and the templates are in.
- Python 2.7 for the daemon (packages used are: sys, pymysql, re, time, BeautifulSoup, urllib2, matplotlib.pyplot, collections, types )
- Apache 2+
To use:
-
Create a MySQL Database called
printers
make sure it is UTF8_bin. -
Import the printers.sql file into that database.
-
Create a MySQL user called Printers or what ever you want, give select/insert to this user on the printers db.
-
Copy the contents of the www folder to your HTTP root folder or where ever.
-
Copy the contents of the daemon folder some where that is not in the HTTP root.
-
Configure the config files in: a) /folder/you/put/daemon/config/config.ini b) /folder/you/put/www/printers/lib/config.php
-
Add the printers you want to watch in /folder/you/put/daemon/printers.ini a) Follow the file format carefully.
-
Run the daemon from /folder/you/put/daemon/getstatsd.py
-
View the results at http://printershost/printers/index.php
Graph data limiting is configurable in the daemon config.ini, wouldnt recommend more than 100 data points, it just looks bad.