├── .dockerignore ├── .env.db ├── .env.web-container ├── .env.web-sample ├── .gitignore ├── Dockerfile ├── LICENSE ├── README.md ├── ansible ├── ansible.cfg ├── inventory.ini ├── main.yaml ├── playbooks │ ├── .DS_Store │ ├── connect_hosts.yaml │ ├── deploy_django.yaml │ ├── remove_django.yaml │ └── restart_services.yaml └── roles │ ├── clone_repo │ ├── tasks │ │ └── main.yml │ └── vars │ │ └── main.yml │ ├── connect_hosts │ └── tasks │ │ └── main.yml │ ├── redis │ ├── README.md │ ├── handlers │ │ └── main.yml │ ├── tasks │ │ └── main.yml │ ├── templates │ │ └── redis.conf.j2 │ ├── tests │ │ ├── inventory │ │ └── test.yml │ └── vars │ │ └── main.yml │ ├── services_config │ ├── handlers │ │ └── main.yml │ ├── tasks │ │ └── main.yml │ ├── templates │ │ ├── celery-beat.service.j2 │ │ ├── celery-worker.service.j2 │ │ ├── gunicorn.service.j2 │ │ └── nginx_django.conf.j2 │ └── vars │ │ └── main.yml │ ├── services_restart │ └── tasks │ │ └── main.yml │ ├── sync_django │ ├── tasks │ │ └── main.yml │ └── vars │ │ └── main.yaml │ └── unsync_django │ └── tasks │ └── main.yml ├── compose.yaml ├── rav.yaml ├── requirements.dev.txt ├── requirements.txt └── src ├── cfehome ├── __init__.py ├── api.py ├── asgi.py ├── celery.py ├── settings.py ├── urls.py ├── views.py └── wsgi.py ├── helpers ├── __init__.py └── env.py ├── manage.py ├── sensors ├── __init__.py ├── admin.py ├── apps.py ├── collect.py ├── migrations │ ├── 0001_initial.py │ └── __init__.py ├── models.py ├── services.py ├── tasks.py ├── tests.py └── views.py ├── staticfiles └── .gitkeep └── templates ├── home.html └── nodes.html /.dockerignore: -------------------------------------------------------------------------------- 1 | venv -------------------------------------------------------------------------------- /.env.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/.env.db -------------------------------------------------------------------------------- /.env.web-container: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/.env.web-container -------------------------------------------------------------------------------- /.env.web-sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/.env.web-sample -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/.gitignore -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/README.md -------------------------------------------------------------------------------- /ansible/ansible.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/ansible/ansible.cfg -------------------------------------------------------------------------------- /ansible/inventory.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/ansible/inventory.ini -------------------------------------------------------------------------------- /ansible/main.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/ansible/main.yaml -------------------------------------------------------------------------------- /ansible/playbooks/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/ansible/playbooks/.DS_Store -------------------------------------------------------------------------------- /ansible/playbooks/connect_hosts.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/ansible/playbooks/connect_hosts.yaml -------------------------------------------------------------------------------- /ansible/playbooks/deploy_django.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/ansible/playbooks/deploy_django.yaml -------------------------------------------------------------------------------- /ansible/playbooks/remove_django.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/ansible/playbooks/remove_django.yaml -------------------------------------------------------------------------------- /ansible/playbooks/restart_services.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/ansible/playbooks/restart_services.yaml -------------------------------------------------------------------------------- /ansible/roles/clone_repo/tasks/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/ansible/roles/clone_repo/tasks/main.yml -------------------------------------------------------------------------------- /ansible/roles/clone_repo/vars/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/ansible/roles/clone_repo/vars/main.yml -------------------------------------------------------------------------------- /ansible/roles/connect_hosts/tasks/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/ansible/roles/connect_hosts/tasks/main.yml -------------------------------------------------------------------------------- /ansible/roles/redis/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/ansible/roles/redis/README.md -------------------------------------------------------------------------------- /ansible/roles/redis/handlers/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/ansible/roles/redis/handlers/main.yml -------------------------------------------------------------------------------- /ansible/roles/redis/tasks/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/ansible/roles/redis/tasks/main.yml -------------------------------------------------------------------------------- /ansible/roles/redis/templates/redis.conf.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/ansible/roles/redis/templates/redis.conf.j2 -------------------------------------------------------------------------------- /ansible/roles/redis/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /ansible/roles/redis/tests/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/ansible/roles/redis/tests/test.yml -------------------------------------------------------------------------------- /ansible/roles/redis/vars/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/ansible/roles/redis/vars/main.yml -------------------------------------------------------------------------------- /ansible/roles/services_config/handlers/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/ansible/roles/services_config/handlers/main.yml -------------------------------------------------------------------------------- /ansible/roles/services_config/tasks/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/ansible/roles/services_config/tasks/main.yml -------------------------------------------------------------------------------- /ansible/roles/services_config/templates/celery-beat.service.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/ansible/roles/services_config/templates/celery-beat.service.j2 -------------------------------------------------------------------------------- /ansible/roles/services_config/templates/celery-worker.service.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/ansible/roles/services_config/templates/celery-worker.service.j2 -------------------------------------------------------------------------------- /ansible/roles/services_config/templates/gunicorn.service.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/ansible/roles/services_config/templates/gunicorn.service.j2 -------------------------------------------------------------------------------- /ansible/roles/services_config/templates/nginx_django.conf.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/ansible/roles/services_config/templates/nginx_django.conf.j2 -------------------------------------------------------------------------------- /ansible/roles/services_config/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for services_config 3 | -------------------------------------------------------------------------------- /ansible/roles/services_restart/tasks/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/ansible/roles/services_restart/tasks/main.yml -------------------------------------------------------------------------------- /ansible/roles/sync_django/tasks/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/ansible/roles/sync_django/tasks/main.yml -------------------------------------------------------------------------------- /ansible/roles/sync_django/vars/main.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/ansible/roles/sync_django/vars/main.yaml -------------------------------------------------------------------------------- /ansible/roles/unsync_django/tasks/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/ansible/roles/unsync_django/tasks/main.yml -------------------------------------------------------------------------------- /compose.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/compose.yaml -------------------------------------------------------------------------------- /rav.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/rav.yaml -------------------------------------------------------------------------------- /requirements.dev.txt: -------------------------------------------------------------------------------- 1 | ansible 2 | rav -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/requirements.txt -------------------------------------------------------------------------------- /src/cfehome/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/src/cfehome/__init__.py -------------------------------------------------------------------------------- /src/cfehome/api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/src/cfehome/api.py -------------------------------------------------------------------------------- /src/cfehome/asgi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/src/cfehome/asgi.py -------------------------------------------------------------------------------- /src/cfehome/celery.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/src/cfehome/celery.py -------------------------------------------------------------------------------- /src/cfehome/settings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/src/cfehome/settings.py -------------------------------------------------------------------------------- /src/cfehome/urls.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/src/cfehome/urls.py -------------------------------------------------------------------------------- /src/cfehome/views.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/src/cfehome/views.py -------------------------------------------------------------------------------- /src/cfehome/wsgi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/src/cfehome/wsgi.py -------------------------------------------------------------------------------- /src/helpers/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/src/helpers/__init__.py -------------------------------------------------------------------------------- /src/helpers/env.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/src/helpers/env.py -------------------------------------------------------------------------------- /src/manage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/src/manage.py -------------------------------------------------------------------------------- /src/sensors/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sensors/admin.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/src/sensors/admin.py -------------------------------------------------------------------------------- /src/sensors/apps.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/src/sensors/apps.py -------------------------------------------------------------------------------- /src/sensors/collect.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/src/sensors/collect.py -------------------------------------------------------------------------------- /src/sensors/migrations/0001_initial.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/src/sensors/migrations/0001_initial.py -------------------------------------------------------------------------------- /src/sensors/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sensors/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/src/sensors/models.py -------------------------------------------------------------------------------- /src/sensors/services.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/src/sensors/services.py -------------------------------------------------------------------------------- /src/sensors/tasks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/src/sensors/tasks.py -------------------------------------------------------------------------------- /src/sensors/tests.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/src/sensors/tests.py -------------------------------------------------------------------------------- /src/sensors/views.py: -------------------------------------------------------------------------------- 1 | from django.shortcuts import render 2 | 3 | # Create your views here. 4 | -------------------------------------------------------------------------------- /src/staticfiles/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/templates/home.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/src/templates/home.html -------------------------------------------------------------------------------- /src/templates/nodes.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/django-iot-with-timescaledb/HEAD/src/templates/nodes.html --------------------------------------------------------------------------------