Closed mungewell closed 6 years ago
So it seems that result from the camera fails to parse out into
# Get the responses.
packets = self._listen_for_discover(duration)
+ print(packets)
endpoints = []
for host,addr,data in packets:
+ print(host,addr,data)
resp = self._parse_ssdp_response(data)
try:
endpoint = self._read_device_definition(resp['location'])
gives:
$ python2 src/example/scan_for_cameras.py
[('10.0.0.1', 56807, 'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age=1800\r\nEXT: \r\nLOCATION: http://10.0.0.1:64321/DmsRmtDesc.xml\r\nSERVER: UPnP/1.0 SonyImagingDevice/1.0\r\nST: urn:schemas-sony-com:service:ScalarWebAPI:1\r\nUSN: uuid:00000000-0005-0010-8000-98f1700fa96e::urn:schemas-sony-com:service:ScalarWebAPI:1\r\nX-AV-Physical-Unit-Info: pa=""; pl=;\r\nX-AV-Server-Info: av=5.0; hn=""; cn="Sony Corporation"; mn="SonyImagingDevice"; mv="1.0";\r\n\r\n')]
('10.0.0.1', 56807, 'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age=1800\r\nEXT: \r\nLOCATION: http://10.0.0.1:64321/DmsRmtDesc.xml\r\nSERVER: UPnP/1.0 SonyImagingDevice/1.0\r\nST: urn:schemas-sony-com:service:ScalarWebAPI:1\r\nUSN: uuid:00000000-0005-0010-8000-98f1700fa96e::urn:schemas-sony-com:service:ScalarWebAPI:1\r\nX-AV-Physical-Unit-Info: pa=""; pl=;\r\nX-AV-Server-Info: av=5.0; hn=""; cn="Sony Corporation"; mn="SonyImagingDevice"; mv="1.0";\r\n\r\n')
Available cameras []
oh crap, ignore.... problem due to working around the 'comp_urllib' issue.
It appears that '0823bb11261059b597d8d7ad796f8f519310d88c' is the last revision in which the QX10 can be found.... preventing it's use :-(