Skip to main content

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

PyPI - Python Version PyPI Build Status GitHub issues GitHub license DOI

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

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.8.0
    • add Python 3.12 and 3.13 support, drop Python 3.8 support
    • require typer-slim instead of full typer
    • require (optional) paho-mqtt v2+
    • tidy up annotations
  • 0.7.1
    • disable logging unless CLI is running PR#37
  • 0.7.0
    • add Python 3.11 support and drop Python 3.7 support
    • pre-heat for PMSx003 sensors PR#35
    • open/close methods for granular SensorReader operation PR#33
    • fix HPMA115C0 header #26
  • 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
  • 0.6.0
    • project site
    • reorganize internal modules
      • pms.core: core functionality, such as Sensor and SensorReader
      • pms.sensors: sensor modules grouped by manufacturer
      • pms.extra: extra cli utilities, such as pms influxdb and influxdb mqtt
      • importing from pms.sensor is deprecated, import from pms.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"
    • 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 on pms mqtt and pms bridge
      • $MQTT_USER sets --mqtt-user on pms mqtt and pms bridge
      • $DB_USER sets --db-user on pms influxdb and pms bridge
      • $DB_PASS sets --db-pass on pms influxdb and pms bridge
  • 0.4.1
    • info about the sensor observations with pms info
    • fix MCU680 obs.pres typo #16
  • 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
  • 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.*
    • widen project scope from PM sensors to AQ sensors in general
    • support BME680 sensor (MCU680 module)
  • 0.1.*

Project details


Download files

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

Source Distribution

pypms-0.8.0.tar.gz (21.2 kB view details)

Uploaded Source

Built Distribution

pypms-0.8.0-py3-none-any.whl (36.9 kB view details)

Uploaded Python 3

File details

Details for the file pypms-0.8.0.tar.gz.

File metadata

  • Download URL: pypms-0.8.0.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pypms-0.8.0.tar.gz
Algorithm Hash digest
SHA256 3ea9f49558bc38d429d247ded39e5807f0b23d122cecc06d9317b84a834b2765
MD5 dfa64a6d67835641182ea5c7dcf10921
BLAKE2b-256 affcc86c6920b5565e23cf65a3861630b0893031cb1b21368e6ed8e4ad55e2de

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypms-0.8.0.tar.gz:

Publisher: publish.yml on avaldebe/PyPMS

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pypms-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: pypms-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 36.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pypms-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3bf128300d014d513e310e32f1d897cb3b2458db5d6f716467bc4c020be4a386
MD5 452535308cc8a807d8214085b6b713d2
BLAKE2b-256 e23c76eace4cb025f3bef428913c6e209c4de6fd89f6bc71ae6d8db89c63a3b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypms-0.8.0-py3-none-any.whl:

Publisher: publish.yml on avaldebe/PyPMS

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page