# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-import datetime
import errno
import logging
import os.path
import time
from tornado.httpclient import HTTPClient, AsyncHTTPClient, HTTPRequest
-from tornado.ioloop import IOLoop
import config
import settings
return _motion_binary_cache
-def _disable_motion_detection():
+def _disable_initial_motion_detection():
for camera_id in config.get_camera_ids():
camera_config = config.get_camera(camera_id)
if not utils.local_camera(camera_config):
with open(motion_pid_path, 'w') as f:
f.write(str(pid) + '\n')
- IOLoop.instance().add_timeout(datetime.timedelta(seconds=5), _disable_motion_detection)
+ _disable_initial_motion_detection()
def stop():