GreenPonik_SHT40.py Library for Raspberry pi
This is the sample code for read light with SHT40 sensor.
Table of Contents
Installation
> git clone https://github.com/GreenPonik/GreenPonik_SHT40.git
cd GreenPonik_SHT40
pip3 install -r requirements.txt
or
> pip3 install greenponik-sht40
from GreenPonik_SHT40.SHT40 import SHT40
Methods
"""
Get light data
"""
def read_sht40():
Example
import time
from GreenPonik_SHT40.SHT40 import SHT40
if __name__ == "__main__":
try:
sht = SHT40()
while True:
data = sht.read_sht40()
print("temperature: %.2f / humidity: %.2f" % (data[0], data[1]))
time.sleep(1)
except Exception as e:
print('An exception occurred: {}'.format(e))
Credits
Code by Mickael Lehoux, from GreenPonik, 2021
Metadata
Release files for greenponik-sht40 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| greenponik-sht40-0.0.1.tar.gz | 35.6 kB | Without provenance | Details for greenponik-sht40-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| greenponik_sht40-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for greenponik_sht40-0.0.1-py3-none-any.whl |
Total release size: 39.7 kB
Release files / greenponik-sht40-0.0.1.tar.gz
| Download URL | greenponik-sht40-0.0.1.tar.gz |
|---|---|
| Size | 35.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
691238f37e2e0f679e4628c88fad800d499016f299e7879d16cb35a9206c571b
|
|
BLAKE2b-256 checksum How to use checksums |
23f1cc059fffabd928c40d63a556b936b1092ccffd7fc2bd235492d1fb091e52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1
|
Release files / greenponik_sht40-0.0.1-py3-none-any.whl
| Download URL | greenponik_sht40-0.0.1-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2e914d9bb7a13244d2c4a7e38ff4f50d725ff1485f99a1dba545c993ff673655
|
|
BLAKE2b-256 checksum How to use checksums |
b52f80e315d196c0edd7f277b235b70a21d1447d41b38520eeeed6219cce40d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1
|
Security for greenponik-sht40 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.