Closed s00500 closed 1 day ago
I'm currently using the B1. I don’t have the D110, so I'll check the D110 protocol to see if there’s any difference. I need a bit of time due to work commitments these days.
I see, thanks. I dont think there is a big difference. I have gotten it to print very missaligned things a few times already. Take your time, I can test if you want :-)
Can you show me the result of the printed label in a photo? And can you send me the log of the successfully printed result from your label printer at https://niim.mmote.ru/ Press F12 in Chrome to display the log in the Console.
Here is the log of a test print
With your new 1.1.0 prerelease I could reliably make it do this:
action: niimbot.print
data:
payload:
- type: text
value: Lukas Test
font: ppb.ttf
x: 10
"y": 10
size: 30
rotate: 0
width: 240
height: 96
target:
device_id: myDevice
Could not make it rotate though... any tipps ?
@s00500
index-uVxFe2fQ.js:68 TypeError: Cannot read properties of undefined (reading 'DEFAULT_PACKET_TIMEOUT') at setDefaultPacketTimeout (index-uVxFe2fQ.js:33:42154) at
at async H (index-uVxFe2fQ.js:68:12844)
Ooops. Will fix it soon.
UPD: Fixed.
You can try
payload:
- type: text
value: Lukas Test
font: ppb.ttf
x: 10
"y": 10
size: 30
rotate: 90
width: 240
height: 96
Or
payload:
- type: text
value: Lukas Test
font: ppb.ttf
x: 10
"y": 10
size: 30
rotate: 90
width: 96
height: 240
Perfect, that worked :-)
Hey again, what devices are you using this with ? I could make it kinda work with the D110 but alignment was always off, so I an curious what device you are using