Python 3 driver for the Bosch BME280 environmental sensor — reads temperature, pressure and humidity over I²C on a Raspberry Pi, and exposes them via a REST API with MQTT publishing for Home Assistant integration.
git clone https://github.com/guillaumedelre/bme280.git
cd bme280
pip install -r requirements.txt
cp .env.example .env # fill in your MQTT broker details
python sensor_api.py # API available at http://0.0.0.0:5000curl http://rpi.local:5000/bme280
curl http://rpi.local:5000/bme280/publish| Topic | File |
|---|---|
| Hardware wiring and I²C setup | docs/hardware.md |
| System architecture and data flow | docs/architecture.md |
| Installation and prerequisites | docs/installation.md |
| Environment variable reference | docs/configuration.md |
| CLI, HTTP API, cron, Docker usage | docs/usage.md |
| REST API endpoint reference | docs/api-reference.md |
| Home Assistant + MQTT integration | docs/home-assistant.md |
| Test suite, lint, CI pipeline | docs/development.md |
| Project structure and dependencies | docs/project-structure.md |
Bosch BME280 datasheet: BST-BME280-DS002