{ "info": { "author": "Simon Albinsson", "author_email": "pipmon@zinob.se", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4" ], "description": "RPI_SGP30\n=========\n\nLibrary to read |eCO_2| and TVOC from the `SGP30 sensor `_. Based on the smbus2 i2c library for ease of use.\n\nIt should be compatible with both python 2 and 3 but is currently only tested under Python 2.7\n\nQuick usage-example:\n--------------------\n::\n\n from smbus2 import SMBusWrapper\n from sgp30 import Sgp30\n import time\n with SMBusWrapper(1) as bus:\n sgp=Sgp30(bus,baseline_filename=\"/tmp/mySGP30_baseline\") #things thing with the baselinefile is dumb and will be changed in the future\n print(\"resetting all i2c devices\")\n sgp.i2c_geral_call() #WARNING: Will reset any device on teh i2cbus that listens for general call\n print(sgp.read_features())\n print(sgp.read_serial())\n sgp.init_sgp()\n print(sgp.read_measurements())\n print(\"the SGP30 takes at least 15 seconds to warm up, 12 hours before the readigs become really stable\"\n \t for i in range(20):\n \t\t time.sleep(1)\n \t\t print(\".\",end=\"\")\n \t print()\n print(sgp.read_measurements())\n\nCurrent design considerations:\n------------------------------\nThe class strives to to be light-weight and portable. It is currently a bit to tightly bound to the smbus2 class. In most cases I try to ease of readability rather than purity or speed.\n\nFeatures that are known to be missing (listing in rough order of importance):\n-----------------------------------------------------------------------------\n* The handing of baseline values is not that great, it should probably be up to the end user to save and restore them as needed.\n* Write doc-strings for all or at least most methods.\n* reading raw-values.\n* A more \"driver like\" class that takes care of all chip identification, polling at regular intervals, restoring baseline and so on.\n* Run real hardware tests under Python3\n\nHardware notices:\n-----------------\nIf you have the Adafruit board with built in level shifters and voltage regulator it is should work if you just plug in `SDA to pin 3, SCL to pin 5, VCC to pin 17 and GND to pin 20 `_. You should then be able to find the SGP30 an address 0x58 using `i2cdetect -y 1`. If you get an error message you probably need to enable i2c in the kernel using `raspi-config and reboot `_\n\n\nFeel free to contact me with bugs, questions or issues.\n\n.. |eCO_2| replace:: eCO\\ :sub:`2`", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/zinob/RPI_SGP30", "keywords": "sgp30 i2c smbus smbus2", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "sgp30", "package_url": "https://pypi.org/project/sgp30/", "platform": "", "project_url": "https://pypi.org/project/sgp30/", "project_urls": { "Homepage": "https://github.com/zinob/RPI_SGP30" }, "release_url": "https://pypi.org/project/sgp30/0.1.6/", "requires_dist": null, "requires_python": "", "summary": "Library for reading data from the sensiron SGP30", "version": "0.1.6" }, "last_serial": 4538964, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "27ec24c6817b1991de2e379f47de0d4e", "sha256": "31ae89afb0fa45332bfec519ad84e358b3e96ab7e0469ca671d9e48e9d9ff988" }, "downloads": -1, "filename": "sgp30-0.1.0.tar.gz", "has_sig": false, "md5_digest": "27ec24c6817b1991de2e379f47de0d4e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5723, "upload_time": "2018-04-22T20:00:57", "url": "https://files.pythonhosted.org/packages/eb/ee/e34ed86f9613b65472012440ca02c822220f9310ca8f6383d4c18fd4a046/sgp30-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "1265e56b0912f7d941e9b8ac26c454e0", "sha256": "44b15bc63458c3796f4003990ec8a6573e168c3f404de07fc701f7c3136cebfe" }, "downloads": -1, "filename": "sgp30-0.1.1.tar.gz", "has_sig": false, "md5_digest": "1265e56b0912f7d941e9b8ac26c454e0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5741, "upload_time": "2018-04-22T20:16:40", "url": "https://files.pythonhosted.org/packages/29/51/942484e22b920a2171745ffc8906bf365bd134a74da8e9653e80baf81747/sgp30-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "37394a8d9f0d8d7a0209dcf7b3166ee7", "sha256": "23b3a018c02a6f705c81827cf1366ed8c5a437caefc25191f4f75bdc7be0d8a0" }, "downloads": -1, "filename": "sgp30-0.1.2.tar.gz", "has_sig": false, "md5_digest": "37394a8d9f0d8d7a0209dcf7b3166ee7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5887, "upload_time": "2018-04-22T20:27:20", "url": "https://files.pythonhosted.org/packages/3c/c1/3e9c462ebee2027db437e1f6e39a3a46ea49e9d453919d477afa1a9660c1/sgp30-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "fdcfb5f8a8fb887b9e181fd3f83fb48a", "sha256": "16942436caadc014ce65a16c3c1ec57825db5bb9198b702c742d5d578f6777e7" }, "downloads": -1, "filename": "sgp30-0.1.3.tar.gz", "has_sig": false, "md5_digest": "fdcfb5f8a8fb887b9e181fd3f83fb48a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5394, "upload_time": "2018-04-23T08:37:52", "url": "https://files.pythonhosted.org/packages/e0/f8/18143ee825c09463dc1b0ede508d60466e4ab39ee584d8bfffc89b2b5216/sgp30-0.1.3.tar.gz" } ], "0.1.3-a": [ { "comment_text": "", "digests": { "md5": "bdc0d44d1dbade840a1400abf4db5dfd", "sha256": "660f8119d938903d7daee4442dd4352d3d08f6682893261d54722cdbc9168c8d" }, "downloads": -1, "filename": "sgp30-0.1.3-a.tar.gz", "has_sig": false, "md5_digest": "bdc0d44d1dbade840a1400abf4db5dfd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5402, "upload_time": "2018-04-23T08:55:41", "url": "https://files.pythonhosted.org/packages/d6/8d/d0ed88fe3c80dc94825fa52cbc3e096332d9a34a6ebd0db35d5ea32684ce/sgp30-0.1.3-a.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "75726546a29e1f859e3183debe05362f", "sha256": "43b496308883be7d03e564828f5e0f967dba1571f28134770f59f3960d5c259c" }, "downloads": -1, "filename": "sgp30-0.1.4.tar.gz", "has_sig": false, "md5_digest": "75726546a29e1f859e3183debe05362f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5398, "upload_time": "2018-04-23T09:01:53", "url": "https://files.pythonhosted.org/packages/e9/e4/572922858c42bbe17094d98f22370be2836f207ec031546cf464710a42aa/sgp30-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "13345e6108a05bf04cd99e7e735a5b14", "sha256": "e035e9558477b2c9efcb755d4b84bf617e4513dc84c2165a7a66a3f246a5b1f6" }, "downloads": -1, "filename": "sgp30-0.1.5.tar.gz", "has_sig": false, "md5_digest": "13345e6108a05bf04cd99e7e735a5b14", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5757, "upload_time": "2018-04-23T20:58:28", "url": "https://files.pythonhosted.org/packages/c6/a1/091bc80b9a89dbb7140fb85eabedb8014338d46d880aa0d4e5297a6d57a9/sgp30-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "026b9ca694ae17a4a32d5584b371ed01", "sha256": "91bc4bface05839d2f6f81f1378a491bdde54de47f01733aa4645bb6da19dd53" }, "downloads": -1, "filename": "sgp30-0.1.6.tar.gz", "has_sig": false, "md5_digest": "026b9ca694ae17a4a32d5584b371ed01", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5681, "upload_time": "2018-11-28T14:55:27", "url": "https://files.pythonhosted.org/packages/7e/c3/a41fbb8db2ceda7ddbb58e664c4b10046f4618f0d43e8f8d4e910473bbcb/sgp30-0.1.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "026b9ca694ae17a4a32d5584b371ed01", "sha256": "91bc4bface05839d2f6f81f1378a491bdde54de47f01733aa4645bb6da19dd53" }, "downloads": -1, "filename": "sgp30-0.1.6.tar.gz", "has_sig": false, "md5_digest": "026b9ca694ae17a4a32d5584b371ed01", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5681, "upload_time": "2018-11-28T14:55:27", "url": "https://files.pythonhosted.org/packages/7e/c3/a41fbb8db2ceda7ddbb58e664c4b10046f4618f0d43e8f8d4e910473bbcb/sgp30-0.1.6.tar.gz" } ] }