Skip to main content

Quality Gate Status Maintainability Rating

Lines of Code Duplicated Lines (%)

Reliability Rating Security Rating Vulnerabilities

Upload Python Package Python package

GreenPonik_BME280.py Library for Raspberry pi


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

Table of Contents

Installation

> git clone https://github.com/GreenPonik/GreenPonik_BME280.git
cd GreenPonik_BME280
pip3 install -r requirements.txt

or 

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

Methods

"""
Get light data
"""
def read_bme280():

Example

import time
from GreenPonik_BME280.BME280 import BME280

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

Credits

Write by Mickael Lehoux, from GreenPonik, 2019

Metadata

Release files for greenponik-bme280 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for greenponik-bme280 0.0.5
File Size Uploaded
greenponik-bme280-0.0.5.tar.gz 163.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for greenponik-bme280 0.0.5
File Interpreter ABI Platform
greenponik_bme280-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 167.8 kB

Release files / greenponik-bme280-0.0.5.tar.gz

Download URL greenponik-bme280-0.0.5.tar.gz
Size 163.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8f5c1905f3a530a971fc87cdaff55cfef2390721ca00cdc481284c20628b009d
BLAKE2b-256 checksum
How to use checksums
20073707fe6c8b71469abd698992cafe0593f53e1a318ddeef62f103f9e39268
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

Release files / greenponik_bme280-0.0.5-py3-none-any.whl

Download URL greenponik_bme280-0.0.5-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
27fa83d9bef523a8ede3741570d810d755a9fca58b2a28f2057f2f8f1fce4b2e
BLAKE2b-256 checksum
How to use checksums
f06b14c9ff4d692db6db804ad668756a1b3ba7c7d64725d61d8e95ebd799799d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page