-
Does anyone have an example of what is meant by this env variable? The documentation here says
But it's not in this documentation at all so maybe one of these is out of date? I hope to get a label printer and was wondering if this is some env variable that could be used to print straight to the device or something? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
The hay-kot documentation is not the documentation for this fork. The first documentation you linked is correct. I'd have to dig into the code again, but I do believe that the variable gives you a way to print labels directly to the label printer without dealing with the OS print screen. |
Beta Was this translation helpful? Give feedback.
-
So I found this in the PR that added this variable. I haven't tested it but it looks like you'd fill this variable with a string like Not sure how safe it is to just run code like that but I suppose if a bad agent has access to my env vars I'm already 💀 |
Beta Was this translation helpful? Give feedback.
-
So I've set up my label printer, connected it to a CUPS server running on an old raspberry pi and can successfully print to it manually (from the server) using: I configured the variable like this: But the log is spitting out this:
I can print manually from an ssh session no problem - any hints anyone can provide? |
Beta Was this translation helpful? Give feedback.
Success 💪
I worked around this by using cp (which is available) and mounting a folder as a volume.
Server cp's the label to that folder and I set up an inotify service on the host to watch it for changes, pushing anything that changes to the printer.