Closed carlbennettnz closed 10 years ago
@carlbennettnz what OS are you running it on?
OS X. I tired again however and this time it worked. I had the Griffin PowerMate app open the first time I tried, which was causing the problem. It seems obvious now, but it might be worth mentioning that in the readme.
Having the same issue, this time on Raspbian (Debian) on a Raspberry Pi. Here's the failure, along with a console.log:
{ vendorId: 1917,
productId: 1040,
path: '0001:0004:00',
release: 1024,
interface: 0 }
/home/pi/p/node_modules/node-powermate/powermate.js:34
this._hidDevice = new HID.HID(powerMateHIDdevice.path);
^
cannot open device with path 0001:0004:00
Any thoughts?
@mattwelch could any other programs be using it? Have you tried running as root?
If those don't work, we might be to ask the node-hid team.
Good call on the root. I tried that, and it worked great. Any idea of what my options are if I don't want to run as root? I think I need to put my and the hid in the same group.
You could try to chown/chmod the device if it shows up in /dev/...
I'm not sure how USB HID devices work in Linux, but I can take a closer look node-hid if you still need help.
For the record, on my platform (Raspbian/Debian) the problem was permissions, which were solved with a udev rule.
@mattwelch @carlbennettnz can we close this issue or is there something that needs to be added to the read me?
I'm fine closing it. Mine is a specific case (Raspbian, though likely the same for Debian/Ubuntu), for which I'd be glad to write up directions to be included.
@mattwelch it would be great if you could share the udev rule instructions!
When I run
new PowerMate()
I get the following error from line 36 of powermate.js:Line 36:
console.logging powerMateHIDdevice gives be the following:
Any idea what’s going wrong?