How to use the goprocam.constants.Hero3Status.LED 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))
print(gpCam.getStatus(constants.Hero3Status.VideosTaken))
github KonradIT / gopro-py-api / goprocam / GoProCamera.py View on Github external
self.infoCamera(constants.Camera.SerialNumber))
        elif self.whichCam() == constants.Camera.Interface.Auth:
            # HERO3
            print("camera overview")
            print("current mode: " + self.parse_value(constants.Hero3Status.Mode,
                                                      self.getStatus(constants.Hero3Status.Mode)))
            print("current video resolution: " + self.parse_value(
                constants.Hero3Status.VideoRes, self.getStatus(constants.Hero3Status.VideoRes)))
            print("current photo resolution: " + self.parse_value(
                constants.Hero3Status.PicRes, self.getStatus(constants.Hero3Status.PicRes)))
            print("current timelapse interval: " + self.parse_value(constants.Hero3Status.TimeLapseInterval,
                                                                    self.getStatus(constants.Hero3Status.TimeLapseInterval)))
            print("current video Fov: " + self.parse_value(constants.Hero3Status.FOV,
                                                           self.getStatus(constants.Hero3Status.FOV)))
            print("status lights: " + self.parse_value(constants.Hero3Status.LED,
                                                       self.getStatus(constants.Hero3Status.LED)))
            print("recording: " + self.parse_value(constants.Hero3Status.IsRecording,
                                                   self.getStatus(constants.Hero3Status.IsRecording)))
github KonradIT / gopro-py-api / goprocam / GoProCamera.py View on Github external
print("serial number: " + "" +
                  self.infoCamera(constants.Camera.SerialNumber))
        elif self.whichCam() == constants.Camera.Interface.Auth:
            # HERO3
            print("camera overview")
            print("current mode: " + self.parse_value(constants.Hero3Status.Mode,
                                                      self.getStatus(constants.Hero3Status.Mode)))
            print("current video resolution: " + self.parse_value(
                constants.Hero3Status.VideoRes, self.getStatus(constants.Hero3Status.VideoRes)))
            print("current photo resolution: " + self.parse_value(
                constants.Hero3Status.PicRes, self.getStatus(constants.Hero3Status.PicRes)))
            print("current timelapse interval: " + self.parse_value(constants.Hero3Status.TimeLapseInterval,
                                                                    self.getStatus(constants.Hero3Status.TimeLapseInterval)))
            print("current video Fov: " + self.parse_value(constants.Hero3Status.FOV,
                                                           self.getStatus(constants.Hero3Status.FOV)))
            print("status lights: " + self.parse_value(constants.Hero3Status.LED,
                                                       self.getStatus(constants.Hero3Status.LED)))
            print("recording: " + self.parse_value(constants.Hero3Status.IsRecording,
                                                   self.getStatus(constants.Hero3Status.IsRecording)))
github KonradIT / gopro-py-api / goprocam / GoProCamera.py View on Github external
if param == constants.Hero3Status.TimeLapseInterval:
                if value == "00":
                    return "0.5s"
                if value == "01":
                    return "1s"
                if value == "02":
                    return "2s"
                if value == "03":
                    return "5s"
                if value == "04":
                    return "10s"
                if value == "05":
                    return "30s"
                if value == "06":
                    return "1min"
            if param == constants.Hero3Status.LED or \
                param == constants.Hero3Status.Beep or \
                param == constants.Hero3Status.SpotMeter or \
                param == constants.Hero3Status.IsRecording:
                if value == "00":
                    return "OFF"
                if value == "01":
                    return "ON"
                if value == "02":
                    return "ON"
            if param == constants.Hero3Status.FOV:
                if value == "00":
                    return "Wide"
                if value == "01":
                    return "Medium"
                if value == "02":
                    return "Narrow"