1.0.0 • Published 3 years ago

@neomura/png-to-phomemo-m110 v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

neomura/png-to-phomemo-m110

Command-line tool to convert PNG streams to streams which can be forwarded to Phomemo M110 label printers.

MIT licensed.

Dependencies

  • NodeJS 14.15.3 or later.

Installation/usage

PNG files fed into the application must be fully opaque and black and white. The unit appears to be 203DPI. Images will be placed in the top right corner of a label if they do not fill it. As the included labels are 40x30mm, this makes for approximately 320x240.

Ensure that the COM port is set to "raw" mode to prevent data corruption (example here for COM1):

stty -F /dev/ttyS1 115200 raw

Version tracked to project-local package.json (recommended)

Within a terminal in the same directory as the package.json:

npm install --save-dev @neomura/png-to-phomemo-m110

Then, to print to a file to the Phomemo M110 label printer on serial port 1:

npx neomura-png-to-phomemo-m110 < path-to-file.png | /dev/ttyS1

Globally installed (not recommended)

Within a terminal:

npm install --global @neomura/png-to-phomemo-m110

Then, to print to a file to the Phomemo M110 label printer on serial port 1:

neomura-png-to-phomemo-m110 < path-to-file.png | /dev/ttyS1