{ "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 SGP30\n\nThe SGP30 is a digital multi-pixel gas sensor designed for easy integration into air purifier, demand-controlled ventilation, and IoT applications. Sensirion\u2019s CMOSens\u00aetechnology offers a complete sensor system on a single chip featuring a digital I2C interface, a temperature controlled micro hotplate, and two preprocessed indoor air quality signals. As the first metal-oxide gas sensor featuring multiple sensing elements on one chip, the SGP30 provides more detailed information about the air quality.\n\n\nThis code is for\n- [Grove - VOC and eCO2 Gas Sensor (SGP30)](https://www.seeedstudio.com/Grove-VOC-and-eCO2-Gas-Sensor-SGP30-p-3071.html)\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-sgp30\n```\nTo install system-wide (this may be required in some cases):\n```\nsudo pip3 install seeed-python-sgp30\n```\n\n\n## Usage Notes\n\nFirst, Check the corresponding i2c number of the board:\n```\n(.env) pi@raspberrypi:~ $ ls /dev/i2c*\n/dev/i2c-1\n```\nNext, initialize the sersor object:\n```python\nimport seeed_sgp30\nfrom grove.i2c import Bus\nsgp30 = seeed_sgp30.grove_sgp30(Bus(1)) #The default on the raspberry pie is 1, so you can also use Bus()\n```\n## Reading from the Sensor\nTo read from the sensor:\n```python\ndata = sgp30.read_measurements()\nco2_eq_ppm, tvoc_ppb = data.data\nprint(\"\\r tVOC = {} ppb CO2eq = {} ppm \".format(\n tvoc_ppb, co2_eq_ppm))\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_SGP30", "keywords": "seeed grove sgp30 gas sensor eco2 tvoc i2c hardware", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "seeed-python-sgp30", "package_url": "https://pypi.org/project/seeed-python-sgp30/", "platform": "", "project_url": "https://pypi.org/project/seeed-python-sgp30/", "project_urls": { "Homepage": "https://github.com/Seeed-Studio/Seeed_Python_SGP30" }, "release_url": "https://pypi.org/project/seeed-python-sgp30/0.0.0/", "requires_dist": null, "requires_python": "", "summary": "Python library for the Grove-VOC and eCO2 Gas Sensor(SGP30) is an air quality detection sensor.", "version": "0.0.0" }, "last_serial": 5653796, "releases": { "0.0.0": [ { "comment_text": "", "digests": { "md5": "b27d98da4279fe0d0dc01c481288035f", "sha256": "639f99c486b05a294721e2c7819d9ffce60c9252e6032a3b4f55473f7dcdb4f8" }, "downloads": -1, "filename": "seeed-python-sgp30-0.0.0.tar.gz", "has_sig": false, "md5_digest": "b27d98da4279fe0d0dc01c481288035f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2892, "upload_time": "2019-08-09T06:26:21", "url": "https://files.pythonhosted.org/packages/ad/3d/485baac421b915a1ce9acf4ca97bfa485eaf74dda0322e3fb169f83d84a8/seeed-python-sgp30-0.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b27d98da4279fe0d0dc01c481288035f", "sha256": "639f99c486b05a294721e2c7819d9ffce60c9252e6032a3b4f55473f7dcdb4f8" }, "downloads": -1, "filename": "seeed-python-sgp30-0.0.0.tar.gz", "has_sig": false, "md5_digest": "b27d98da4279fe0d0dc01c481288035f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2892, "upload_time": "2019-08-09T06:26:21", "url": "https://files.pythonhosted.org/packages/ad/3d/485baac421b915a1ce9acf4ca97bfa485eaf74dda0322e3fb169f83d84a8/seeed-python-sgp30-0.0.0.tar.gz" } ] }