Skip to content

guillaumedelre/bme280

Repository files navigation

🌡️ BME280 Environmental Sensor

CI Python Flask License

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.


Quick start

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:5000
curl http://rpi.local:5000/bme280
curl http://rpi.local:5000/bme280/publish

Documentation

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

About

python flask api to publish bme280 sensor data in mqtt for my private home assistant

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors