Note: it's important to run with --net=host
. This allows the container to
access bluetooth devices. Sadly, this will most likely only work under linux.
docker run -e PHOMEMO_BT_MAC=<your-printers-mac> --net=host -it ghcr.io/b4ckspace/phomemer
PHOMEMO_BT_MAC=<your-printers-mac> poetry run flask \
--app phomeme:app run \
--debug --host 0.0.0.0 --port 8000
PHOMEMO_BT_MAC=<your-printers-mac> poetry run gunicorn -w 1 'phomeme:app' -b [::0]
Visit the awesome frontend on http://localhost:8000 or send via
curl using curl -v -F image=@image.pdf localhost:5000/print
.
The print code is inspired by labelprinter from SFZ-aalen