├── .gitignore ├── .idea └── workspace.xml ├── LICENSE ├── Procfile ├── Procfile.windows ├── README.md ├── api ├── __init__.py ├── admin.py ├── apps.py ├── migrations │ └── __init__.py ├── models.py ├── serializers.py ├── tests.py ├── urls.py └── views.py ├── iot_data ├── __init__.py ├── admin.py ├── apps.py ├── migrations │ ├── 0001_initial.py │ ├── 0002_auto_20190419_0930.py │ └── __init__.py ├── models.py ├── tests.py ├── urls.py └── views.py ├── iot_server ├── __init__.py ├── settings.py ├── urls.py └── wsgi.py ├── manage.py ├── pages ├── __init__.py ├── admin.py ├── apps.py ├── migrations │ └── __init__.py ├── models.py ├── tests.py ├── urls.py └── views.py ├── requirements.txt ├── runtime.txt ├── screencap.png ├── static ├── .gitkeep ├── css │ ├── bootstrap-grid.min.css │ ├── bootstrap-reboot.min.css │ ├── bootstrap.min.css │ ├── dashboard.css │ └── highcharts_custom.css ├── img │ ├── cloud-upload-alt-solid.ico │ └── favicon.ico └── js │ ├── bootstrap.bundle.min.js │ ├── bootstrap.min.js │ ├── highcharts_moving.js │ ├── jquery-slim.min.js │ └── popper.min.js └── templates ├── channels_listing.html ├── dashboard_base.html ├── dashboard_graphs.html ├── docs.html ├── example_dashboard_content.html ├── home.html ├── iotdata_list.html ├── livechart.html ├── one_channel_listing.html ├── partials ├── dashboard_download_button.html ├── dashboard_head.html ├── dashboard_icons.html ├── dashboard_javascripts.html ├── dashboard_nav.html └── dashboard_sidebar.html └── users_listing.html /.gitignore: -------------------------------------------------------------------------------- 1 | # Byte-compiled / optimized / DLL files 2 | __pycache__/ 3 | *.py[cod] 4 | *$py.class 5 | 6 | # C extensions 7 | *.so 8 | 9 | # Distribution / packaging 10 | .Python 11 | build/ 12 | develop-eggs/ 13 | dist/ 14 | downloads/ 15 | eggs/ 16 | .eggs/ 17 | lib/ 18 | lib64/ 19 | parts/ 20 | sdist/ 21 | var/ 22 | wheels/ 23 | *.egg-info/ 24 | .installed.cfg 25 | *.egg 26 | MANIFEST 27 | 28 | # PyInstaller 29 | # Usually these files are written by a python script from a template 30 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 31 | *.manifest 32 | *.spec 33 | 34 | # Installer logs 35 | pip-log.txt 36 | pip-delete-this-directory.txt 37 | 38 | # Unit test / coverage reports 39 | htmlcov/ 40 | .tox/ 41 | .coverage 42 | .coverage.* 43 | .cache 44 | nosetests.xml 45 | coverage.xml 46 | *.cover 47 | .hypothesis/ 48 | .pytest_cache/ 49 | 50 | # Translations 51 | *.mo 52 | *.pot 53 | 54 | # Django stuff: 55 | *.log 56 | local_settings.py 57 | db.sqlite3 58 | 59 | # Flask stuff: 60 | instance/ 61 | .webassets-cache 62 | 63 | # Scrapy stuff: 64 | .scrapy 65 | 66 | # Sphinx documentation 67 | docs/_build/ 68 | 69 | # PyBuilder 70 | target/ 71 | 72 | # Jupyter Notebook 73 | .ipynb_checkpoints 74 | 75 | # pyenv 76 | .python-version 77 | 78 | # celery beat schedule file 79 | celerybeat-schedule 80 | 81 | # SageMath parsed files 82 | *.sage.py 83 | 84 | # Environments 85 | .env 86 | .venv 87 | env/ 88 | venv/ 89 | ENV/ 90 | env.bak/ 91 | venv.bak/ 92 | 93 | # Spyder project settings 94 | .spyderproject 95 | .spyproject 96 | 97 | # Rope project settings 98 | .ropeproject 99 | 100 | # mkdocs documentation 101 | /site 102 | 103 | # mypy 104 | .mypy_cache/ 105 | 106 | # Django 107 | 108 | ### OSX ### 109 | .DS_Store 110 | .AppleDouble 111 | .LSOverride 112 | 113 | # Icon must end with two \r 114 | Icon 115 | 116 | 117 | # Thumbnails 118 | ._* 119 | 120 | # Files that might appear on external disk 121 | .Spotlight-V100 122 | .Trashes 123 | 124 | # Directories potentially created on remote AFP share 125 | .AppleDB 126 | .AppleDesktop 127 | Network Trash Folder 128 | Temporary Items 129 | .apdisk 130 | 131 | ### Django ### 132 | *.log 133 | *.pot 134 | *.pyc 135 | __pycache__/ 136 | local_settings.py 137 | 138 | .env 139 | db.sqlite3 140 | 141 | ### VS Code ### 142 | .vscode/* 143 | !.vscode/settings.json 144 | !.vscode/tasks.json 145 | !.vscode/launch.json 146 | !.vscode/extensions.json 147 | .vscode/ 148 | 149 | ### PyCharm ### 150 | .idea/ 151 | -------------------------------------------------------------------------------- /.idea/workspace.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 34 | 35 | 36 | 70 | 71 | 72 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 6 | 11 | 12 | -------------------------------------------------------------------------------- /templates/partials/dashboard_sidebar.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 72 | -------------------------------------------------------------------------------- /templates/users_listing.html: -------------------------------------------------------------------------------- 1 | 2 | {% extends 'dashboard_base.html' %} 3 | 4 | {% load humanize %} 5 | 6 | {% block content %} 7 | 8 |
9 |

Users Listing

10 |
11 |
12 | 13 | 14 |
15 | 19 |
20 |
21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | {% for data_pt in object_list %} 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | {% endfor %} 43 | 44 |
usertimechannelfielddata
{{ data_pt.user }}{{ data_pt.timestamp|naturaltime }}{{ data_pt.channel_num }}{{ data_pt.field_num }}{{ data_pt.data }}
45 |
46 | 47 | {% endblock content %} 48 | --------------------------------------------------------------------------------