Giter Club home page Giter Club logo

glpi-camerainput-plugin's Introduction

Camera Input Plugin for GLPI

This ties into the global search box, Physical Inventory plugin's search box, and my Asset Audit plugin's search box and allows you to use your camera as a digital barcode reader. Since browsers can only use webcams/cameras in a secure context, you must be connected to your GLPI instance over HTTPS or localhost.

Currently, this only really works well under ideal circumstances where there is no glare, and the camera is of a good quality. In other cases, it is preferable to use an actual laser barcode scanner. This could be improved in the future by tweaking parameters used with the library being used, or by switching to a standardized JS Shape Detection/Barcode Detection API if any get finalized.

Locale Support

  • Contribute to existing localizations on POEditor.
  • To request new languages, please open a GitHub issue.

Version Support

Multiple versions of this plugin are supported at the same time to ease migration. Only 2 major versions will be supported at the same time (Ex: v1 and v2). When a new minor version is released, the previous minor version will have support ended after a month. Only the latest bug fix version of each minor release will be supported.

Note: There was no official version support policy before 2022-05-19. The following version table may be reduced based on the policy stated above.

Plugin Version GLPI Versions Start of Support End of Support
1.0.3 9.5.X 2021-11-15 In Support
2.0.0 10.0.X 2022-04-20 2023-06-03
2.1.0 10.0.X 2023-05-03 In Support

glpi-camerainput-plugin's People

Contributors

cconard96 avatar tsmr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

glpi-camerainput-plugin's Issues

glpi-camerainput-plugin crashed GLPI

After copying plugin files into mysite/glpi/plugins folder, server turns error 404. It doesn't even give the opportunity to install the plugin.

Steps to reproduce the behavior:

  1. Copy plugin's files into yourserver/glpi/plugins folder
  2. Give the plugin folder proper permissions
  3. Refresh server
  4. Refresh server address in browser

Expected to see plugins page in browser and install the new plugin.

  • GLPI Server OS: CentOS Stream 9
  • Browser Google Chrome
  • Plugin version 2.1.0

With other plugins there are no problems.

PHP User warnings after upgrade

Hallo, dear developer.

We have installed the Camera plugin v. 2.1.0 beta in order to test the new browser-based decoding engine.

After upgrading the GLPI from 10.0.5 to 10.0.6, and reinstalling the plugin from original package, red framed error shows up on GLPI pages:

PHP User Warning (512): node_modules/@undecaf/zbar-wasm/dist/index.js file not found from plugin camerainput! in /var/www/html/glpi/src/Html.php at line 1847
PHP User Warning (512): node_modules/@undecaf/barcode-detector-polyfill/dist/index.js file not found from plugin camerainput! in /var/www/html/glpi/src/Html.php at line 1847

new features

hi, Congratulations for your work, excellent plugin, I recommend you develop the following to get more out of it

1- Allow to search for computers by scanning barcode or QR
image

2- allow to register bar codes or QR to create new computers or devices

image

Install not possible

Describe the bug
Hi, after manual installation, the plugin is present in "Plugins", but nothing happens when I click on the "Install" icon.

Sans titre

System Specifications (please complete the following information):
PHP Version 7.2.5
Linux / Apache 2
GLPI 9.5.5

No barcode detected

Hi!
I'm trying to use the Camerainput plugin. I have it installed under GLPI with no problem, the camera icon is present near search bar.
I log in to GLPI using a browser on mobile. When I tap the camera icon in GLPI, (after neccessarry camera access confirmation) a camera window opens that shows the correct camera input.
But it does nothing else; no barcode is ever detected or scanned. When I tap the camera window, it disappears as if nothing happened.
Am I doing something wrong?

Add Wiki

Improve new user experience by adding Wiki pages to this repository.

Cannot activate CameraInput GLPI plugin

Hello Curtis,

I am trying to test the CameraInput plugin with a fresh GLPI 9.5.5 installed on a Linux server (el8 / PHP 8 / MariaDB 10.3)

This GLPI's server is HTTPS, behind an Apache r-proxy (frontend HTTPS / backend HTTP, GLPI notifications in Internet browsers work fine).

Once copied, the CameraInput plugin is listed by the GLPI but when you want to install, nothing happens.

A track to see if something does not comply or if it could be a bug?

Thank you in advance,
truthfully yours.

...and Google Translate ;-)

Installation from commandline not possible

Describe the bug
I want to install this plugin as part of an automated deployment and as such I am using the CLI command to install it.
php bin/console glpi:plugin:install camerainput

As far as I know this way the $_SERVER variables are not set and therefore the installation fails with:

PHP Warning (2): Undefined array key "REMOTE_ADDR" in /var/www/plugins/camerainput/hook.php at line 25
PHP Warning:  Undefined array key "REMOTE_ADDR" in /var/www/plugins/camerainput/hook.php on line 25
This plugin requires GLPI be served over HTTPSInstallation des Plugins "camerainput" fehlgeschlagen.

To Reproduce
Steps to reproduce the behavior:

  1. Copy camerainput into the plugins folder
  2. Install the plugin with php bin/console glpi:plugin:install camerainput

Expected behavior
php bin/console glpi:plugin:install camerainput should let me install the plugin.

System Specifications (please complete the following information):

  • GLPI Server OS: Ubuntu 22.04 (run in docker)
  • Plugin version 2.0.0

Additional context

I'm not sure if there is any way to properly check if GLPI is using HTTPS inside of the install Hook when it is run from CLI.
If it is indeed not possible to check then maybe an exception could be added to allow to install this plugin anyway when it is installed from the commandline.

Automatic selection

Hi,

I would like to report folowing feature request: In Inventory, I invoke camerainput plugin. When barcode is read, it would be practical to automatically start search for the value, and when a record is found, automatically open its properties.

QR codes

Hello,
I'm trying to check the plugin with QR codes but I don't get any result: For every QR code scanned, I get a blank result.
The Barcode is working but no QR.
I mean, even trying with a QR code generator (I've tried several of them) I cannot get any result.
i.e. this one https://qr.io (choosing text)

Is there any list of format of QR code compatible with the plugin?

thank you

davide

Plugin fails to install from GLPI Marketplace

Describe the bug
Cannot download the plugin from GLPI Marketplace.

To Reproduce
Steps to reproduce the behavior:

  1. Try to install the plugin from GLPI Marketplace
  2. See error popup "Error - Unable to download plugin archive."
  3. In logs Client error: `GET https://github.com/cconard96/glpi-camerainput-plugin/releases/download/v2.1.0/glpi-camerainput-v2.1.0.tar.bz2` resulted in a `404 Not Found` response

Screenshots
image

Additional context
As visible in the log message, the URL to the plugin archive is incorrect. The correct is:
https://github.com/cconard96/glpi-camerainput-plugin/releases/download/v2.1.0/glpi-camerainput-plugin-2.1.0.tar.bz2
When installing from marketplace it tries to load:
https://github.com/cconard96/glpi-camerainput-plugin/releases/download/v2.1.0/glpi-camerainput-v2.1.0.tar.bz2

Update Quagga2 to latest version

Update the QUagga2 library which is what does the barcode scanning to the latest version available before the release for GLPI 10.0.

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.