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

Help newbies for find the MAC adress #2

Open
tanguyp14 opened this issue Dec 25, 2022 · 11 comments
Open

Help newbies for find the MAC adress #2

tanguyp14 opened this issue Dec 25, 2022 · 11 comments

Comments

@tanguyp14
Copy link

Hello i have th Pixoo Max too, i wanna use some custom image to it the app is lame.

How i use yours ? I don' know how to have MAC adress of the PIxoo Max

@HoroTW
Copy link
Owner

HoroTW commented Dec 26, 2022

Hey,
no problem I will walk you through it.
First of all what OS are you using? :)

@tanguyp14
Copy link
Author

Thank for responding !
Im on MAC OS

@HoroTW
Copy link
Owner

HoroTW commented Dec 27, 2022

So I'm not familiar with macOS,
after some googling, it seems that you would just need to pair the pixoo with your macOS device.
After pairing, you need to execute

system_profiler SPBluetoothDataType

Which will then include the mac address for the pixoo device.

Let me know if you need more assistance.

@tanguyp14
Copy link
Author

Omg. I didn't know i can pair it with my Mac 🙀
Ok i got the MAC adr.
I will follow the readme ! Thanks

@tanguyp14
Copy link
Author

OK so now i got error : (yeah !)

I pair it with my laptop and i got the MAC adress.
But :
❱❱❱ python pixoo.py 11:75:58:38:7A:31 Connecting to 11:75:58:38:7A:31... Traceback (most recent call last): File "/Users/tanguypinel/Downloads/pixoo-awesome-main/pixoo.py", line 20, in <module> pixoo.connect() File "/Users/tanguypinel/Downloads/pixoo-awesome-main/modules/pixoo_client.py", line 39, in connect self.btsock = socket.socket(socket.AF_BLUETOOTH, socket.SOCK_STREAM, socket.BTPROTO_RFCOMM) AttributeError: module 'socket' has no attribute 'AF_BLUETOOTH' [13:20:39] [cost 0.160s] python pixoo.py

@HoroTW
Copy link
Owner

HoroTW commented Dec 27, 2022

Which python version do you have? (find out with python --version)

@tanguyp14
Copy link
Author

I use :

Python3 --version
Python 3.10.9

@HoroTW
Copy link
Owner

HoroTW commented Dec 27, 2022

Okay I found the culprit...
As described in this issue on StackOverflow: https://stackoverflow.com/questions/29107537/missing-socket-af-bluetooth-in-anaconda-python
MacOS is special in it's handling of Bluetooth .... The native python way that the pixooclient uses is sadly not compatible with macOS... (see https://docs.python.org/3.3/library/socket.html)
Do you have another device maybe a single board computer like a RPI? (That is the way I use this project)

@tanguyp14
Copy link
Author

I think i have pc can run Linux !
But the PC need to be "online" all time to set up the pixoo ? Or just for sending information ?
(Thanks for your responses anyway !)

@HoroTW
Copy link
Owner

HoroTW commented Dec 27, 2022

I will see if I can implement a version using PyBluez - they claim that they are cross platform compatible (including macOS - https://github.com/pybluez/pybluez)....

But I'm currently moving and a little short on time, I guess it will take a few months until I'll be able to tackle this.
If you want you can try it yourself, pull requests are welcome.

The PC would need to be turned on - the PC calculates the picture and sends it for display to the pixoo. I would have liked to do it differently but I did not find any way to execute code on the pixoo itself.

Currently I animate a clock and have some Pixels indicating statuses for things like if I did a 'daily commit'.
20220109_011629

@tanguyp14
Copy link
Author

tanguyp14 commented Dec 27, 2022

That a cool set-up !
I stream so i would like to interact with the pixoo but is kinda "hard" ^^'
Nevermind i will try on linux, or even on rapsberry(like) just to display custom 'FAKING' clock ^^

Happy moving ! thanks again :D

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

2 participants