Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cmur2/python-bme280
A python library for accessing the BME280 combined humidity and pressure sensor from Bosch
https://github.com/cmur2/python-bme280
bme280 bosch humidity i2c iot pressure python raspberrypi sensor temperature
Last synced: 25 days ago
JSON representation
A python library for accessing the BME280 combined humidity and pressure sensor from Bosch
- Host: GitHub
- URL: https://github.com/cmur2/python-bme280
- Owner: cmur2
- License: mit
- Created: 2016-05-30T19:42:55.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-05-12T11:34:54.000Z (over 1 year ago)
- Last Synced: 2023-05-12T12:29:10.719Z (over 1 year ago)
- Topics: bme280, bosch, humidity, i2c, iot, pressure, python, raspberrypi, sensor, temperature
- Language: Python
- Homepage: https://mycroba.se/mirror-redirect/python-bme280
- Size: 44.9 KB
- Stars: 9
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# python-bme280
![ci](https://github.com/cmur2/python-bme280/workflows/ci/badge.svg?branch=master)
A Python library for accessing the [BME280 combined humidity and pressure](https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BME280_DS001-11.pdf) from Bosch via `python-smbus` using the I2C interface.
Default settings are suitable for Raspberry Pi 2 and 3 and was successfully tested using a [breakout](https://github.com/watterott/BME280-Breakout).
I created this Python library in style of e.g. [python-veml6070](https://github.com/cmur2/python-veml6070) or [python-tsl2591](https://github.com/maxlklaxl/python-tsl2591) since I found only [python scripts](https://github.com/SWITCHSCIENCE/BME280) with limited functionality and minor bugs and the official driver from Bosch is only in C(++).
Although, it is heavily based on existing code from Bosch translated to Python and from [SWITCHSCIENCE](https://github.com/SWITCHSCIENCE/BME280).
## Usage
Consult the data sheet and see [demo.py](demo.py) for clues how to use this library.
Not all functions of the chip are supported since I focused on the *forced mode* but data readout and parameter setting should work in *normal mode*, too. Please send pull requests for improvements and bug fixes!
## Develop
Run `make help` to find out about the available development commands.
## License
Python files in this repository are released under the [MIT license](LICENSE) except those parts from other sources which are indicated where appropriate in the files.