sds011lib
sds011lib is a fully-typed, nearly-complete, python 3.8+ library for interacting with the SDS011 Air Quality Sensor.
The SDS011 is a small, low-cost sensor created by www.inovafitness.com, used to measure particulate matter in the air. It can measure both PM 2.5 and PM10 values simultaneously, and connects to devices over a serial port, or via USB with an included adaptor.
The full documentation is available at https://timorme.github.io/sds011lib/
Installation
pip install sds011lib
Quickstart
from sds011lib import SDS011QueryReader
from serial import Serial
# Setup a query-mode reader on /dev/ttyUSB0
sensor = SDS011QueryReader('/dev/ttyUSB0')
# Read some data!
aqi = sensor.query()
print(aqi.pm25)
print(aqi.pm10)
# Put the device to sleep
sensor.sleep()
# Wake it back up
sensor.wake()
Metadata
Release files for sds011lib 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sds011lib-0.4.0.tar.gz | 9.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sds011lib-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.3 kB
Release files / sds011lib-0.4.0.tar.gz
| Download URL | sds011lib-0.4.0.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5a25cd95ab318715090d06bb84c3388faeb67a17e92283befb7ab3ce1678bb77
|
|
BLAKE2b-256 checksum How to use checksums |
8c57f7787cd5dac3fdfb3ccf34c7ad7859721b243afc53a000c56e97ee6e984b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.11.0 Linux/5.15.0-1037-azure
|
Release files / sds011lib-0.4.0-py3-none-any.whl
| Download URL | sds011lib-0.4.0-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
76ab2ee0c982fcfe4133935e9460a22a02bec080e0139609308c7a9e05d4bcd8
|
|
BLAKE2b-256 checksum How to use checksums |
55d571de08286c53cb4dc70c042954c536ddb9f8754f4adf271235914683225d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.11.0 Linux/5.15.0-1037-azure
|