Open cash drawer on TSP143III
selenecodes opened this issue · comments
Good morning, I love your package however I can't seem to get the cash drawer to open? Printing however works fine*
I know the Star TSP143III only supports raster images without a driver hence the following workflow:
- Connect to printer using WebUSB -> Create receiptline SVG -> Convert SVG to png -> Send png to printer
Example repo: https://github.com/selenecodes/webusb-printer
Example website running said repo: https://webusb-printer.vercel.app/
This is my input string:
{image:iVBORw0KGgoAAAANSUhEUgAAAQAAAAA8AgMAAAD004yXAAAACVBMVEVwAJsAAAD///+esS7BAAAAAXRSTlMAQObYZgAAAZtJREFUSMftlkGOwyAMRW0J76kE97GlZu9KcP+rzCekKak6bWdGmrZS6KIG/7yAbQhEe+tN6qUpDZ1KPHT8SnhpeaP6FlA2wicBsgOeBpTF6gDfZHgj9Jt1sAMeAYYE/RFQngYMuX49gD8fMObjkwB+++h+DeB3x/qdvfD/AP4QwPXX+ceAUdV6Y7K/3Vr7rWhv73ZN9XVHzOUdlm6v9ay3pM1eLT+Ppv63BWjz8jJU0vpUWgGs5yfihrN451G+lq7i2bkF8Bagw3Qv0hEQKGTPPjnGxJtZrSIcJy5ciJ3JStbarjrgwOtVK7Z1iLFOOgOSR3WstTqMqCcVFlITDnhhNhMKzJNIA3iEBr1uaAfArA7bSWdAkRrIsJSMrwXbJBowEhogwe9F+NilC8D1oIyg43fA+1WwKpoktXUmsiOCjxFMR+gEBfwcaJ7qDBBWNTVSxKsZZhwkUgkppEiJ1VOIQdCFtAmNBQg9QWj9POQWFW4Bh0HVipRIHlpEUVzUAmslpgQpVcS0SklcrBqf03u/UvVhLd8H5Hffil/ia4Io3warBgAAAABJRU5ErkJggg==}
Ichigaya Terminal
1-Y-X Kudan, Chiyoda-ku
02-07-2021 21:00
{border:line; width:30}
^RECEIPT
{border:space; width:*,2,10}
BEER | 2| 13.00
CHIDORI | 2| 172.80
-------------------------------------
{width:*,20}
^TOTAL | ^185.80
CASH | 200.00
CHANGE | 14.20
{code:20210207210001; option:48,hri}
{command:\x07}
{command:\x1b\x07\x0b\x37\07}
Nvm got it working with this command {command:\x07}
just needed to ensure that said command was added AFTER creating the png (I was encoding it in my png xD)