erlang based utility to track pages printed on a printer by scraping page total from printer
Erlang
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README
prt.erl

README

prt.erl - version 1.0
==============

erlang based utility to track pages printed on a printer by
scraping page total from printer 

Requirements
==============
1. erlang
2. postgresql
3. https://github.com/wg/epgsql.git 
4. create prt.hrl with information below filled out properly:

%% hrl file for prt.erl

-include("/usr/local/lib/yaws/include/yaws_api.hrl").

-define(MAGIC_LINE_NUMBER, 208).
-define(URL, "").
-define(HOST, "localhost").
-define(DB, "").
-define(USERNAME, "").
-define(PASSWORD, "").
-define(SECONDS, 5).


5. then in yaws.conf put this:

ebin_dir = /path/to/prt/beamfile

6. then start yaws like this:

yaws -r prt



prt will check every 5 seconds to add any new print jobs to DB.

see pagecount.erl repo to view the print job daily totals

see ypg.erl repo to see how to view individual print jobs