{"id":22253954,"url":"https://github.com/mcauser/adafruit-pure-python-bme280","last_synced_at":"2026-01-06T04:46:28.429Z","repository":{"id":150620391,"uuid":"319336563","full_name":"mcauser/adafruit-pure-python-bme280","owner":"mcauser","description":"A pure python library for drive Adafruit BME280 - Temperature, Humidity \u0026 Barometic Pressure Sensor","archived":false,"fork":false,"pushed_at":"2020-12-07T13:58:43.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T12:33:39.972Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mcauser.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-07T13:58:31.000Z","updated_at":"2022-01-05T19:48:20.000Z","dependencies_parsed_at":"2023-05-06T09:33:10.180Z","dependency_job_id":null,"html_url":"https://github.com/mcauser/adafruit-pure-python-bme280","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mcauser/adafruit-pure-python-bme280","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcauser%2Fadafruit-pure-python-bme280","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcauser%2Fadafruit-pure-python-bme280/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcauser%2Fadafruit-pure-python-bme280/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcauser%2Fadafruit-pure-python-bme280/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcauser","download_url":"https://codeload.github.com/mcauser/adafruit-pure-python-bme280/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcauser%2Fadafruit-pure-python-bme280/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28221887,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2026-01-06T02:00:07.049Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-03T07:21:20.962Z","updated_at":"2026-01-06T04:46:28.399Z","avatar_url":"https://github.com/mcauser.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"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://github.com/adafruit/Adafruit_CircuitPython_BME280/workflows/Build%20CI/badge.svg\n    :target: https://github.com/adafruit/Adafruit_CircuitPython_BME280/actions/\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 \u003chttps://github.com/adafruit/circuitpython\u003e`_\n* `Bus Device \u003chttps://github.com/adafruit/Adafruit_CircuitPython_BusDevice\u003e`_\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 \u003chttps://github.com/adafruit/Adafruit_CircuitPython_Bundle\u003e`_\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 \u003chttps://pypi.org/project/adafruit-circuitpython-bme280/\u003e`_. 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 \u0026\u0026 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\u003chttps://github.com/adafruit/Adafruit_CircuitPython_BME280/blob/master/CODE_OF_CONDUCT.md\u003e`_\nbefore contributing to help this project stay welcoming.\n\nDocumentation\n=============\n\nFor information on building library documentation, please check out `this guide \u003chttps://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1\u003e`_.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcauser%2Fadafruit-pure-python-bme280","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcauser%2Fadafruit-pure-python-bme280","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcauser%2Fadafruit-pure-python-bme280/lists"}