kershner / screenBloom

Fake Ambilight for Philips Hue via Python
http://www.screenbloom.com
329 stars 48 forks source link

Can't connect to diyHue hub #86

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hi there. I am running the diyHue project on my raspberry pi. This emulates a hue hub so that lights other than hue bulbs can be used. I wanted to connect screenBloom to my diyHue hub however it is not working. I raised an issue with the diyHue creator and he is unsure of the error. This is because, in the logs, it looks like screenBloom never attempts to connect. In order to attempt to debug this, we were wondering what hub detection method you were using. When I try to connect my hub I get the error Something went wrong with the connection, please try again... Anyone able to help?

kershner commented 6 years ago

Hey there, sounds cool.

Here's the registration logic, definitely one of the shittiest parts of the codebase haha.

You can see that function is passed an IP, which is obtained via this function.

I'm guessing there might be some kind of a problem there. If you're able to get to the ScreenBloom registration page, try going to the /manual endpoint and input your bridge IP manually, see if you can get any farther.

However as I type this I'm thinking it's more a problem with ScreenBloom not really being tested/running on Linux. You might be out of luck unfortunately. Let me know how it goes.

ghost commented 6 years ago

Yeh, it looks like it was an error with obtaining the IP. Though strangely, the error doesn't come up any more. I just get redirected to the /manual page. That page however does work and I can connect to my diyHue bridge. I did think to unplug my real hue bridge first but i wonder if that was causing issues initially. I'll pass on your comment to the author of diyHue as he had said that diyHue was not discoverable by some methods currently, and see what we can come up with. Thanks for your help so far!

ghost commented 6 years ago

I have just heard back from the diyHue developer and he has confirmed that your IP function uses the Phillips Hue cloud services to get the IP. This is fine but not yet emulated with the diyHue software as the developer did not have a genuine hue hub to test with. He is working on this now and since you can connect via the /manual page, this can be closed for now. Thanks for the info!

kershner commented 6 years ago

Glad to hear it. Thanks for following up!