@neomura/png-to-phomemo-m110
v1.0.0
Published
Command-line tool to convert PNG streams to streams which can be forwarded to Phomemo M110 label printers.
Downloads
2
Readme
neomura/png-to-phomemo-m110
Command-line tool to convert PNG streams to streams which can be forwarded to Phomemo M110 label printers.
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