![]() ![]() ![]() (sorry about the lousy formatting, I wanted to make it legible and github's code quoting is. Path: Internal Keyboard / / 'D3H51655SF1FTV4AG6JS', ![]() Product: 'Apple Internal Keyboard / Trackpad', Path: Internal Keyboard / 'D3H51655SF1FTV4AG6JS', Node-hid is the perfect choice for the cross-platform nature of this app - you don't have to install any extra dependencies on Windows for it - but for some reason, the node-hid module refuses to admit that the scale is connected to my Mac, even when the OS says it is. (/helloworld/node_modules/electron/dist/Electron.app/Contents/Resources/default_app.asar/main. (/helloworld/main.js:32:3) at Module._compile (module.js:571:32) at Object.Module._extensions.js (module.js:580:10) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3) at loadApplicationPackage (/helloworld/node_modules/electron/dist/Electron.app/Contents/Resources/default_app.asar/ main.js:283:12) at Object. Node-hid ignores it completely, and if you try to feed it the correct vid, pid combo, the electron app crashes thusly:Īpp threw an error during load Error: cannot open device with vendor id 0xb67 and product id 0x555e at new HID (/helloworld/node_modules/node-hid/nodehid.js:28:17) at Object. Node-usb on the Mac will see this scale (I've not gone as far as trying to read from it yet). A Python module I found will read the raw USB from this scale. I admit that Fairbanks says their scale isn't supported on Mac, but here's the thing: on the Mac, System Profiler sees this scale when plugged in. Node-hid will find and read from this scale in my simple electron app on Windows. I have a Fairbanks scale, a HID device, (2919,21854). I'd like it to be cross-platform, but that's looking less and less likely. Thanks to google sunsetting chrome apps for the desktop, I'm working on getting an electron app to read a scale. ![]() I wanted to make sure I tested this as thoroughly as I could before I came to you guys. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |