crummy / sonoshue

Sonos Hue Server
31 stars 3 forks source link

Error Message when starting #1

Open townsmcp opened 8 years ago

townsmcp commented 8 years ago

Hi Can I get some help please. Im running Python on Windows 10. I have installed pysimplesoap. I go to command prompt and type python hue.py but get the following error massage:

C:\Users\James\AppData\Local\Programs\Python\Python35\Scripts\sonoshue>python hue.py 192.168.1.57 File "hue.py", line 52 print "getSessionId(%s, %s) called" % (username, password) ^ SyntaxError: invalid syntax

I have tried the steps after (in a web browse go to the IP of one of the Sonos units, added the Hue to the Sonos Services but cant get anywhere. What should the username and password be set to ?

Thanks

crummy commented 8 years ago

I think (it's been a long time since I worked on this) that it requires Python 2.7, not Python 3.

If you set Login to Anonymous when adding the music service, you shouldn't be asked for a username/password. Otherwise, any will do.

Also I'm not really sure if this still works, it was more of a proof of concept rather than something that I thought people would ever use.

townsmcp commented 8 years ago

Thanks for the response - changing to Python 2.7 worked! The program is still in good condition and changed lights for the different bulbs so well done. I miss understood what the program does a bit though - I thought it would turn the bulbs into a disco based on music being played through Sonos (a bit like Hue Disco but direct form Sonos) - great program though