Stream from PI problem - Raspberry Pi Forums
a) have streaming server , motion detection python script working on windows laptop. can access stream via web browser on same local network.
b) move script pi (fixed local network address 192.168.1.61)
c) ssh pi windows pc , run script (which runs ok , motion side of script works)
d) try , access stream, laptop, using localhoast address (192.168.1.16:port number) when try , access cannot see stream, , following error on pi:
e) i'm ssh'ing headless pi on ip address 192.168.1.61 laptop.
f) gives:
g) don't think it's conflict in ports/or ip addresses because script works on pi when access server via web browser on laptop, on same network:
1) why stream part of script work on windows laptop , not on pi?
b) move script pi (fixed local network address 192.168.1.61)
c) ssh pi windows pc , run script (which runs ok , motion side of script works)
d) try , access stream, laptop, using localhoast address (192.168.1.16:port number) when try , access cannot see stream, , following error on pi:
code: select all
my laptop ip address - - [23/jun/2015 13:04:34] "get / http/1.1" 200 - 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 "/usr/lib/python2.7/threading.py", line 505, in run self.__target(*self.__args, **self.__kwargs) file "/usr/src/scripts/areadetect_movie__33.py", line 300, in server server = httpserver(('',port),camhandler) file "/usr/lib/python2.7/socketserver.py", line 419, in __init__ self.server_bind() file "/usr/lib/python2.7/basehttpserver.py", line 108, in server_bind socketserver.tcpserver.server_bind(self) file "/usr/lib/python2.7/socketserver.py", line 430, in server_bind self.socket.bind(self.server_address) file "/usr/lib/python2.7/socket.py", line 224, in meth return getattr(self._sock,name)(*args) error: [errno 98] address in use
f)
code: select all
netstats
code: select all
active internet connections (w/o servers) proto recv-q send-q local address foreign address state tcp 0 0 192.168.1.61:ssh mylaptopipaddress:50851 established tcp 0 304 192.168.1.61:ssh mylaptopipaddress:50886 established tcp 1 0 192.168.1.61:56120 externalipaddress:https close_wait active unix domain sockets (w/o servers) proto refcnt flags type state i-node path unix 6 [ ] dgram 6279 /dev/log unix 2 [ ] dgram 6290 /var/run/thd.socket unix 3 [ ] dgram 5535 /var/run/wpa_supplicant/wlan0 unix 2 [ ] dgram 5693 /tmp/wpa_ctrl_1765-1 unix 2 [ ] dgram 7102 unix 2 [ ] dgram 6848 unix 3 [ ] stream connected 7136 /var/run/dbus/system_bus_socket unix 3 [ ] stream connected 7113 /var/run/dbus/system_bus_socket unix 3 [ ] stream connected 6852 unix 3 [ ] stream connected 7112 unix 3 [ ] stream connected 7135 unix 3 [ ] dgram 3833 unix 3 [ ] stream connected 7302 /var/run/dbus/system_bus_socket unix 2 [ ] dgram 6446 unix 3 [ ] stream connected 7159 /var/run/dbus/system_bus_socket unix 3 [ ] stream connected 7301 unix 2 [ ] dgram 6670 unix 3 [ ] stream connected 7155 unix 3 [ ] stream connected 6357 unix 3 [ ] stream connected 7298 /var/run/dbus/system_bus_socket unix 3 [ ] stream connected 6356 unix 3 [ ] stream connected 6851 unix 3 [ ] dgram 3834 unix 3 [ ] stream connected 7297
g) don't think it's conflict in ports/or ip addresses because script works on pi when access server via web browser on laptop, on same network:
code: select all
#!/usr/bin/python import simplehttpserver import socketserver port = 1991 handler = simplehttpserver.simplehttprequesthandler httpd = socketserver.tcpserver(("", port), handler) print ("serving @ port", port) httpd.serve_forever()
1) why stream part of script work on windows laptop , not on pi?
raspberrypi
Comments
Post a Comment