dewgenenny / ScreenSync

ScreenSync is a python utility to synchronise current displayed screen colour with a RGB LED strip using a 'Magic Home' type controller
MIT License
22 stars 4 forks source link

Screensync can't scan #3

Closed pooman10288 closed 2 years ago

pooman10288 commented 2 years ago

Just today I noticed my screensync wont find any bulbs when I click scan. I hopped on and tried to update to the newest version but I can't seem to get that running. Did the dist folder go away? That's how I used to launch it.

I'm new to python so it very well could be me. Plz help me

pooman10288 commented 2 years ago

It could be an issue with flux. When I run a scan in flux it comes back with zero bulbs.

I ran flux_led -s and got back 0 bulbs found

pooman10288 commented 2 years ago

I get this error when I run screensync.py from the screensync-master folder

File "C:\Users***\Downloads\ScreenSync-master(1)\ScreenSync-master\screensync.py", line 10, in from colorthief import ColorThief ModuleNotFoundError: No module named 'colorthief'

pooman10288 commented 2 years ago

Duh installed colorthief and got this issue now.

C:\Users\pooma\Downloads\ScreenSync-master(1)\ScreenSync-master>screensync.py [1280, 720] ['No controllers found :('] Traceback (most recent call last): File "C:\Users\pooma\Downloads\ScreenSync-master(1)\ScreenSync-master\screensync.py", line 201, in connectLED bulb = WifiLedBulb(ip) File "C:\Users\pooma\AppData\Local\Programs\Python\Python310\lib\site-packages\flux_led\device.py", line 43, in init self.setup() File "C:\Users\pooma\AppData\Local\Programs\Python\Python310\lib\site-packages\flux_led\device.py", line 47, in setup self.connect(retry=DEFAULT_RETRIES) File "C:\Users\pooma\AppData\Local\Programs\Python\Python310\lib\site-packages\flux_led\sock.py", line 30, in _retry_wrap ret = func(self, *args, **kwargs) File "C:\Users\pooma\AppData\Local\Programs\Python\Python310\lib\site-packages\flux_led\device.py", line 61, in connect self._socket.connect((self.ipaddr, self.port)) socket.gaierror: [Errno 11001] getaddrinfo failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\pooma\Downloads\ScreenSync-master(1)\ScreenSync-master\screensync.py", line 264, in bulb = connectLED(str(selectedIP.get())) File "C:\Users\pooma\Downloads\ScreenSync-master(1)\ScreenSync-master\screensync.py", line 205, in connectLED print("No valid MAC address provided, attempting to use first one discovered: " + scanner.found_bulbs[0]['id']) NameError: name 'scanner' is not defined

pooman10288 commented 2 years ago

Well I'm not sure what I did but everything is working as it should again. I will close the issue.