/active

active is a Asgi Django server for a smart security camera that can perform motion detection and face recognition in real-time with a real-time feed to the user integrated with a door lock that inherited smart features like opening when right person infront of the camera, online access any time with historical events to track the door status 24/7

Primary LanguageHTML

active

Installation

  • you have to install on your machine:
    • python 3
    • Redis
    • ffmpeg

you can run the following to make sure that they are installed

python --version
redis-server --version

Note in Linux you need to configure redis.conf file if you wan to allow remote connection
in sudo nano /etc/redis/redis.conf set

supervised sysmd
bind 0.0.0.0

and then restart the service by running

sudo systemctl restart redis.service

after you make sure they are installed run the following command to install all required libraries you need
**Note** run the command in the repo Directory

pip install -r requirements.txt

you also have to create .env file in active/project and write inside

mailsender=<youremail>@gmail.com
senderpasscode=<gmail applicaton password>
secretkey=<your django-secret key>

Run the Project

you can either run it with single command experimental LINUX only

./run.sh

or you can write the following in **3 different terminals**
Note Order matter

python manage.py makemigraton
python manage.py migrate
python manage.py createsuperuser
redis-server
celery -A project worker -l INFO
python manage.py runserver