Metadata-Version: 2.1
Name: pysds011
Version: 0.0.3
Summary: Simple python driver for SDS011 PM sensor from Nova.
Home-page: https://github.com/michelepagot/pysds011
Author: Michele Pagot
Author-email: michele.pagot.dev@outlook.com
License: MIT
Project-URL: Documentation, https://pysds011.readthedocs.io/
Project-URL: Changelog, https://pysds011.readthedocs.io/en/latest/changelog.html
Project-URL: Issue Tracker, https://github.com/michelepagot/pysds011/issues
Keywords: sds011,dust,sensor
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: Unix
Classifier: Operating System :: POSIX
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Utilities
Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
Requires-Dist: click
Requires-Dist: click-log
Requires-Dist: pyserial

========
Overview
========


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/master.zip

Usage
=====
Package has a class interface

.. code-block:: python

    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


Development
===========



Changelog
=========

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.


