- Create a template with P-touch Editor following The Official Guide, set the
Object Name
column to one of the Keys Available, they will be replaced automatically :) - Save the template file to a sensible location
- Install the bPAC Client Component on the server that runs this daemon
Note: If you are downloading from releases, get the 64 bit version! (also check this out) - Grab the daemon from releases or build your own from the source
- Open the daemon, click Stop button and configure a sensible port and access key, and the template file
- Click Start button
- Overwrite the labels.blade.php in your Snipe-IT installation
- Go create some label, you will see a button and asset list instead of labels
- Click the print button and it should work :)
Create a shortcut in shell:startup
folder, and it should work.
To start miminized, pass -m
to the argument list.
If you're facing random freezes after printing for a few times and idle for a long period, while continuous printing works fine, it might be a bPAC issue.
The bPAC SDK 3.4 Manual, Troubleshooting sections writes:
With Open(), printer enumeration is performed internally.
If a printer with slow response is connected, for example, a printer on the network that is turned off, Open () can take a long time.
Possible solutions:
- Connect your printer via USB instead of WLAN
- Kill the program when it stuck, and reopen it & re-submit the print request
This is 100% working & fast, the first print request after freeze ALWAYS works - Wait patiently, in my worst case it takes 3 minutes to execute the
Open()
method - Try to mess with the config tool and make the printer not sleep
This error message means that the daemon is unable to find bPAC Client Component installation.
The binaries I provided in Releases SHOULD run under 64-bit mode since I've specified PlatformTarget. And you are supposed to install 64-bit bPAC Client Component.
However, if the bit width indicator on the left bottom of main form shows "32-bit", please install 32-bit bPAC Client Component, and report your case in this issue: #1, thank you.
All keys are prepended with a prefix (e.g. S:
for serial) except for asset_tag
and asset_url
.
Key | Description |
---|---|
id | The asset ID |
name | Name of asset |
serial | Serial number |
model | Model name |
company | Company name |
asset_tag | The asset tag, for 1D-code |
asset_url | The asset URL, for 2D-code |
Take a look at labels.blade.php, modify the top define
lines according to your configuration. The first PHP codeblock is dead simple, you may modify it according to your needs too.
Then, replace resources/views/hardware/labels.blade.php
with it, and you're good to go.
Specifically, if you're using docker, mount it to /var/www/html/resources/views/hardware/labels.blade.php
.