Closed dm8tbr closed 7 years ago
I will try this myself with a paired board. The problem is probably within the wiiboard.py code that handles the bluetooth connection. I don't think Wiiboard.py is not maintained anymore but I'll look in to it.
//off: -> any chance for export function to CSV, FitBit, or more?
@adrianmihalko yes, see #12
Closing this issue, @ribbons is rewriting the backend to better handle paired devices.
I was under the impression, that pairing the board and making it trusted would get rid of the need to put the board into pairing mode. After some fumbling I finally settled for using
bluetoothctl
, a nice CLI tool for bluez, and got the board paired and set to trusted. I can also use it to connect to the board after pressing the power button on the board and while its LED is blinking. When connected the power LED turns solid until disconnected I've set the board address in the settings:npm config set wii-scale:address 00:25:A0:38:12:34
However, Wii-Scale will always terminate with a python backtrace - unless the board has been put into pairing mode.
Running the python script manually and then starting Wii-Scale produces similar backtraces while connecting:
Both errors 111 and 112 will happen, depending on if the board turned off before being connected.
This is on: Ubuntu 16.04; kernel 4.4.0-24-generic i386; bluez 5.37-0ubuntu5
I'd try to debug this further, but I'm not well versed in node.js and python interaction.