django dust sensor celery based measure tool
Project description
=====
Django DUST sensor
=====
Read data from dust sensor connected via RPi Serial port. This is proprietary software for customized hardware used by WebEye.services
Quick start
-----------
1. Add "dust_sensor" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = (
...
'dust_sensor',
)
2. Include the polls URLconf in your project urls.py like this::
url(r'^dust_sensor/', include('dust_sensor.urls')),
3. update settings
- DUST_SENSOR_VENTIOLATION_GPIO: number of GPIO to enable/disable ventilation
- DUST_SENSOR_SERIAL_PORT: should be "/dev/ttyAMA0"
- DUST_SENSOR_SERIAL_SPEED: should be 9600
4. set up loggers
for fluentd or td-agent use handler name fluend.dust_sensor
for django human readable logger handler use django.dust_sensor
5. add celery beat schedule settings
CELERYBEAT_SCHEDULE = {
'refresh_dust_measure': {
'task': 'dust_sensor.tasks.refresh_dust_measure',
'schedule': timedelta(minutes=1)
}
}
6. Run `python manage.py migrate` to create the polls models.
7. Start the development server and visit http://127.0.0.1:8000/admin/
to create a poll (you'll need the Admin app enabled).
8. Visit http://127.0.0.1:8000/dust_sensor/ to read data.
Django DUST sensor
=====
Read data from dust sensor connected via RPi Serial port. This is proprietary software for customized hardware used by WebEye.services
Quick start
-----------
1. Add "dust_sensor" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = (
...
'dust_sensor',
)
2. Include the polls URLconf in your project urls.py like this::
url(r'^dust_sensor/', include('dust_sensor.urls')),
3. update settings
- DUST_SENSOR_VENTIOLATION_GPIO: number of GPIO to enable/disable ventilation
- DUST_SENSOR_SERIAL_PORT: should be "/dev/ttyAMA0"
- DUST_SENSOR_SERIAL_SPEED: should be 9600
4. set up loggers
for fluentd or td-agent use handler name fluend.dust_sensor
for django human readable logger handler use django.dust_sensor
5. add celery beat schedule settings
CELERYBEAT_SCHEDULE = {
'refresh_dust_measure': {
'task': 'dust_sensor.tasks.refresh_dust_measure',
'schedule': timedelta(minutes=1)
}
}
6. Run `python manage.py migrate` to create the polls models.
7. Start the development server and visit http://127.0.0.1:8000/admin/
to create a poll (you'll need the Admin app enabled).
8. Visit http://127.0.0.1:8000/dust_sensor/ to read data.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-dust-sensor-0.2.32.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c54e0acda49b5927373ddeac97d04b9d46a13f21b6e1d72165f734673c54d8b4 |
|
MD5 | 8706c6d21e25a00fcd40ef85265f2d09 |
|
BLAKE2b-256 | 8fd98d5a18403718bf2d14609a47108574011757488f0272b9acb5683efc33f3 |
Close
Hashes for django_dust_sensor-0.2.32-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f75cebc816c6472af0f5d200094181274658af5f644d1050fd95bc0b805c07a7 |
|
MD5 | 6beafd0969b5e294705aecbe796c0e2b |
|
BLAKE2b-256 | 6cdb2e5273896d555308247a6470528d7130182d637cc3a5247a9a7acfb225f5 |