Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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))
def IsRecording(self):
"""Returns either 0 or 1 if the camera is recording or not."""
if self.whichCam() == constants.Camera.Interface.GPControl:
return self.getStatus(constants.Status.Status, constants.Status.STATUS.IsRecording)
elif self.whichCam() == constants.Camera.Interface.Auth:
if self.getStatus(constants.Hero3Status.IsRecording) == "00":
return 0
else:
return 1
# 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)))