├── irrigation ├── __init__.py ├── wsgi.py ├── urls.py └── settings.py ├── monitor ├── __init__.py ├── migrations │ ├── __init__.py │ ├── 0003_auto_20180317_2307.py │ ├── 0002_devicecontrol.py │ └── 0001_initial.py ├── tests.py ├── apps.py ├── urls_api.py ├── serializers.py ├── admin.py ├── models.py ├── urls.py ├── views.py └── views_api.py ├── .gitignore ├── Project Report - Iriigation system.pdf ├── templates ├── log.html ├── monitor │ ├── history.html │ ├── test.html │ ├── settings.html │ └── home.html └── base.html └── manage.py /irrigation/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /monitor/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /monitor/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | *.pyc/ 3 | __pycache__/ 4 | migrations/ 5 | *.sqlite3 6 | -------------------------------------------------------------------------------- /monitor/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /monitor/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class MonitorConfig(AppConfig): 5 | name = 'monitor' 6 | -------------------------------------------------------------------------------- /Project Report - Iriigation system.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohitkh7/irrigation-system/HEAD/Project Report - Iriigation system.pdf -------------------------------------------------------------------------------- /templates/log.html: -------------------------------------------------------------------------------- 1 |
| Humidity | 4 |Status | 5 |
|---|---|
| {{ device.moisture }} | 9 |{{ device.status }} | 10 |
| Moisture Value | 6 |Motor Status | 7 |Time | 8 | {% for device in devices %} 9 |
|---|---|---|
| {{ device.moisture }} | 11 |{% if device.status %}ON{% else %}OFF{% endif %} | 12 |{{ device.time }} | 13 |
Moisture : {{ last_device.moisture }}
9 |Pump Status: 10 | {% if last_device.status %} 11 | ON 12 | {% else %} 13 | OFF 14 | {% endif %} 15 |
16 || Moisture Value | 36 |Motor Status | 37 |Time | 38 | {% for device in device_history %} 39 |
|---|---|---|
| {{ device.moisture }} | 41 |{% if device.status %}ON{% else %}OFF{% endif %} | 42 |{{ device.time | timesince}} ago ({{ device.time }}) | 43 |
| 47 | View Complete History 48 | | 49 |||