|
|
@ -99,11 +99,18 @@ def session_post(cid): |
|
|
|
# go through the photo taking process |
|
|
|
# go through the photo taking process |
|
|
|
status = 'Warming up' |
|
|
|
status = 'Warming up' |
|
|
|
|
|
|
|
|
|
|
|
# warmup |
|
|
|
try: |
|
|
|
power.lights_on() |
|
|
|
# warmup |
|
|
|
time.sleep(4) |
|
|
|
power.lights_on() |
|
|
|
power.lights_off() |
|
|
|
time.sleep(4) |
|
|
|
time.sleep(0.5) |
|
|
|
power.lights_off() |
|
|
|
|
|
|
|
time.sleep(0.5) |
|
|
|
|
|
|
|
except BaseException as e: |
|
|
|
|
|
|
|
print('Problem with lights: {} - {}'.format(e.__class__.__name__, str(e))) |
|
|
|
|
|
|
|
print() |
|
|
|
|
|
|
|
print('Are you sure the system is connected?') |
|
|
|
|
|
|
|
print() |
|
|
|
|
|
|
|
abort(500) |
|
|
|
|
|
|
|
|
|
|
|
status = 'Capturing' |
|
|
|
status = 'Capturing' |
|
|
|
|
|
|
|
|
|
|
|