Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Integrate with USB scale #37

Open
agritheory opened this issue Jul 10, 2023 · 0 comments
Open

Feature Request: Integrate with USB scale #37

agritheory opened this issue Jul 10, 2023 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@agritheory
Copy link
Owner

I have a USB scale and would like to integrate it such that:

  • When a device is detected it shows a [ value | UOM ] readout on the page of configured doctypes
    • If no device is detected, no readout is shown
  • I want to capture that output and set the last row with that data (eg, frm.doc.items[-1].qty and uom)
    • The capture can be triggered by a keypress (what key? any key?)
    • If enough consecutive reads of the weight and UOM are of the same number, automatically set the qty and UOM, if it is also NOT the the value of frm.doc.items[-2].qty and uom

In the proof of concept script I ran into a few issues.

  • This feature is only supported on Chrome, Edge and Opera (which is fine I guess, but get with the times Firefox)
  • The ondevicereport callback does not seem to be cancel-able in a reasonable way and would benefit from discussion
  • This is currently implemented with jQuery but should probably be a Vue component so that it might be able to be re-used in the planned mobile integration (Portal/ Mobile interface #15)
@agritheory agritheory added the enhancement New feature or request label Jul 10, 2023
@agritheory agritheory added this to the v14.x.x milestone Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant