Git Product home page Git Product logo

snipeit-bpac's Introduction

Snipe-IT bPAC Daemon

Usage

  1. 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 :)
  2. Save the template file to a sensible location
  3. 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)
  4. Grab the daemon from releases or build your own from the source
  5. Open the daemon, click Stop button and configure a sensible port and access key, and the template file
  6. Click Start button
  7. Overwrite the labels.blade.php in your Snipe-IT installation
  8. Go create some label, you will see a button and asset list instead of labels
  9. Click the print button and it should work :)

Start with Windows

Create a shortcut in shell:startup folder, and it should work.

To start miminized, pass -m to the argument list.

Random freezes on request?

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:

It is taking a long time to run Open()

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

Error: Retrieving the COM class factory for component with CLSID failed?

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.

The Snipe-IT part

Keys Available

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

Install labels.blade.php

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.

snipeit-bpac's People

Contributors

xwtf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

nsynkde

snipeit-bpac's Issues

Retrieving the COM class factory for component with CLSID failed

After clicking the "Click here to print" button, the prompt "{"code":500,"msg":"Unknown error occured: Retrieving the COM class factory for component with CLSID {B940C105-7F01-46FE-BF41-E040B9BDA83D} failed due to the following error: 80040154 \u6CA1\u6709\u6CE8\u518C\u7C7B (0x80040154 (REGDB_E_CLASSNOTREG))."}" will appear. What should I do?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.