The script that collects detections and stores them in a database.
The api that serves the detections stored in the common database.
pip3 install -r requirements.txt
For now a simple sqlite database is used. This will be updated later on.
python3 ronny.py
uvicorn station:app --host 0.0.0.0 --reload
For production environments gunicorn is recommended.
There is an all in one Ansible script that sets a linux machine up to run ronny. You need to have Ansible and ansible-galaxy installed.
Steps:
cd ansible
- make init
- enter the stations in the hosts.ini file
ansible-playbook playbook.yml
To test a production deployment, go into the Ansible folder and run make test
.
This will create a Vagrant VM and will run the Ansible script locally onto that VM.