miguelangel-nubla / videoP2Proxy

Proxy to enable P2P only cameras to work with standard protocols.
MIT License
171 stars 47 forks source link

Dafang don't not work #8

Open edsallo opened 5 years ago

edsallo commented 5 years ago

pi@raspberrypi:~/videoP2Proxy $ videop2proxy --ip 10.0.1.234 --token 4f4c6e4932437934596a485965725039 --rtsp 8554 Starting proxy... Starting RTSP server on "rtsp://10.0.1.195:8554/" (Using port 8000 for optional RTSP-over-HTTP tunneling.)

Got error when receiving: timed out Traceback (most recent call last): File "/home/pi/.local/lib/python3.5/site-packages/miio/device.py", line 257, in send data, addr = s.recvfrom(1024) socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/pi/.local/lib/python3.5/site-packages/miio/device.py", line 257, in send data, addr = s.recvfrom(1024) socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/pi/.local/lib/python3.5/site-packages/miio/device.py", line 257, in send data, addr = s.recvfrom(1024) socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/pi/.local/lib/python3.5/site-packages/miio/device.py", line 257, in send data, addr = s.recvfrom(1024) socket.timeout: timed out

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "", line 1, in File "/home/pi/.local/lib/python3.5/site-packages/miio/device.py", line 286, in send return self.send(command, parameters, retry_count - 1) File "/home/pi/.local/lib/python3.5/site-packages/miio/device.py", line 286, in send return self.send(command, parameters, retry_count - 1) File "/home/pi/.local/lib/python3.5/site-packages/miio/device.py", line 286, in send return self.send(command, parameters, retry_count - 1) File "/home/pi/.local/lib/python3.5/site-packages/miio/device.py", line 289, in send raise DeviceException("No response from the device") from ex miio.exceptions.DeviceException: No response from the device Can't read output line 1 from command: python3 -c "import miio;result = miio.device.Device('10.0.1.234', '4f4c6e4932437934596a485965725039').send('get_ipcprop', ['all']);print(result['p2p_id']);print(result['avID']);print(result['avPass']);" Error connecting to camera, make sure ip and token are correct. Error, waiting 10 seconds and trying again.