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

Tilt Pi App not seeing PI yet aioblescan does #35

Closed
cvanallen99 opened this issue Nov 10, 2022 · 13 comments
Closed

Tilt Pi App not seeing PI yet aioblescan does #35

cvanallen99 opened this issue Nov 10, 2022 · 13 comments

Comments

@cvanallen99
Copy link

I realize this is totally not supported but hoping someone has an idea. My raspberry Pi 4B is running gentoo instead of Raspbian. I've managed to get everything installed per the instructions. aioblescan can see my tilt just fine when I run the scan command. Node-red doesn't seem to have any errors. The web interface on :1880/ui comes up fine.

Everything looks great EXCEPT that my Pi never shows up in the web app. OS level I can see it fine with aioblescan but it never shows up in the GUI. Hoping someone has a suggestion.

@noahbaron
Copy link
Collaborator

noahbaron commented Nov 10, 2022 via email

@cvanallen99
Copy link
Author

Why as a matter of fact, yes. I do get a DeprecationWarning. Specifically I get "DeprecationWarning: There is no current event loop"

@noahbaron
Copy link
Collaborator

noahbaron commented Nov 10, 2022 via email

@noahbaron
Copy link
Collaborator

noahbaron commented Feb 12, 2023 via email

@cvanallen99
Copy link
Author

cvanallen99 commented Feb 13, 2023 via email

@pinpoint90
Copy link

I have installed Kali Linux on raspberry pi 4b and experiencing the same problem. I managed to get everyting installed without issues with the following commands:

sudo apt-get update
sudo apt-get install python3-distutils
wget https://github.com/baronbrew/aioblescan/archive/master.zip
unzip master.zip
cd aioblescan-master/
python3 -m pip install aioblescan
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered) --nodered-version="0.18.4"
cd ~/.node-red
sudo -H npm install node-red-dashboard@2.15.5
sudo systemctl enable nodered.service
sudo reboot
wget -O /home/pi/flow.json https://raw.githubusercontent.com/baronbrew/TILTpi/Aioblescan/flow.json
curl -X POST http://localhost:1880/flows -H "Content-Type: application/json" -H "Node-RED-Deployment-Type: nodes" --data "@/home/pi/flow.json"

I am running the pi app and aioblescan on default user account "pi".
Aioblescan seems to ping the device using the "sudo python3 -u -m aioblescan -T" but it does not show up on the web interface.
Any ideas?

@noahbaron
Copy link
Collaborator

noahbaron commented Apr 5, 2023 via email

@pinpoint90
Copy link

Ok!
This is from debug:

0.18.4 Node-RED Deploy

5.4.2023, 18:26:57e95c8a86.0f73c8
msg : error
"SyntaxError: Unexpected token u in JSON at position 0"
5.4.2023, 18:27:01node: 1d0659ea.6c2c26
msg.payload : string[27]
"python3 -u -m aioblescan -T"
5.4.2023, 18:27:01node: 1d0659ea.6c2c26
msg.payload : string[19]
"pkill -f aioblescan"
5.4.2023, 18:27:01node: 1d0659ea.6c2c26
msg.payload : string[164]
"sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper↵sudo: a password is required↵"
5.4.2023, 18:27:02node: 1d0659ea.6c2c26
msg.payload : string[135]
"sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper↵"
5.4.2023, 18:27:02node: 1d0659ea.6c2c26
msg.payload : string[29]
"sudo: a password is required↵"
5.4.2023, 18:27:04node: 1d0659ea.6c2c26
msg.payload : string[27]
"python3 -u -m aioblescan -T"
5.4.2023, 18:27:04node: 1d0659ea.6c2c26
msg.payload : string[19]
"pkill -f aioblescan"
5.4.2023, 18:27:04node: 1d0659ea.6c2c26
msg.payload : string[164]
"sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper↵sudo: a password is required↵"
5.4.2023, 18:27:04node: 1d0659ea.6c2c26
msg.payload : string[135]
"sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper↵"
5.4.2023, 18:27:04node: 1d0659ea.6c2c26
msg.payload : string[29]
"sudo: a password is required↵"
5.4.2023, 18:27:09node: 1d0659ea.6c2c26
msg.payload : string[27]
"python3 -u -m aioblescan -T"
5.4.2023, 18:27:09node: 1d0659ea.6c2c26
msg.payload : string[19]
"pkill -f aioblescan"
5.4.2023, 18:27:09node: 1d0659ea.6c2c26
msg.payload : string[164]
"sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper↵sudo: a password is required↵"
5.4.2023, 18:27:09node: 1d0659ea.6c2c26
msg.payload : string[164]
"sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper↵sudo: a password is required↵"
5.4.2023, 18:27:12node: e95c8a86.0f73c8
msg : error
"SyntaxError: Unexpected token u in JSON at position 0"
5.4.2023, 18:27:14node: 1d0659ea.6c2c26
msg.payload : string[27]
"python3 -u -m aioblescan -T"
5.4.2023, 18:27:15node: 1d0659ea.6c2c26
msg.payload : string[19]
"pkill -f aioblescan"
5.4.2023, 18:27:15node: 1d0659ea.6c2c26
msg.payload : string[164]
"sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper↵sudo: a password is required↵"
5.4.2023, 18:27:15node: 1d0659ea.6c2c26
msg.payload : string[164]
"sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper↵sudo: a password is required↵"
5.4.2023, 18:27:19node: 1d0659ea.6c2c26
msg.payload : string[27]
"python3 -u -m aioblescan -T"
5.4.2023, 18:27:19node: 1d0659ea.6c2c26
msg.payload : string[19]
"pkill -f aioblescan"
5.4.2023, 18:27:19node: 1d0659ea.6c2c26
msg.payload : string[164]
"sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper↵sudo: a password is required↵"
5.4.2023, 18:27:19node: 1d0659ea.6c2c26
msg.payload : string[164]
"sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper↵sudo: a password is required↵"
5.4.2023, 18:27:24node: 1d0659ea.6c2c26
msg.payload : string[27]
"python3 -u -m aioblescan -T"
5.4.2023, 18:27:24node: 1d0659ea.6c2c26
msg.payload : string[164]
"sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper↵sudo: a password is required↵"
5.4.2023, 18:27:43node: e95c8a86.0f73c8
msg : error
"SyntaxError: Unexpected token u in JSON at position 0"
5.4.2023, 18:27:44node: 1d0659ea.6c2c26
msg.payload : string[19]
"pkill -f aioblescan"
5.4.2023, 18:27:44node: 1d0659ea.6c2c26
msg.payload : string[164]
"sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper↵sudo: a password is required↵"
5.4.2023, 18:27:44node: 1d0659ea.6c2c26
msg.payload : string[27]
"python3 -u -m aioblescan -T"
5.4.2023, 18:27:44node: 1d0659ea.6c2c26
msg.payload : string[164]
"sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper↵sudo: a password is required↵"
5.4.2023, 18:27:44node: 1d0659ea.6c2c26
msg.payload : string[19]
"pkill -f aioblescan"
5.4.2023, 18:27:44node: 1d0659ea.6c2c26
msg.payload : string[164]
"sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper↵sudo: a password is required↵"
5.4.2023, 18:27:44node: e95c8a86.0f73c8
msg : error
"SyntaxError: Unexpected token u in JSON at position 0"

@noahbaron
Copy link
Collaborator

noahbaron commented Apr 7, 2023 via email

@pinpoint90
Copy link

Thank you! the sudo errors are now gone. The only error left is "Unexpected token u in JSON at position 0". I will ty to check if it works with Tilt when I get home.

@noahbaron
Copy link
Collaborator

noahbaron commented Apr 7, 2023 via email

@pinpoint90
Copy link

Tested today and it works. Thanks again! :)

@noahbaron
Copy link
Collaborator

noahbaron commented Apr 9, 2023 via email

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