Skip to main content

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

Quick start

1. Add "dust_sensor" to your INSTALLED_APPS setting like this::


2. Include the polls URLconf in your project 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

'refresh_dust_measure': {
'task': 'dust_sensor.tasks.refresh_dust_measure',
'schedule': timedelta(minutes=1)

6. Run `python migrate` to create the polls models.

7. Start the development server and visit
to create a poll (you'll need the Admin app enabled).

8. Visit to read data.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-dust-sensor, version 0.2.28
Filename, size File type Python version Upload date Hashes
Filename, size django_dust_sensor-0.2.28-py2-none-any.whl (5.9 kB) File type Wheel Python version py2 Upload date Hashes View hashes
Filename, size django-dust-sensor-0.2.28.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page