Open cristianilea-lateral opened 3 years ago
Hi, what version of gopro-py-api are you using?
4.1.0 installed with pip
Python is not my main programming language, so bear with me :D.
I went step by step with the pycharm debugger and it seems that it gets stuck somewhere in whichCam
. This line throws an exception and then it goes downhill:
response_raw = self._request("gp/gpControl")
It builds the following uri 'http://172.27.180.54/gp/gpControl'
. If I try to make the request manually I get an exception like
urllib.error.URLError: <urlopen error [Errno 61] Connection refused>
Then it's not the correct IP... Have you tried with 172.27.180.51?
It's very important you look at the examples, look how I did it, you pass an interface name to getWebcamIP
as well as setting webcam_device
to the interface name. Then it should work.
With 172.27.180.51 it works... but why?
Because the GoPro listens on the 51 octet of the IP.
I'm trying to control the webcam via USB (I got it to work via Wifi). I tried a lot of things and I can't seem to get it to work via USB. I should note that I've downgraded my firmware to v1.22.
Here is the ip of my Hero9:
I'm also aware of these tickets, and they did help to some extent (because I was doing some things wrong): #168 and #151.
Here is my code:
Here is my output of my code:
Then I get an exception at the line
gopro.take_photo()
:What should I try next?