benrees-git / webhid-scales

A Google Chrome extension to connect HID compliant scales and output the value into a designated input field (via HTML element ID).
Other
2 stars 0 forks source link

After disconnect, scales don't connect to the extension automatically when turned back on #1

Open benrees-git opened 3 years ago

benrees-git commented 3 years ago

If scales disconnect during use (e.g. due to inactivity power off) they disconnect from the extension but do not automatically reconnect when turned back on.

This because the WebHID API doesn't currently support persistent permissions. If the device disconnects, it requires a permissions popup to reconnect and open the device. The permissions popup itself requires some sort of user gesture input, so unfortunately the best option currently is to just force reconnect from the extension popup.

benrees-git commented 3 years ago

Chromium issue tracked https://bugs.chromium.org/p/chromium/issues/detail?id=958918 Latest status that they are working on a resolution.

benrees-git commented 6 months ago

This issue is now resolved within the WebHID API, although persistent permissions are only retained for devices that have a serial number visible to the API. The Dymo scales used for testing do not appear ot have a serial number, so the behaviour has not changed. I will leave this enhancement open to be closed once tested with a serial number enabled device.

Eric-Kenneths commented 3 months ago

Hello, thank you for posting this repo. I am also working on a WebHID project and am using the Dymo scales also. Unfortunately, the Dymo scale only have a precision to .1 oz and I need .01 oz. Do you know of any other scales that are WebHID and have precision to the .01 oz. I have been looking and can't seem to find one.