Skip to main content
=====
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.

Download files

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

Source Distribution

django-dust-sensor-0.2.28.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_dust_sensor-0.2.28-py2-none-any.whl (5.9 kB view details)

Uploaded Python 2

File details

Details for the file django-dust-sensor-0.2.28.tar.gz.

File metadata

File hashes

Hashes for django-dust-sensor-0.2.28.tar.gz
Algorithm Hash digest
SHA256 97b402af00a7f4c871ce6051128abc9b796aca28e15c888584844df0aae99340
MD5 2cd554c644429f031fab5345b9d8c5a5
BLAKE2b-256 9f0f0ff17761b7397ee0a0949d5bdec71808be7cca4798d33a5c91ee544b06bb

See more details on using hashes here.

File details

Details for the file django_dust_sensor-0.2.28-py2-none-any.whl.

File metadata

File hashes

Hashes for django_dust_sensor-0.2.28-py2-none-any.whl
Algorithm Hash digest
SHA256 04d2e8a771bd4c1b5478448e207c9616ff4e1528e50287fa9101099317965c8e
MD5 acccb60ec69228b61465f9eaf6e9c7c3
BLAKE2b-256 d6b2f866c72ca6cf91da09d8405b11d3c8002f375e9530c5c1d1d8e9d7255334

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.34

2 files

0.2.33

2 files

0.2.32

2 files

0.2.31

2 files

0.2.30

2 files

0.2.29

1 file

This release

0.2.28 This release

2 files

0.2.27

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page