{ "info": { "author": "Baozhu Zuo", "author_email": "zuobaozhu@gmail.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": "# Seeed DHT\n\nThis is a powerful sister version of our Grove - Temperature&Humidity Sensor Pro. It has more complete and accurate performance than the basic version. The detecting range of this sensor is 5% RH - 99% RH, and -40\u00b0C - 80\u00b0C. And its accuracy reaches up to 2% RH and 0.5\u00b0C. A professional choice for applications that have relatively strict requirements.\n\nThis code is for\n- [Grove - Temperature&Humidity Sensor Pro](https://www.seeedstudio.com/Grove-Temperature%26Humidity-Sensor-Pro%EF%BC%88AM2302%EF%BC%89-p-838.html)\n- [Grove - Temperature & Humidity Sensor (DHT11)](https://www.seeedstudio.com/Grove-Temperature-Humidity-Sensor-DHT1-p-745.html)\n\n\n# Dependencies\nThis driver depends on:\n- [***grove.py***](https://github.com/Seeed-Studio/grove.py)\n\nThis is easy to install with the following command.\n ```\ncurl -sL https://github.com/Seeed-Studio/grove.py/raw/master/install.sh | sudo bash -s -\n ```\n## Installing from PyPI\n\nOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from PyPI. To install for current user:\n```\npip3 install seeed-python-dht\n```\nTo install system-wide (this may be required in some cases):\n```\nsudo pip3 install seeed-python-dht\n```\nTo install in a virtual environment in your current project:\n```\nmkdir project-name && cd project-name\npython3 -m venv .env\nsource .env/bin/activate\npip3 install seeed-python-dht\n```\n\n## Usage Notes\n\nFirst, Check the corresponding gpio number of the board:\n```\npi@raspberrypi:~/Seeed_Python_DHT $ grove_gpio\nHat Name = 'Grove Base Hat RPi'\n could be one of below values in the pin column for GPIO function\n And connect the device to corresponding slot\n==============\n pin | slot\n==============\n 5 | D5 \n 12 | PWM \n 16 | D16 \n 18 | D18 \n 22 | D22 \n 24 | D24 \n 26 | D26 \n```\nNext, initialize the sersor object:\n```python\nimport seeed_dht\n# for DHT11 the type is '11', for DHT22 the type is '22'\nsensor = seeed_dht.DHT(\"11\", 12)\n```\n## Reading from the Sensor\nTo read from the sensor:\n```\nhumi, temp = sensor.read()\nprint('DHT{0}, humidity {1:.1f}%, temperature {2:.1f}*'.format(sensor.dht_type, humi, temp))\n```\n\n## Contributing\nIf you have any good suggestions or comments, you can send issues or PR us.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Seeed-Studio/Seeed_Python_DHT", "keywords": "seeed grove dht dht11 dht22", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "seeed-python-dht", "package_url": "https://pypi.org/project/seeed-python-dht/", "platform": "", "project_url": "https://pypi.org/project/seeed-python-dht/", "project_urls": { "Homepage": "https://github.com/Seeed-Studio/Seeed_Python_DHT" }, "release_url": "https://pypi.org/project/seeed-python-dht/0.0.2/", "requires_dist": null, "requires_python": "", "summary": "Python library for Grove - Temperature&Humidity Sensor Pro", "version": "0.0.2" }, "last_serial": 5653866, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "2e13cf12f72481ef3001689700d88e47", "sha256": "2ab59bcdb1ee60b53d55c8b1e57e833603bd3fe923e4fc93165dd4aa319bfc3d" }, "downloads": -1, "filename": "seeed-python-dht-0.0.2.tar.gz", "has_sig": false, "md5_digest": "2e13cf12f72481ef3001689700d88e47", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4039, "upload_time": "2019-08-09T06:35:13", "url": "https://files.pythonhosted.org/packages/52/5c/c439011dfd30ee4fdbf5e6d85c4734c0542ce51cae6fb99f0e4ca1a52618/seeed-python-dht-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2e13cf12f72481ef3001689700d88e47", "sha256": "2ab59bcdb1ee60b53d55c8b1e57e833603bd3fe923e4fc93165dd4aa319bfc3d" }, "downloads": -1, "filename": "seeed-python-dht-0.0.2.tar.gz", "has_sig": false, "md5_digest": "2e13cf12f72481ef3001689700d88e47", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4039, "upload_time": "2019-08-09T06:35:13", "url": "https://files.pythonhosted.org/packages/52/5c/c439011dfd30ee4fdbf5e6d85c4734c0542ce51cae6fb99f0e4ca1a52618/seeed-python-dht-0.0.2.tar.gz" } ] }