sagen / hue-upnp Goto Github PK
View Code? Open in Web Editor NEWEmulating the upnp-server in the Philips Hue Bridge
Emulating the upnp-server in the Philips Hue Bridge
Hey,
first i would like to say thank you for the script. But i have a problem during exercution i get the following error message:
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "hueUpnp.py", line 103, in run
sock.sendto(UPNP_BROADCAST, (BCAST_IP, UPNP_PORT))
error: [Errno 13] Permission denied
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "hueUpnp.py", line 118, in run
sock.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, socket.inet_aton(BCAST_IP) + socket.inet_aton(IP));
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
error: [Errno 22] Invalid argument
^CExiting
My config is
BCAST_IP = "192.168.10.255"
UPNP_PORT = 1900
BROADCAST_INTERVAL = 20 # Seconds between upnp broadcast
IP = "192.168.10.77" # Bind to IP
HTTP_PORT = 1901 # HTTP-port to serve icons and xml
M_SEARCH_REQ_MATCH = "M-SEARCH"
UPNP_BROADCAST = """NOTIFY * HTTP/1.1
HOST: 192.168.10.255:1900
and i am running the script as root.
Whats wrong?
Any chance you or anyone will be trying to get this working with Google Home? I started to try it:
falk0069#15
How to add lights?
And what settings do you need to use if emulating from raspberry, in a network where there already is a real Hue Bridge? Since I can't get the apps to see the extra, emulated bridge.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.