Skip to main content

Python driver and command line application to interact with SDS011 PM sensor from Nova.

Project description

Simple python driver for SDS011 PM sensor from Nova.

  • Free software: MIT license

Installation

pip install pysds011

You can also install the in-development version with:

pip install https://github.com/michelepagot/pysds011/archive/develop.zip

Usage

Package has a class interface

log = logging.getLogger(__name__)
ser = serial.Serial('/dev/ttyUSB0', 9600)
ser.open()
sd = driver.SDS011(ser, log)
sd.cmd_set_sleep(0)
sd.cmd_set_mode(sd.MODE_QUERY)
sd.cmd_firmware_ver()

Package is also provided with a reference cli application:

pysds011.exe --port COM42 version
>> 21.2.2223

Documentation

This internal package documentation is available at https://pysds011.readthedocs.io/ Some other interesting reading are: * SDS011 datasheet http://cl.ly/ekot * This project is inspired by https://gist.github.com/kadamski/92653913a53baf9dd1a8

Contributing

Have a look at CONTRIBUTING.rst or to the Development section in the documentation

Changelog

0.0.4 (2021-2-7)

  • add more commands to cli

  • Testing and documentation

0.0.3 (2021-1-8)

  • cli get subcommands and produce meaningful results

  • robustness about error handling

  • Testing and documentation

0.0.2 (2021-1-4)

  • Improved cli (first functional).

0.0.1 (2020-12-19)

  • First release on PyPI.

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

pysds011-0.0.4.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

pysds011-0.0.4-py2.py3-none-any.whl (10.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pysds011-0.0.4.tar.gz.

File metadata

  • Download URL: pysds011-0.0.4.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.1

File hashes

Hashes for pysds011-0.0.4.tar.gz
Algorithm Hash digest
SHA256 7f20da410e13028d2909a5ab561a5a641e1f1a33c13b9728a2df6021072f2cf2
MD5 8b344611df3d684b8460a10a735ab026
BLAKE2b-256 86db833b08fd00bfc7e803e9cda26667253dc6b9f83573b21882f8aac4f00f55

See more details on using hashes here.

File details

Details for the file pysds011-0.0.4-py2.py3-none-any.whl.

File metadata

  • Download URL: pysds011-0.0.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.1

File hashes

Hashes for pysds011-0.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7b7440972aff91cc0fcb0d26c572be991684e4d345d192f11952ecbbe786b6e7
MD5 b7e6845a05f93940f7ffdbe8b3c0e09d
BLAKE2b-256 b23ae178a38d540584e19736c418a3f05e94625957b9f25bf5abc38c91d96cc1

See more details on using hashes here.

Supported by

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