This program querys Epson WF-3640 multi-function printer for its current ink level and page count; then, logs the information to a SQLite database.
You need node.js 8+ to run this script.
- Copy
config.example.json
toconfig.json
, and enter your printer's IP or hostname as thehost
property. - Run
npm i
to install dependencies. - Run the script with
node --experimental-modules index.mjs [path_to_sqlite_database.sqlite]
.- If you do not specify a path for the database file, it will be saved as
log.sqlite
in the current directory.
- If you do not specify a path for the database file, it will be saved as
ISC