Running¶
Here’s how to run it.
motion_handler.py¶
motion_handler.py
is run automatically by motion
when relevant events are fired. All that needs to be done is install it, configure it and motion itself, and then run motion
however is appropriate for your OS.
Celery Task Workers¶
- If you installed in a virtualenv, source it. Ensure you’ve run
python setup.py develop
orpip install motion-pipeline[worker]
- Ensure Redis is running and the
REDIS_BROKER_URL
setting is correct. - Ensure the path to your settings file is exported as
MOTION_SETTINGS_PATH
celery -A motion_pipeline.celerytasks.tasks worker --loglevel=info -Ofair -c 3
Web Frontend¶
- If you installed in a virtualenv, source it. Ensure you’ve run
python setup.py develop
orpip install motion-pipeline[web]
2. Ensure the path to your settings file is exported as MOTION_SETTINGS_PATH
4. FLASK_APP=motion_pipeline.web.app flask run