How to use the goprocam.constants.Hero3Status.Mode 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 / goprocam / GoProCamera.py View on Github external
elif value == 5:
                    return "60"
                elif value == 6:
                    return "50"
                elif value == 7:
                    return "48"
                elif value == 8:
                    return "30"
                elif value == 9:
                    return "25"
                elif value == 10:
                    return "24"
                else:
                    return "out of scope"
        else:
            if param == constants.Hero3Status.Mode:
                if value == "00":
                    return "Video"
                if value == "01":
                    return "Photo"
                if value == "02":
                    return "Burst"
                if value == "03":
                    return "Timelapse"
                if value == "04":
                    return "Settings"
            if param == constants.Hero3Status.TimeLapseInterval:
                if value == "00":
                    return "0.5s"
                if value == "01":
                    return "1s"
                if value == "02":
github KonradIT / gopro-py-api / goprocam / GoProCamera.py View on Github external
self.getStatus(constants.Status.Status, constants.Status.STATUS.RemainingSpace)))
            print("camera SSID: " + "" + str(self.getStatus(constants.Status.Status,
                                                            constants.Status.STATUS.CamName)))
            print("Is Recording: " + "" + self.parse_value("recording",
                                                           self.getStatus(constants.Status.Status, constants.Status.STATUS.IsRecording)))
            print("Clients connected: " + "" + str(self.getStatus(
                constants.Status.Status, constants.Status.STATUS.IsConnected)))
            print("camera model: " + "" + self.infoCamera(constants.Camera.Name))
            print("firmware version: " + "" +
                  self.infoCamera(constants.Camera.Firmware))
            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)))