Open HannesMorre opened 1 week ago
Hey @HannesMorre ,
can you please provide your inventree version you're using, and a screenshot of how you configured the printer machine? And do you have explicitly configured/touched the density setting for that machine?
Here is the version information:
# Version Information:
InvenTree-Version: 0.16.1
Django Version: 4.2.15
Commit Hash: 4c15e5c
Commit Date: 2024-08-30
Database: postgresql
Debug-Mode: False
Deployed using Docker: True
Platform: Linux-6.1.0-23-amd64-x86_64-with
Installer: DOC
These are the machine settings:
This is the pop-up we get when we try to print from the platform UI:
Nothing is printed despite the "Success" notification
Hi @HannesMorre
The Error message you are seeing is currently actually expected for physical printers, as they run in the background and return a completed: false
. This is still WIP on the inventree side in PUI, but should not block you from printing. Ref: https://github.com/InvenTree/InvenTree/blob/d59ce49d8230ad8036fae10b0f46a0d352ebfc56/src/frontend/src/components/buttons/PrintingActions.tsx#L103-L111
It seems that the "Print Mode" and "Print Density" settings were not set somehow by their defaults. I have tried to reproduce this on a fresh docker setup using inventree/inventree:0.16.1
, but I'm not able to do so. So I have a few ideas you could try:
172.16.128.20
from within the container. (docker exec -it <worker-container> ash
and then try ping 172.16.128.20
) Maybe your docker network uses the same network as your local network .docker exec -it <worker-container> ash
and then nc -l -p 9100
. Then you need to configure the printing machine to use localhost and port 9100. When printing, this should output something. You can even check if it outputs something correct by running nc -l -p 9100 > test.bin
, print again, and then python /usr/local/lib/python3.11/site-packages/inventree_dymo/dymo_to_png.py test.bin text
. If you see an image with lots of #
and ` and no error, everything worked fine. (You may need to disable line wrap and zoom out of your terminal). (FYI, if you want an png image, you need to change the last line of that python script from
out.show()to
out.save("/tmp/img.png")and run with
python dymo_to_png.py test.bin image`).
When we try to print using this plugin, we get the following logs: