A web service used for printing with Dymo LabelManager PnP. Using Flask and labelle.
225
A web service running in docker used for printing with Dymo LabelManager PnP. Based on Flask and labelle.
Print using POST request:
curl --header "Content-Type: application/json" \
--request POST \
--data '{"text1": "First row", "text2": "Second row", "qr": "https://tiny-url.com"}' \
http://localhost:5001/print
Supported parameters. One of either text1, qr or img_url is mandatory, rest is optional.
{
"text1": "First row",
"text2": "Second row",
"text3": "Third row",
"text4": "Forth row",
"img_url": "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png",
"qr": "https://tiny-url.com"
}
# Clone GitHub repo
git clone https://github.com/cr3ation/dymo-webprint.git
# Move to folder
cd dymo-webprint
# Modeswitch settings to switch LabelManager PnP from beeing recognized as USB storage device, to be recognized as a printer.
echo 'ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="0922", ATTRS{idProduct}=="1001", MODE="0666"' | sudo tee /etc/udev/rules.d/91-labelle-1001.rules
sudo systemctl restart udev.service
docker compose up
It's recommended to use docker compose up (see installation section above). If you manually want to build and run the container, below are the required steps.
In order to build and run you'll need docker installed.
docker build -t dymo-webprint:latest .
sudo docker run -d --privileged -v /dev/bus/usb:/dev/bus/usb -p 5001:5001 dymo-webprint:latest
/app/app.py - Main webservicelabelle - Tool for managing printingPlease read CONTRIBUTING.md for details on code of conduct, and the process for submitting pull requests. Special thanks to the labelle team.
This project is licensed under the MIT License - see the LICENSE.md file for details.
Content type
Image
Digest
sha256:d191e9b7a…
Size
393.4 MB
Last updated
over 2 years ago
docker pull creation/dymo-webprint