{ "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-dht/badge/?version=latest\n :target: https://circuitpython.readthedocs.io/projects/dht/en/latest/\n :alt: Documentation Status\n\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_DHT.svg?branch=master\n :target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_DHT\n :alt: Build Status\n\nCircuitPython support for the DHT11 and DHT22 temperature and humidity devices.\n\nDependencies\n=============\nThis driver depends on:\n\n* `Adafruit CircuitPython `_\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==============\n\nHardware Set-up\n----------------\n\nThe DHT11 and DHT22 devices both need a pull-resistor on the data signal wire. \nThis resistor is in the range of 1k to 5k. Please check your device datasheet for the \nappropriate value.\n\nBasics\n-------\n\nOf course, you must import the library to use it:\n\n.. code:: python\n\n import adafruit_dht\n\nThe DHT type devices use single data wire, so import the board pin\n\n.. code:: python\n\n from board import \n\nNow, to initialize the DHT11 device:\n\n.. code:: python\n\n dht_device = adafruit_dht.DHT11()\n\nOR initialize the DHT22 device:\n\n.. code:: python\n\n dht_device = adafruit_dht.DHT22()\n\nRead temperature and humidity\n------------------------------\n\nNow get the temperature and humidity values\n\n.. code:: python\n\n temperature = dht_device.temperature\n humidity = dht_device.humidity\n\nThese properties may raise an exception if a problem occurs. You should use try/raise \nlogic and catch RuntimeError and then retry getting the values after 1/2 second.\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-veml6070 --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_DHT", "keywords": "adafruit dht hardware sensors temperature humidity micropython circuitpython", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "adafruit-circuitpython-dht", "package_url": "https://pypi.org/project/adafruit-circuitpython-dht/", "platform": "", "project_url": "https://pypi.org/project/adafruit-circuitpython-dht/", "project_urls": { "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_DHT" }, "release_url": "https://pypi.org/project/adafruit-circuitpython-dht/3.2.4/", "requires_dist": null, "requires_python": "", "summary": "CircuitPython support for DHT11 and DHT22 type temperature/humidity devices", "version": "3.2.4" }, "last_serial": 5817005, "releases": { "3.2.0": [ { "comment_text": "", "digests": { "md5": "1f061f62b13912b63b9e7db8364b75e1", "sha256": "7dcd6fdfafd6f25bb95d5596a399ab414e9dcc76b51e22276e6b688a5e6baff7" }, "downloads": -1, "filename": "adafruit-circuitpython-dht-3.2.0.tar.gz", "has_sig": false, "md5_digest": "1f061f62b13912b63b9e7db8364b75e1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20460, "upload_time": "2018-08-03T16:59:12", "url": "https://files.pythonhosted.org/packages/02/1c/78075fc1f62d1e297fde1018bd5b95cb10b43413a2fee87af796cc8705d3/adafruit-circuitpython-dht-3.2.0.tar.gz" } ], "3.2.1": [ { "comment_text": "", "digests": { "md5": "abfebc465be5576d087b76c6e531913c", "sha256": "e48c467fe98e4e5701c42cde269a64439fb43e43f736798391d74ffc3b3b69a0" }, "downloads": -1, "filename": "adafruit-circuitpython-dht-3.2.1.tar.gz", "has_sig": false, "md5_digest": "abfebc465be5576d087b76c6e531913c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21139, "upload_time": "2018-10-23T14:57:30", "url": "https://files.pythonhosted.org/packages/aa/36/5d700fdfc969a3a36963edda65571ae0fddd3978fc26491734add12dc1a6/adafruit-circuitpython-dht-3.2.1.tar.gz" } ], "3.2.2": [ { "comment_text": "", "digests": { "md5": "1f8acf1a0e8597ca2b8bd34e953851ef", "sha256": "7dcfcf6d40ce3865b2809bfaee3bfc9418846e7deeb2620893c77a02d5385825" }, "downloads": -1, "filename": "adafruit-circuitpython-dht-3.2.2.tar.gz", "has_sig": false, "md5_digest": "1f8acf1a0e8597ca2b8bd34e953851ef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21163, "upload_time": "2018-12-02T21:41:59", "url": "https://files.pythonhosted.org/packages/a8/d1/5420f822bcc5bdb5059d4ed5089d3e942348c70457c383da25d9cb9ad877/adafruit-circuitpython-dht-3.2.2.tar.gz" } ], "3.2.3": [ { "comment_text": "", "digests": { "md5": "91df3278cfbc15a93b4d71781cc4957b", "sha256": "44db93e07b001782c7ed950170a657d6f5cff065393db18b483a2446ce3a6666" }, "downloads": -1, "filename": "adafruit-circuitpython-dht-3.2.3.tar.gz", "has_sig": false, "md5_digest": "91df3278cfbc15a93b4d71781cc4957b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19680, "upload_time": "2019-01-16T02:38:03", "url": "https://files.pythonhosted.org/packages/64/ca/a44398c93acb4a514b44bd8036c8377472689866ff68854ca972ab548a4d/adafruit-circuitpython-dht-3.2.3.tar.gz" } ], "3.2.4": [ { "comment_text": "", "digests": { "md5": "d4a52ea94fc7ec57f7c4d7c580049ee9", "sha256": "84ebe55a1dc68ccccc39cc6370c4a990fb15d10946d14757c0c05edbb91b8532" }, "downloads": -1, "filename": "adafruit-circuitpython-dht-3.2.4.tar.gz", "has_sig": false, "md5_digest": "d4a52ea94fc7ec57f7c4d7c580049ee9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19678, "upload_time": "2019-09-11T21:22:07", "url": "https://files.pythonhosted.org/packages/a9/7a/7201645acf75c778bc34f6ccf0f882703b07b5d6540eba8d790af0b09cc2/adafruit-circuitpython-dht-3.2.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d4a52ea94fc7ec57f7c4d7c580049ee9", "sha256": "84ebe55a1dc68ccccc39cc6370c4a990fb15d10946d14757c0c05edbb91b8532" }, "downloads": -1, "filename": "adafruit-circuitpython-dht-3.2.4.tar.gz", "has_sig": false, "md5_digest": "d4a52ea94fc7ec57f7c4d7c580049ee9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19678, "upload_time": "2019-09-11T21:22:07", "url": "https://files.pythonhosted.org/packages/a9/7a/7201645acf75c778bc34f6ccf0f882703b07b5d6540eba8d790af0b09cc2/adafruit-circuitpython-dht-3.2.4.tar.gz" } ] }