Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Repository files navigation

API

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 stream that 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 staringBox is 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

  1. Download GIT for windows: https://git-scm.com/download/win

  2. Install GIT

  3. Download Python, latest release , win-64BIT release: https://www.python.org/downloads/windows/

  4. Install Python installer for Windows (64 bit)

  5. Restart PC

  6. 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

  7. Explore inside “warehouse_labeling_machines” folder

  8. click on installer.cmd (rus as PowerShell as Administrator) and say yes on opened admin console

  9. restart the pc and see the service active using https://localhost:5001/label_writer_450/

Useful for deployment

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

Launch

To launch the server execute launch_server.ps1

Deployment

  1. Download the repo
  2. double click on installer.cmd and say yes on open admin console
  3. restart the pc and see the service active using https://localhost:5001/label_writer_450/

Printer configuration

  1. After installation of Zebra printer with default driver, manually add a printer with driver Generic-Text Only in the same port of Zebra Printer
  2. Change paper format to: Width: 6inch Height: 4inch
  3. In Printer Properties in Windows set: Orientation: Orizontal

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages