Skip to content

Commit

Permalink
Add TimeLapse Video Interval
Browse files Browse the repository at this point in the history
  • Loading branch information
KonradIT committed Aug 14, 2018
1 parent b3a6651 commit 1ad6c86
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
2 changes: 2 additions & 0 deletions goprocam/GoProCamera.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ def __init__(self, camera="detect", ip_address="10.5.5.9", mac_address="AA:BB:CC
self.power_on(self._mac_address)
self.prepare_gpcontrol()
print("Connected to " + self.ip_addr)
def __str__(self):
return str(self.infoCamera())
def KeepAlive(self):
while True:
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
Expand Down
14 changes: 11 additions & 3 deletions goprocam/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,7 @@ class Fov:
SuperView="3"
Linear="4"


LOW_LIGHT="5"
LOW_LIGHT="8"
class LowLight:
ON="1"
OFF="0"
Expand All @@ -278,7 +277,16 @@ class VideoPhotoInterval:
Interval10Min="2"
Interval30Min="3"
Interval60Min="4"

VIDEO_TIMELAPSE_INTERVAL="5"
class VideoTimeLapseInterval:
IHalf1="0"
I1="1"
I2="2"
I5="3"
I10="4"
I30="5"
I60="6"

VIDEO_EIS="78"
class VideoEIS:
ON="1"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
with open("README.md", "r") as fh:
long_description = fh.read()
setup(name='goprocam',
version='2.0.6',
version='2.0.7',
description='GoPro WiFi API Wrapper for Python - Compatible with HERO3, HERO3+, HERO4, HERO5, HERO+, HERO6',
url='http://github.com/konradit/gopro-py-api',
long_description=long_description,
Expand Down

0 comments on commit 1ad6c86

Please sign in to comment.