For the installation of Derpi you first need all the dependencies installed. For the the webserver we use Daphne and Nginx as a reverse proxy. To manage all the processes we created a supervisor to log all data and status.
- Sensors
- Categories
- Controllers
- Notifications
- Django
- Daphne
- Nginx
- Pygments
- Django Rest Framework
- Markdown
- Django-filter
- Channels
- Asgi_redis
- Mysqlclient
- Django-websocket-redis
- Luatool
- Esptool
- Superivord
All configs can be found in the "configs" folder. Including the supervisor
Webserver start
sudo service nginx start
supervisorctl start worker
supervisorctl start daphne
redis-server
Create migrations
python manage.py makemigrations app
python manage.py migrate
Start development server
python manage.py runserver
Create Admin User
python manage.py createsuperuser
Flasing Nodemcu
./esptool.py --port /dev/ttyUSB0 write_flash --flash_mode dio 0x00000 nodemcu-master-8-modules-2017-03-20-13-38-04-integer.bin
./luatool.py --port /dev/ttyUSB0 --src main.lua --dest main.lua --verbose
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Sytze Koster, Brian Sok
Opensource biatch