Data acquisition and logging for Air Quality Sensors with UART interface
Project description
Serial Air Quality Sensors
Data acquisition and logging for Air Quality Sensors with UART interface
Installation
This package can be pip installed. Please visit project site for detailed instructions.
Command Line Tools
This package provides tools for requesting new measurements from the sensors and print them on different formats, save them to a CSV file, or push them to an external service such as an MQTT or InfluxDB server. MQTT or InfluxDB server support requires additional packages. Please visit project site for details.
Particulate Matter Sensors
Sensor | --sensor-model |
PM1 | PM2.5 | PM4 | PM10 | size bins | Other | Tested |
---|---|---|---|---|---|---|---|---|
Plantower | ||||||||
PMS1003 (aka G1) | PMSx003 | ✔️ | ✔️ | ✔️ | 6 | |||
PMS3003 (aka G3) | PMS3003 | ✔️ | ✔️ | ✔️ | ✔️ | |||
PMS5003 (aka G5) | PMSx003 | ✔️ | ✔️ | ✔️ | 6 | |||
PMS5003T | PMS5003T | ✔️ | ✔️ | ✔️ | 4 | temp. & rel.hum. | ✔️ | |
PMS5003S | PMS5003S | ✔️ | ✔️ | ✔️ | 6 | HCHO concentration | ||
PMS5003ST | PMS5003ST | ✔️ | ✔️ | ✔️ | 6 | HCHO, temp. & rel.hum. | ||
PMS7003 (aka G7) | PMSx003 | ✔️ | ✔️ | ✔️ | 6 | ✔️ | ||
PMSA003 (aka G10) | PMSx003 | ✔️ | ✔️ | ✔️ | 6 | ✔️ | ||
NovaFitness | ||||||||
SDS011 | SDS01x | ✔️ | ✔️ | ✔️ | ||||
SDS018 | SDS01x | ✔️ | ✔️ | |||||
SDS021 | SDS01x | ✔️ | ✔️ | |||||
SDS198 | SDS198 | PM100 | ✔️ | |||||
Honeywell | ||||||||
HPMA115S0 | HPMA115S0 | ✔️ | ✔️ | |||||
HPMA115C0 | HPMA115C0 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ||
Sensirion | ||||||||
SPS30 | SPS30 | ✔️ | ✔️ | ✔️ | ✔️ | 5 | typical particle size | ✔️ |
Winsen | ||||||||
ZH03B | ZH0xx | ✔️ | ✔️ | ✔️ | ||||
ZH06-I | ZH0xx | ✔️ | ✔️ | ✔️ |
Other Sensors
- MCU680: chinese module with a BME680 sensor, a mirocontroller (μC) and 3.3V low-dropout regulator (LDO). The μC acts as I2C/UART bridge, providing outputs from the closed source integration library.
- MHZ19B: infrared CO2 sensor module from Winsen.
Want More Sensors
For more Air Quality sensors open an issue.
Use as a library
PyPMS/pms is meant as a command line application. The project site contain some help for those brave enough to use its internals as a library.
Changelog
- 0.7.1
- disable logging unless CLI is running PR#37
- 0.7.0
- 0.6.2
- move logger config to CLI module PR#28
- 0.6.1
- fix
pms.sensors.sensirion
module name and docs - reliably recognize SPS30 sensor #25
- fix
- 0.6.0
- project site
- reorganize internal modules
pms.core
: core functionality, such asSensor
andSensorReader
pms.sensors
: sensor modules grouped by manufacturerpms.extra
: extra cli utilities, such aspms influxdb
andinfluxdb mqtt
- importing from
pms.sensor
is deprecated, import frompms.core
instead
- plugin architecture
- load sensor modules from entry points advertized as
"pypms.sensors"
- load extra cli commands from entry points advertized as
"pypms.extras"
- load sensor modules from entry points advertized as
- support Winsen PM sensors and MHZ19B infrared CO2 sensor.
- pm1/pm4/raw2_5/pm2_5 properties, #17
- 0.5.0
- set username/password with environment variables:
$MQTT_USER
sets--mqtt-user
onpms mqtt
andpms bridge
$MQTT_USER
sets--mqtt-user
onpms mqtt
andpms bridge
$DB_USER
sets--db-user
onpms influxdb
andpms bridge
$DB_PASS
sets--db-pass
onpms influxdb
andpms bridge
- set username/password with environment variables:
- 0.4.1
- 0.4.0
- capture raw messages with
pms csv --capture
- decode captured messages with
pms serial --capture
- hexdump format with
pms serial --format hexdump
- deprecate subset observation method
- capture raw messages with
- 0.3.1
- fix influxdb default tags
- 0.3.0
- option for a fix number of samples
- PMSx003 consistency check after sleep/wake
- 0.2.*
- 0.1.*
- widen project scope beyond Plantower PM sensors
- support NovaFitness, Honeywell and Sensirion PM sensors
- cli for logging to csv file, InfluxDB server or MQTT server
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
File details
Details for the file pypms-0.7.1.tar.gz
.
File metadata
- Download URL: pypms-0.7.1.tar.gz
- Upload date:
- Size: 24.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.1 Linux/5.15.0-1024-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d6f6353616aaa7adc2629deb904ba3ba431321e7bbbcf0c72c29b47834761b9 |
|
MD5 | 6e6736628796e7ec5a66028abca02ff8 |
|
BLAKE2b-256 | fd033beb3ca812d7e022644fef58cb39f846cdde67331aa93cfbe46b28f45551 |
File details
Details for the file pypms-0.7.1-py3-none-any.whl
.
File metadata
- Download URL: pypms-0.7.1-py3-none-any.whl
- Upload date:
- Size: 36.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.1 Linux/5.15.0-1024-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76be1d1c1b26b75292bc2fef0b70718c43ec67dfe80a41d7a5d24feeb4d9ffca |
|
MD5 | b6b57416b34bd9964dc71aaf55515e9b |
|
BLAKE2b-256 | da8b32a50e2afb64d19cdda677c028125f62ce62fa1a68db82050a7ceff9519e |