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

I don't understand how to use this #14

Open
Schweiger-Jacob opened this issue Nov 2, 2022 · 6 comments
Open

I don't understand how to use this #14

Schweiger-Jacob opened this issue Nov 2, 2022 · 6 comments

Comments

@Schweiger-Jacob
Copy link

I cloned the repo and folowed the steps but the terminal says main.py doesnt exist

@Schweiger-Jacob
Copy link
Author

ok, I see that you have to cd into the Airstatus directory but when I run the python3 main.py output_file it says

Traceback (most recent call last):
File "/home/jacob/AirStatus/main.py", line 1, in
from bleak import discover
ModuleNotFoundError: No module named 'bleak'

@Schweiger-Jacob
Copy link
Author

ok I see that you need to download bleak, I did and now I get this output

/home/jacob/AirStatus/main.py:59: DeprecationWarning: There is no current event loop
loop = get_event_loop()
/home/jacob/AirStatus/main.py:43: FutureWarning: The discover function will removed in a future version, use BleakScanner.discover instead.
devices = await discover()

and it stays stuck on this

@Schweiger-Jacob
Copy link
Author

Schweiger-Jacob commented Nov 2, 2022

I installed the older version of bleak instead and now theres less errors but it's still stuck at

/home/jacob/AirStatus/main.py:59: DeprecationWarning: There is no current event loop
loop = get_event_loop()

@mrsteve0924
Copy link

devices = await discover()

now connect airpods and battery status should output to terminal

@olivertzeng
Copy link

ok, I see that you have to cd into the Airstatus directory but when I run the python3 main.py output_file it says

Traceback (most recent call last): File "/home/jacob/AirStatus/main.py", line 1, in from bleak import discover ModuleNotFoundError: No module named 'bleak'

pip3 install -r requirements.txt

@olivertzeng
Copy link

I think the README surly needs more documentation though

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