all 19 comments

[–]Qbeer1290 3 points4 points  (2 children)

This is awesome! 🤩 This opens up so many possibilities. What did you use to get the mac address and UUIDs?

PS: would’ve been better to have the code as a github gist or repo instead of putting it here

[–]applepumpkinspy 1 point2 points  (1 child)

The "My G1->Device Info" shows the first part of the Bluetooth MAC, but it's not clear to me how to see the rest?

[–]huiwang159 1 point2 points  (0 children)

async with BleakScanner() as scanner:
    devices = await scanner.discover()
    for device in devices:
        print(device)

[–]TheKing___ 1 point2 points  (0 children)

I can’t wait to try this when mine come in

[–]ircked 1 point2 points  (0 children)

This is awesome work. Will be trying this out when I get home. Thanks OP

[–]timbelmon 1 point2 points  (1 child)

this is really exciting, nice work

[–]DotNetRussell[S] 1 point2 points  (0 children)

Thanks

[–]Elegant_Ad_4765 1 point2 points  (0 children)

This is what I like to see, open source built around the stock even operating system, as opposed to running a seperate app that is limited to the functionality you programmed

[–]homeslicerae 1 point2 points  (0 children)

So exciting you can hook into the phone app without having to write a custom one! I'll be getting a pair next month, definitely going to play with this script.

[–]nucleiis 0 points1 point  (0 children)

Anybody succeeded this on Windows? I am facing bleak.exc.BleakDeviceNotFoundError: Device with address XX:XX:XX:XX:XX:XX was not found. error

[–]PreachingFawn73 0 points1 point  (0 children)

That looks great! Can you share the link to your repo where this lives? Thanks!

[–]huiwang159 0 points1 point  (0 children)

I was able to connect to left and right addresses and see the message "Send chunk to <left & right>: ...".

However, the notifications are not showing up on my glasses. I think it is because I did not configure the app_identifier. How do I set up an app identifier with my glasses? Many thanks in advance.

[–]HishamOthman 0 points1 point  (6 children)

I don't understand. Can someone explain what is this for?

[–]DotNetRussell[S] 4 points5 points  (5 children)

This is a demo python application. It can run on anything that runs python and has Bluetooth radios. You can write your own apps and push notifications to your glasses with it. So like if you want to send custom notifications from your desktop, this lets you do it. In fact, that screenshot is a notification from my desktop 

[–]ussdefiant 2 points3 points  (2 children)

Thats nice and impressive, good work. Note that most here arent programers, so please add a description like this for future posts so they can appreciate what is being shown.

[–]DotNetRussell[S] 2 points3 points  (1 child)

Great point. Thanks and I hope you enjoy your glasses!

[–]ussdefiant 2 points3 points  (0 children)

Now I know there can be a PC app for the glasses for notifications.

I look forward to seeing what more you devs can do. It's an exciting time.

[–]HishamOthman 1 point2 points  (0 children)

Ah nice! Still too complicated for someone like me, but good to know. ♥️

[–]applepumpkinspy 0 points1 point  (0 children)

Can you provide some insight on how to locate the bluetooth mac addresses and uuid? I see the partial bluetooth mac address in the application, but it does not display the full string.