{ "info": { "author": "Adafruit Industries", "author_email": "circuitpython@adafruit.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries", "Topic :: System :: Hardware" ], "description": "Introduction\n============\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-sht31d/badge/?version=latest\n :target: https://circuitpython.readthedocs.io/projects/sht31d/en/latest/\n :alt: Documentation Status\n\n.. image :: https://img.shields.io/discord/327254708534116352.svg\n :target: https://discord.gg/nBQh6qu\n :alt: Discord\n\n.. image:: https://travis-ci.com/adafruit/Adafruit_CircuitPython_SHT31D.svg?branch=master\n :target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_SHT31D\n :alt: Build Status\n\nCircuitPython module for the SHT31-D temperature and humidity sensor.\n\nDependencies\n=============\nThis driver depends on:\n\n* `Adafruit CircuitPython `_\n* `Bus Device `_\n\n\nPlease ensure all dependencies are available on the CircuitPython filesystem.\nThis is easily achieved by downloading\n`the Adafruit library and driver bundle `_.\n\nUsage Example\n=============\nYou must import the library to use it:\n\n.. code:: python\n\n import adafruit_sht31d\n\nThis driver takes an instantiated and active I2C object (from the `busio` or\nthe `bitbangio` library) as an argument to its constructor. The way to create\nan I2C object depends on the board you are using. For boards with labeled SCL\nand SDA pins, you can:\n\n.. code:: python\n\n from busio import I2C\n from board import SCL, SDA\n\n i2c = I2C(SCL, SDA)\n\nOnce you have created the I2C interface object, you can use it to instantiate\nthe sensor object:\n\n.. code:: python\n\n sensor = adafruit_sht31d.SHT31D(i2c)\n\n\nAnd then you can start measuring the temperature and humidity:\n\n.. code:: python\n\n print(sensor.temperature)\n print(sensor.relative_humidity)\n\nYou can instruct the sensor to periodically measure the temperature and\nhumidity, storing the result in its internal cache:\n\n.. code:: python\n\n sensor.mode = adafruit_sht31d.MODE_PERIODIC\n\nYou can adjust the frequency at which the sensor periodically gathers data to:\n0.5, 1, 2, 4 or 10 Hz. The following adjusts the frequency to 2 Hz:\n\n.. code:: python\n\n sensor.frequency = adafruit_sht31d.FREQUENCY_2\n\nThe sensor is capable of storing eight results. The sensor stores these\nresults in an internal FILO cache. Retrieving these results is simlilar to\ntaking a measurement. The sensor clears its cache once the stored data is read.\nThe sensor always returns eight data points. The list of results is backfilled\nwith the maximum output values of 130.0 \u00baC and 100.01831417975366 % RH:\n\n.. code:: python\n\n print(sensor.temperature)\n print(sensor.relative_humidity)\n\nThe sensor will continue to collect data at the set interval until it is\nreturned to single shot data acquisition mode:\n\n.. code:: python\n\n sensor.mode = adafruit_sht31d.MODE_SINGLE\n\nContributing\n============\n\nContributions are welcome! Please read our `Code of Conduct\n`_\nbefore contributing to help this project stay welcoming.\n\nBuilding locally\n================\n\nTo build this library locally you'll need to install the\n`circuitpython-build-tools `_ package.\n\n.. code-block:: shell\n\n python3 -m venv .env\n source .env/bin/activate\n pip install circuitpython-build-tools\n\nOnce installed, make sure you are in the virtual environment:\n\n.. code-block:: shell\n\n source .env/bin/activate\n\nThen run the build:\n\n.. code-block:: shell\n\n circuitpython-build-bundles --filename_prefix adafruit-circuitpython-sht31d --library_location .\n\nSphinx documentation\n-----------------------\n\nSphinx is used to build the documentation based on rST files and comments in the code. First,\ninstall dependencies (feel free to reuse the virtual environment from above):\n\n.. code-block:: shell\n\n python3 -m venv .env\n source .env/bin/activate\n pip install Sphinx sphinx-rtd-theme\n\nNow, once you have the virtual environment activated:\n\n.. code-block:: shell\n\n cd docs\n sphinx-build -E -W -b html . _build/html\n\nThis will output the documentation to ``docs/_build/html``. Open the index.html in your browser to\nview them. It will also (due to -W) error out on any warning like Travis will. This is a good way to\nlocally verify it will pass.", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/adafruit/Adafruit_CircuitPython_SHT31-D", "keywords": "adafruit sht31d sht31-d temperature humidity sensorhardware micropython circuitpython", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "adafruit-circuitpython-sht31d", "package_url": "https://pypi.org/project/adafruit-circuitpython-sht31d/", "platform": "", "project_url": "https://pypi.org/project/adafruit-circuitpython-sht31d/", "project_urls": { "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_SHT31-D" }, "release_url": "https://pypi.org/project/adafruit-circuitpython-sht31d/2.1.0/", "requires_dist": null, "requires_python": "", "summary": "CircuitPython library for SHT31-D temperature and humidity sensor.", "version": "2.1.0" }, "last_serial": 5838329, "releases": { "2.0.0": [ { "comment_text": "", "digests": { "md5": "ab9a2e04992c5f5916fa482f40013e62", "sha256": "0eef21e12595dd206171e4c11c31b7c854feb1bdec6ec600630cae315263f381" }, "downloads": -1, "filename": "adafruit-circuitpython-sht31d-2.0.0.tar.gz", "has_sig": false, "md5_digest": "ab9a2e04992c5f5916fa482f40013e62", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20292, "upload_time": "2018-08-07T20:11:56", "url": "https://files.pythonhosted.org/packages/62/63/af1b0d00f9486c6a9a3cb9fd7b86f013f28961f52188fb938729b2b2d9c4/adafruit-circuitpython-sht31d-2.0.0.tar.gz" } ], "2.0.1": [ { "comment_text": "", "digests": { "md5": "c0478a52b67e9b3fd3774f9f5ab50b96", "sha256": "62808830758a23b197a90f2564003cabca708d64745337386e3d338e3e7649d1" }, "downloads": -1, "filename": "adafruit-circuitpython-sht31d-2.0.1.tar.gz", "has_sig": false, "md5_digest": "c0478a52b67e9b3fd3774f9f5ab50b96", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20298, "upload_time": "2018-11-12T17:29:34", "url": "https://files.pythonhosted.org/packages/5d/31/8f624d44111d0c29f2022e48e29f96406390fd3d264414764056049b1d1d/adafruit-circuitpython-sht31d-2.0.1.tar.gz" } ], "2.0.2": [ { "comment_text": "", "digests": { "md5": "616f9e49bcb43c4cc0154f750813a45e", "sha256": "c6b7d993296f00a208050576c6c6df7a585353c6556aa4be03cb64bc65cf7711" }, "downloads": -1, "filename": "adafruit-circuitpython-sht31d-2.0.2.tar.gz", "has_sig": false, "md5_digest": "616f9e49bcb43c4cc0154f750813a45e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18841, "upload_time": "2019-01-16T02:13:23", "url": "https://files.pythonhosted.org/packages/99/c2/5fbdb43503d9633eb12c7ed76499ebb9d8acec524435951f5a85cc9b202a/adafruit-circuitpython-sht31d-2.0.2.tar.gz" } ], "2.1.0": [ { "comment_text": "", "digests": { "md5": "299190f5fab08c606f5f35a80eec6c2a", "sha256": "9dfd1b218194c259e1840e8970f6d50ff108620c7742c7a2cda3a529654bea60" }, "downloads": -1, "filename": "adafruit-circuitpython-sht31d-2.1.0.tar.gz", "has_sig": false, "md5_digest": "299190f5fab08c606f5f35a80eec6c2a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22557, "upload_time": "2019-09-16T21:41:08", "url": "https://files.pythonhosted.org/packages/27/a5/ecf70d4e9c113628f53709c2ede3b2b8c15656b4dfa8d0669bd37d48da32/adafruit-circuitpython-sht31d-2.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "299190f5fab08c606f5f35a80eec6c2a", "sha256": "9dfd1b218194c259e1840e8970f6d50ff108620c7742c7a2cda3a529654bea60" }, "downloads": -1, "filename": "adafruit-circuitpython-sht31d-2.1.0.tar.gz", "has_sig": false, "md5_digest": "299190f5fab08c606f5f35a80eec6c2a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22557, "upload_time": "2019-09-16T21:41:08", "url": "https://files.pythonhosted.org/packages/27/a5/ecf70d4e9c113628f53709c2ede3b2b8c15656b4dfa8d0669bd37d48da32/adafruit-circuitpython-sht31d-2.1.0.tar.gz" } ] }