Skip to content
total daily print jobs listing
Erlang
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README
pagecount.erl

README

pagecount.erl - version 1.0
==============

erlang based utility to report daily totals for pages printed to a printer

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

% printer info

-define(MAGIC_LINE_NUMBER, 208).

% URL for brother printer

-define(URL, "http://192.168.0.1/printer/configu.html?autoref=0&weblang=0").

% postgres connection info

-define(HOST, "localhost").
-define(DB, "").
-define(USERNAME, "").
-define(PASSWORD, "").

% YAWS api location (example below)

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


see ypg.erl repo to see how to view individual print jobs
see pgprt repo to scrape printer jobs every N seconds and put result in DB
Something went wrong with that request. Please try again.