Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarop committed Dec 25, 2019
1 parent 6352fce commit d2f6eef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion timelapse_ui/src/timelapse_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ def take_photo(device="/dev/video0", resolution="1920x1080", filename=None):
"fswebcam",
"--no-banner",
"-sFocus, Auto=False",
"-sExposure, Auto=Manual Mode",
"-sWhite Balance Temperature, Auto=False",
"-S5",
"-d",
"v4l2:{}".format(device),
Expand All @@ -31,7 +33,7 @@ def take_photo(device="/dev/video0", resolution="1920x1080", filename=None):

# fswebcam seems to use stderr instead of stdout
rval = result.stderr.decode("utf-8")
if "Error" in rval:
if "Error" in rval and "Error querying menu" not in rval:
print(rval)
return None

Expand Down

0 comments on commit d2f6eef

Please sign in to comment.