Brikwerk / nxbt

Control your Nintendo Switch through a website, terminal, or macro.
MIT License
817 stars 100 forks source link

failing to connect #123

Open ThatOneOcto opened 1 year ago

ThatOneOcto commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

what device are you testing this on?

ThatOneOcto commented 1 year ago

rpi4

Dummydud3 commented 1 year ago

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 commented 1 year ago

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

Dummydud3 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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