Merge remote-tracking branch 'origin/master' into labthings-070

This commit is contained in:
Joel Collins 2020-07-03 18:13:20 +01:00
commit ab3c4b3745
7 changed files with 140 additions and 111 deletions

View file

@ -10,7 +10,6 @@ import time
import numpy as np
from PIL import Image, ImageFont, ImageDraw
from datetime import datetime
import gevent
import logging
@ -221,7 +220,7 @@ class MissingCamera(BaseCamera):
# While the iterator is not closed
try:
while True:
gevent.sleep(1) # Only serve frames at 1fps
time.sleep(1) # Only serve frames at 1fps
# Reset stream
self.stream.seek(0)
self.stream.truncate()