Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failing to connect #123

Open
ThatOneOcto opened this issue May 18, 2023 · 8 comments
Open

failing to connect #123

ThatOneOcto opened this issue May 18, 2023 · 8 comments

Comments

@ThatOneOcto
Copy link

when I use nxbt test it was able to connect but any other mode like nxbt demo or nxbt tui just hang and never end up connecting, also yes I am running them with sudo

@ThatOneOcto
Copy link
Author

it says Paired on the switch in top left but the tui never picks it up and keeps saying connecting to any switch and it

@Dummydud3
Copy link
Contributor

what device are you testing this on?

@ThatOneOcto
Copy link
Author

rpi4

@Dummydud3
Copy link
Contributor

could you tell us what kind of Bluetooth dongle you are using? What OS are you running? And (if able, not required) what version of Python are you running?

@ThatOneOcto
Copy link
Author

I am using the one that comes with my rpi4 and I'm using raspbian

@Dummydud3
Copy link
Contributor

Some devices take longer than others, so you should wait a few minutes. I assume you are running the newest version of SwitchOS? Make sure you're up to date on that. I would also recommend that you use Ubuntu-based systems if possible, but it should work anyway. Could you tell us what brand of Bluetooth Dongle you are using? Kind of hard to diagnose from here

@dxxzero
Copy link

dxxzero commented Jul 11, 2023

Same issue here, test works, but demo does not.

$ uname -a
Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux

Also on raspberry pi 4 b with latest Switch OS

@dxxzero
Copy link

dxxzero commented Jul 12, 2023

Okay short update. Demo does not seem to work and test only randomly..
But I did the following to fix the webapp (which seems to work consistently)

git clone https://github.com/Brikwerk/nxbt.git
nano setup.py

Then change the install_requirements to the following:

install_requires=[
        "dbus-python==1.2.16",
        "Flask==2.3.2",
        "Flask-SocketIO==5.3.4",
        "eventlet==0.33.3",
        "blessed==1.17.10",
        "pynput==1.7.1",
        "psutil==5.6.6",
        "cryptography==39.0.1",
        "jinja2==3.1.2",
        "itsdangerous==2.1.2",
        "Werkzeug==2.3.3",
    ],

Save the file then run:

sudo pip3 install .

Afterwards webapp should work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants