How to use the goprocam.constants.Hero3Status function in goprocam

To help you get started, we’ve selected a few goprocam examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github KonradIT / gopro-py-api / examples / hero3_tests.py View on Github external
from goprocam import GoProCamera
from goprocam import constants

gpCam = GoProCamera.GoPro(constants.auth)

gpCam.infoCamera("model_name")
print(gpCam.getStatus(constants.Hero3Status.SpotMeter))
print(gpCam.getStatus(constants.Hero3Status.TimeLapseInterval))
print(gpCam.getStatus(constants.Hero3Status.FOV))
print(gpCam.getStatus(constants.Hero3Status.Beep))
print(gpCam.getStatus(constants.Hero3Status.LED))
print(gpCam.getStatus(constants.Hero3Status.AutoOff))
print(gpCam.getStatus(constants.Hero3Status.VideoRes))
print(gpCam.getStatus(constants.Hero3Status.FPS))
print(gpCam.getStatus(constants.Hero3Status.Loop))
print(gpCam.getStatus(constants.Hero3Status.WhiteBalance))
print(gpCam.getStatus(constants.Hero3Status.IsRecording))
print(gpCam.getStatus(constants.Hero3Status.PicRes))
print(gpCam.getStatus(constants.Hero3Status.TimeRecordedMins))
print(gpCam.getStatus(constants.Hero3Status.TimeRecordedSecs))
print(gpCam.getStatus(constants.Hero3Status.Charging))
print(gpCam.getStatus(constants.Hero3Status.PicturesTaken))
print(gpCam.getStatus(constants.Hero3Status.VideoRemaining))
github KonradIT / gopro-py-api / goprocam / GoProCamera.py View on Github external
"""Shoots a video, if duration is 0 it will not stop the video, set duration to an integer to set the video duration."""
        self.mode(constants.Mode.VideoMode)
        time.sleep(1)
        self.shutter(constants.start)
        if duration != 0 and duration > 2:
            time.sleep(duration)
            self.shutter(constants.stop)
            if self.whichCam() == constants.Camera.Interface.GPControl:
                ready = int(self.getStatus(constants.Status.Status,
                                           constants.Status.STATUS.IsBusy))
                while ready == 1:
                    ready = int(self.getStatus(
                        constants.Status.Status, constants.Status.STATUS.IsBusy))
                return self.getMedia()
            elif self.whichCam() == constants.Camera.Interface.Auth:
                ready = str(self.getStatus(constants.Hero3Status.IsRecording))
                while ready == "01":
                    ready = str(self.getStatus(
                        constants.Hero3Status.IsRecording))
                return self.getMedia()
github KonradIT / gopro-py-api / goprocam / GoProCamera.py View on Github external
self.shutter(constants.start)
        if duration != 0 and duration > 2:
            time.sleep(duration)
            self.shutter(constants.stop)
            if self.whichCam() == constants.Camera.Interface.GPControl:
                ready = int(self.getStatus(constants.Status.Status,
                                           constants.Status.STATUS.IsBusy))
                while ready == 1:
                    ready = int(self.getStatus(
                        constants.Status.Status, constants.Status.STATUS.IsBusy))
                return self.getMedia()
            elif self.whichCam() == constants.Camera.Interface.Auth:
                ready = str(self.getStatus(constants.Hero3Status.IsRecording))
                while ready == "01":
                    ready = str(self.getStatus(
                        constants.Hero3Status.IsRecording))
                return self.getMedia()