KonradIT / gopro-py-api

Unofficial GoPro API Library for Python - connect to GoPro via WiFi.
MIT License
1.39k stars 211 forks source link

Traceback (most recent call last): File "./gopro-py-api/examples/launch_webcam_preview.py", line 6, #156

Closed lukiifaz closed 3 years ago

lukiifaz commented 3 years ago

Traceback (most recent call last): File "./gopro-py-api/examples/launch_webcam_preview.py", line 6, in sys.argv[1]), camera=constants.gpcontrol, webcam_device=sys.argv[1]) IndexError: list index out of range

KonradIT commented 3 years ago

You're supposed to put your interface as an argument.

lukiifaz commented 3 years ago

Rpi3b + with octoprint, hero5 sesion is conected to rpi via wifi, rpi is conected to internet via ethernet. You mean network interface? Any example?

KonradIT commented 3 years ago

hero5 sesion is conected to rpi via wifi

Why are you trying to use the webcam example (which uses GoPro Connect functionality only found in Hero8 and 9 cameras) for the Hero5 Session?

lukiifaz commented 3 years ago

Because I didn't know it. So how do I preview octoprint. I have Domoticz and therefore I am looking for a solution with displaying the image in the browser.

KonradIT commented 3 years ago

You'll have to figure that out yourself since I don't have octoprint, or a 3d printer. There are tutorials out there for how to integrate GoPro into OctoPrint via OctoLapse.