Closed mikedolx closed 1 year ago
Just fixed my issue. The problem was, that i had the ATTACH_BARCODESCANNER
set to true, which basically means, that barcode buddy grabs the device and uses it. After removing ATTACH_BARCODESCANNER
from my docker-compose.yaml
i was able to successfully test the barcode scanner within the docker container.
But to get the input device working in the container, i had to change the group of the device to docker
using
sudo chgrp docker /dev/input/event0
Afterwards, i restarted my container, and the barcodes were working! Of cource i had to set ATTACH_BARCODESCANNER=true
in my docker-compose.yaml
.
Great to hear it is working now and thank you for the explanation!
Hi,
i just setup barcodebuddy on my raspberry pi 4 using docker. Here is my
docker-compose.yml
when i run the container with docker-compose i see the following log:
As it seems barcode buddy recognises my barcode scanner and the environment variable ATTACH_BARCODESCANNER. But when i got to the "screen" page and scan a grocy-known package of salt nothing is happening. No code is scanned, i get no logs whatsoever.
On the raspberry pi host, i can use evtest successfully using the device
/dev/input/event0
. But when i enter the container and try evtest i get the following message:I have googled a bit but couldn't find a solution for that. I guess that it's something special with the docker container?
can you help me?