{ "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-bme280/badge/?version=latest\n :target: https://circuitpython.readthedocs.io/projects/bme280/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_BME280.svg?branch=master\n :target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_BME280\n :alt: Build Status\n\nI2C and SPI driver for the Bosch BME280 Temperature, Humidity, and Barometric Pressure sensor\n\nInstallation and Dependencies\n=============================\n\nThis driver depends on:\n\n* `Adafruit CircuitPython `_\n* `Bus Device `_\n\nPlease ensure that the driver and all dependencies are available on the\nCircuitPython filesystem. This can be most easily achieved by downloading and\ninstalling the latest\n`Adafruit library and driver bundle `_\non your device.\n\nInstalling from PyPI\n--------------------\n\nOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from\nPyPI `_. To install for current user:\n\n.. code-block:: shell\n\n pip3 install adafruit-circuitpython-bme280\n\nTo install system-wide (this may be required in some cases):\n\n.. code-block:: shell\n\n sudo pip3 install adafruit-circuitpython-bme280\n\nTo install in a virtual environment in your current project:\n\n.. code-block:: shell\n\n mkdir project-name && cd project-name\n python3 -m venv .env\n source .env/bin/activate\n pip3 install adafruit-circuitpython-bme280\n\nUsage Example\n=============\n\n.. code-block:: python\n\n import board\n import digitalio\n import busio\n import time\n import adafruit_bme280\n\n # Create library object using our Bus I2C port\n i2c = busio.I2C(board.SCL, board.SDA)\n bme280 = adafruit_bme280.Adafruit_BME280_I2C(i2c)\n\n # OR create library object using our Bus SPI port\n #spi = busio.SPI(board.SCK, board.MOSI, board.MISO)\n #bme_cs = digitalio.DigitalInOut(board.D10)\n #bme280 = adafruit_bme280.Adafruit_BME280_SPI(spi, bme_cs)\n\n # change this to match the location's pressure (hPa) at sea level\n bme280.sea_level_pressure = 1013.25\n\n while True:\n print(\"\\nTemperature: %0.1f C\" % bme280.temperature)\n print(\"Humidity: %0.1f %%\" % bme280.humidity)\n print(\"Pressure: %0.1f hPa\" % bme280.pressure)\n print(\"Altitude = %0.2f meters\" % bme280.altitude)\n time.sleep(2)\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 pip3 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 pip3 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_BME280", "keywords": "adafruit bme280 sensor hardware micropython circuitpython", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "adafruit-circuitpython-bme280", "package_url": "https://pypi.org/project/adafruit-circuitpython-bme280/", "platform": "", "project_url": "https://pypi.org/project/adafruit-circuitpython-bme280/", "project_urls": { "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_BME280" }, "release_url": "https://pypi.org/project/adafruit-circuitpython-bme280/2.3.2/", "requires_dist": null, "requires_python": "", "summary": "CircuitPython library for the Bosch BME280 temperature/humidity/pressure sensor.", "version": "2.3.2" }, "last_serial": 5838297, "releases": { "2.0.2": [ { "comment_text": "", "digests": { "md5": "d3f9ed4e8802e2f645d16534fe472ce6", "sha256": "70700d6d9462677b9ce04e77dcb0dccf11c5643e9e072aa243278370c0244b3d" }, "downloads": -1, "filename": "adafruit-circuitpython-bme280-2.0.2.tar.gz", "has_sig": false, "md5_digest": "d3f9ed4e8802e2f645d16534fe472ce6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20146, "upload_time": "2018-06-30T02:28:32", "url": "https://files.pythonhosted.org/packages/79/ec/e9286f54744d5926276f2f89c79e6576692f11d6103ea6cc54dea21612bd/adafruit-circuitpython-bme280-2.0.2.tar.gz" } ], "2.0.3": [ { "comment_text": "", "digests": { "md5": "feb8d1052ef8973cbe47d62c055bcac2", "sha256": "3aa84f7dec9f838ef77bd7f0e39bbcf591708415ed9bffe7691e3be90ffe041d" }, "downloads": -1, "filename": "adafruit-circuitpython-bme280-2.0.3.tar.gz", "has_sig": false, "md5_digest": "feb8d1052ef8973cbe47d62c055bcac2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20552, "upload_time": "2018-08-02T17:29:22", "url": "https://files.pythonhosted.org/packages/3a/3f/e2b71b70b02b2d241e120ca00a26f2a86bdef4bec0afb96aae2265588e70/adafruit-circuitpython-bme280-2.0.3.tar.gz" } ], "2.0.5": [ { "comment_text": "", "digests": { "md5": "21bc2f1225a0fea9955a2bc3e54e80b2", "sha256": "c5c55a34fb8c73455e581ee3bba2dcb38f7d76e0d509d647444823f8cd80ecd2" }, "downloads": -1, "filename": "adafruit-circuitpython-bme280-2.0.5.tar.gz", "has_sig": false, "md5_digest": "21bc2f1225a0fea9955a2bc3e54e80b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20547, "upload_time": "2018-08-02T18:03:42", "url": "https://files.pythonhosted.org/packages/e9/54/1e37559ebecee82dafba4dcf3feab3241e2b7bac1079a9cb5296ab4abaaa/adafruit-circuitpython-bme280-2.0.5.tar.gz" } ], "2.1.0": [ { "comment_text": "", "digests": { "md5": "f7c6f9245216d005a4639f08d854afa3", "sha256": "04d293e25c6b891b13043b9dc9806cbee151aaa61b35a40dc81747be01c0f32c" }, "downloads": -1, "filename": "adafruit-circuitpython-bme280-2.1.0.tar.gz", "has_sig": false, "md5_digest": "f7c6f9245216d005a4639f08d854afa3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20739, "upload_time": "2018-08-13T16:32:35", "url": "https://files.pythonhosted.org/packages/36/c2/26602fded6af949f0726a86a6504ea3b9c57e539db41a76db265377c3f1c/adafruit-circuitpython-bme280-2.1.0.tar.gz" } ], "2.2.0": [ { "comment_text": "", "digests": { "md5": "48dd2f8042fb22d3c7b89b7d07a52cfe", "sha256": "dc47a175117465a9559aed6982e765d9aedfa2d9e4d3de0b0fc0f196fc6ebf0d" }, "downloads": -1, "filename": "adafruit-circuitpython-bme280-2.2.0.tar.gz", "has_sig": false, "md5_digest": "48dd2f8042fb22d3c7b89b7d07a52cfe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20657, "upload_time": "2018-11-12T20:35:46", "url": "https://files.pythonhosted.org/packages/d0/20/ce24cd6c00afb7f88f861c36609a90bee1b3b0f26136376b9f81d39af222/adafruit-circuitpython-bme280-2.2.0.tar.gz" } ], "2.2.1": [ { "comment_text": "", "digests": { "md5": "6ed3cad3ae1094beef4f226c14bd284d", "sha256": "a5d0086faa9f503d42f399c98bbdbfa4e5e9641555176d8460b3a4d902b35b23" }, "downloads": -1, "filename": "adafruit-circuitpython-bme280-2.2.1.tar.gz", "has_sig": false, "md5_digest": "6ed3cad3ae1094beef4f226c14bd284d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20655, "upload_time": "2018-12-03T22:06:25", "url": "https://files.pythonhosted.org/packages/0e/c0/12f094e50b2fefbfdca90376bb3cc47af6d84aeec9903c1f4c1aea8f56e4/adafruit-circuitpython-bme280-2.2.1.tar.gz" } ], "2.2.2": [ { "comment_text": "", "digests": { "md5": "269e98e5342fb3fc88dd61a2abda686a", "sha256": "f1f6fb11c85fbf6d6141754d56a017d90c7bdc584a5f4c5a74b5563ea9383e46" }, "downloads": -1, "filename": "adafruit-circuitpython-bme280-2.2.2.tar.gz", "has_sig": false, "md5_digest": "269e98e5342fb3fc88dd61a2abda686a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20008, "upload_time": "2019-01-16T02:21:24", "url": "https://files.pythonhosted.org/packages/4a/8a/d10d8000e8f17d602e69c514dd3d1a8d38cbae90e66303206c00147a00fd/adafruit-circuitpython-bme280-2.2.2.tar.gz" } ], "2.3.0": [ { "comment_text": "", "digests": { "md5": "cdfd20413dc41f5df436617c436adaa9", "sha256": "bc069746321e804292f6ab78de0fbde75688a1f5c3e261d60e50dbc80a67c38d" }, "downloads": -1, "filename": "adafruit-circuitpython-bme280-2.3.0.tar.gz", "has_sig": false, "md5_digest": "cdfd20413dc41f5df436617c436adaa9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22172, "upload_time": "2019-03-13T05:50:41", "url": "https://files.pythonhosted.org/packages/1a/4e/7a5d621ec73be30681e805aa313a7b45c0b5f741bd70f26a29d62e893620/adafruit-circuitpython-bme280-2.3.0.tar.gz" } ], "2.3.1": [ { "comment_text": "", "digests": { "md5": "2607afe2b675733485d5da5e336e84e5", "sha256": "c49a1daca0619094455edfa9f7b9cc5a965fa145edd1672f59eb5b680565e961" }, "downloads": -1, "filename": "adafruit-circuitpython-bme280-2.3.1.tar.gz", "has_sig": false, "md5_digest": "2607afe2b675733485d5da5e336e84e5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22216, "upload_time": "2019-06-17T17:29:32", "url": "https://files.pythonhosted.org/packages/6f/f3/bd7d90cfc9a8cc3465cded10f9389464c86e63a9852a298338daef8a9cba/adafruit-circuitpython-bme280-2.3.1.tar.gz" } ], "2.3.2": [ { "comment_text": "", "digests": { "md5": "097ab301bdfe2b62bd74599e97e68688", "sha256": "c3aff4ad7694412dae863ac14926708d38af3f89bc1fb114dd278071986ed80a" }, "downloads": -1, "filename": "adafruit-circuitpython-bme280-2.3.2.tar.gz", "has_sig": false, "md5_digest": "097ab301bdfe2b62bd74599e97e68688", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22219, "upload_time": "2019-09-16T21:26:44", "url": "https://files.pythonhosted.org/packages/c2/48/ee2c3d6c9d6a40122acc669ad285c3b3add3bfdb97e9e9622da99b2d44ed/adafruit-circuitpython-bme280-2.3.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "097ab301bdfe2b62bd74599e97e68688", "sha256": "c3aff4ad7694412dae863ac14926708d38af3f89bc1fb114dd278071986ed80a" }, "downloads": -1, "filename": "adafruit-circuitpython-bme280-2.3.2.tar.gz", "has_sig": false, "md5_digest": "097ab301bdfe2b62bd74599e97e68688", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22219, "upload_time": "2019-09-16T21:26:44", "url": "https://files.pythonhosted.org/packages/c2/48/ee2c3d6c9d6a40122acc669ad285c3b3add3bfdb97e9e9622da99b2d44ed/adafruit-circuitpython-bme280-2.3.2.tar.gz" } ] }