=====
Django DUST sensor
=====
Read data from dust sensor connected via RPi Serial port. This is proprietary software for customized hardware used by WebEye.services
- version 0.2.34 fixed avg_unit counting regarding http://www.howmuchsnow.com/arduino/airquality/
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
- version 0.2.34 fixed avg_unit counting regarding http://www.howmuchsnow.com/arduino/airquality/
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.
Metadata
Release files for django-dust-sensor 0.2.34
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-dust-sensor-0.2.34.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_dust_sensor-0.2.34-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 11.5 kB
Release files / django-dust-sensor-0.2.34.tar.gz
| Download URL | django-dust-sensor-0.2.34.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5a73e43aae862ec1a59bb14f810456b7d5b955f9fa942af9338e8699bf6ba7d8
|
|
BLAKE2b-256 checksum How to use checksums |
1443013527a54bba7d860b1d39f2b332db3462a89d13409c89aea1b723b80f6a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_dust_sensor-0.2.34-py2-none-any.whl
| Download URL | django_dust_sensor-0.2.34-py2-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
271a25beaf008004ce836a613e22fa834c4da8696afa6b434b5eedd3c14c8d88
|
|
BLAKE2b-256 checksum How to use checksums |
6b82fc69d7f8925e4ef5fb326ad296b7b314b4b8c792cc64cdc7ac9b62bc4358
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |