Skip to content

Commit

Permalink
Merge pull request #2 from joelcarrier/master
Browse files Browse the repository at this point in the history
Multiple Camera Support
  • Loading branch information
rsgalloway committed Sep 25, 2013
2 parents 33f5a33 + d722397 commit c490a83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dropcam.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def cameras(self):
data = json.load(response)
items = data.get('items')
for item in items:
params = item.get('owned')[0]
for params in item.get('owned'):
params.update(cookie=self.cookie)
cameras.append(Camera(params))
return cameras
Expand Down Expand Up @@ -143,7 +143,7 @@ def get_image(self, width=720, time=None):
Requests a camera image, returns response object.
:param width: image width or X resolution
:param time: time of image capture (in seconds from ecoch)
:param time: time of image capture (in seconds from epoch)
"""
params = dict(uuid=self.uuid, width=width)
if time:
Expand All @@ -156,7 +156,7 @@ def save_image(self, path, width=720, time=None):
:param path: file path to save image
:param width: image width or X resolution
:param time: time of image capture (in seconds from ecoch)
:param time: time of image capture (in seconds from epoch)
"""
f = open(path, "wb")
response = self.get_image(width, time)
Expand Down

0 comments on commit c490a83

Please sign in to comment.