POST/PUT localhost:5001/label_writer_450/printPDF
Print PDF Base64 encoded.
Body:
{
label: [{
stream: ...
},
{
stream: ...
}],
orderId: ...,
startingBox: ...
}
- label: labes's json array. Inside every json item must be a field called
streamthat is the Base64 ancoded stream. - orderID: the order id. This field is mandatory to.
- startingBox: represents which package of the shipment you start printing from. Let's take an example which is easier. Suppose there is a 5-package shipment. The first two are printed. In this case
staringBoxis set to 0. To print the other three the data must be set to two. It might sound strange but trust me! Using startingBox correctly it will be possible to take advantage of the possibility of reprinting
POST/PUT localhost:5001/label_writer_450/reprintPDF
Reprint all the selected order labels.
Body:
{
orderId: ...,
}
#install GIT and Python on windows - Guide for non-technical installer
-
Download GIT for windows: https://git-scm.com/download/win
-
Install GIT
-
Download Python, latest release , win-64BIT release: https://www.python.org/downloads/windows/
-
Install Python installer for Windows (64 bit)
-
Restart PC
-
Go inside documents folder, then right click, select “git Bash Here” (on windows11 click “show all options” to find “git Bash Here” option Copy and execute in above shell:
git clone https://github.com/inkloud/warehouse_labeling_machines.git -
Explore inside “warehouse_labeling_machines” folder
-
click on installer.cmd (rus as PowerShell as Administrator) and say yes on opened admin console
-
restart the pc and see the service active using https://localhost:5001/label_writer_450/
CHROME ICON LINK, Right click and push PROPERTIES, change path as below
<local path>/chrome.exe --user-data-dir="C:/Chrome dev session" --disable-web-security Set-ExecutionPolicy unrestricted
Example of property link:
"C:\Program Files\Google\Chrome\Application\chrome.exe" "https://it2.life365.eu/api/parcel-forwarder/" "http://localhost:8090/" --user-data-dir="C:/tmp" --disable-web-security Set-ExecutionPolicy unrestricted
To launch the server execute launch_server.ps1
- Download the repo
- double click on installer.cmd and say yes on open admin console
- restart the pc and see the service active using https://localhost:5001/label_writer_450/
- After installation of Zebra printer with default driver, manually add a printer with driver Generic-Text Only in the same port of Zebra Printer
- Change paper format to: Width: 6inch Height: 4inch
- In Printer Properties in Windows set: Orientation: Orizontal