-
Notifications
You must be signed in to change notification settings - Fork 12
Description
Today I finally could set aside some time to test the demo website using my Wii MotionPlus!
I struggled a bit on Linux using Chromium, so let me explain how I eventually managed to solve it:
Pairing via Bluetooth
For some reason, Bluetooth wasn't shown in my Network Manager applet nor in Mate's Control Center.
Using Bluedevil offered me a GUI to connect (PIN remains empty) while clicking the Sync button on the rear side of the device. Another option might be hitting 1 + 2 on the Wii Motion at the same time?
Using BlueZ' sudo bluetoothctl did not allow me to do so.
I had a hard time getting the Nintendo device to show up. (XWiimote lists other alias names for Wii Motion devices).
Connecting via HID
Once paired, I could pick the device from the Chromium prompt to connect.
However, I noticed a DOMException that the device was not able to open (on your call to .open() - perhaps worth to show an UI error?).
Resolution
After debugging for a few hours, I finally realised that I could sudo chmod 0606 /dev/hidraw0 to grant read AND write access. chrome://device-log/ was helpful in pointing me towards missing write access.
Remaining issues
I could read the Accelerometer values and the button presses. LEDs can blink and vibrate works.
I couldn't figure out, though, what to do with the canvas (shows up black here). From reading the code, it ought to show white dots? How am I suppose to create those?
Do you know, whether Gyroscope data is available, too?