Skip to main content

Read BM280 through Python3 on raspberry pi

Project description

Quality Gate Status Maintainability Rating

Lines of Code Duplicated Lines (%)

Reliability Rating Security Rating Vulnerabilities

Upload Python Package Python package Library for Raspberry pi

This is the sample code for read light with BME280 sensor.

Table of Contents


> git clone
cd GreenPonik_BME280
pip3 install -r requirements.txt


> pip3 install greenponik-bme280
from GreenPonik_BME280.BME280 import BME280


Get light data
def read_bme280():


import time
from GreenPonik_BME280.BME280 import BME280

if __name__ == "__main__":
        bme = BME280()
        while True:
            data = bme.read_bme280()
    except Exception as e:
        print('An exception occurred: {}'.format(e))


Write by Mickael Lehoux, from GreenPonik, 2019

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for greenponik-bme280, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size greenponik_bme280-0.0.5-py3-none-any.whl (4.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size greenponik-bme280-0.0.5.tar.gz (163.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page