rpiSht1x
This module reads Humidity and Temperature from a Sensirion SHT1x sensor. It has been tested both with an SHT11 and an SHT15.
It is meant to be used in a Raspberry Pi and depends on this module (http://pypi.python.org/pypi/RPi.GPIO/0.4.1a).
The module raspberry-gpio-python requires root privileges, therefore, to run this module you need to run your script as root.
This a Python/Raspberry Pi port of this library: https://github.com/practicalarduino/SHT1x
Example Usage:
from sht1x.Sht1x import Sht1x as SHT1x
dataPin = 11
clkPin = 7
sht1x = SHT1x(dataPin, clkPin, SHT1x.GPIO_BOARD)
temperature = sht1x.read_temperature_C()
humidity = sht1x.read_humidity()
dewPoint = sht1x.calculate_dew_point(temperature, humidity)
print("Temperature: {} Humidity: {} Dew Point: {}".format(temperature, humidity, dewPoint))
Release Notes
v1.2, 31/12/2012 – Added the possibility to define the GPIO mode (GPIO_BOARD or GPIO_BCM) in the constructor. This is to make sure that this library plays nicely with other libraries that might rely on a specific mode. If no mode is provided, the constructor will default to the GPIO_BOARD mode. Thanks to Daniël van Eeden for suggesting this improvement.
v1.1, 26/10/2012 – Added WaitingSht1x, dew point calculation and using v4 constants. WaitingSht1x makes sure that no more than a query per second is performed on the sensor. This is in order to prevent the sensor from heating and skewing the temperature readings.
v1.0, 7/10/2012 – Initial release.
Metadata
Release files for rpiSht1x 1.2
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 |
|---|---|---|---|---|
| rpiSht1x-1.2.tar.gz | 8.6 kB | Without provenance | Details for rpiSht1x-1.2.tar.gz |
Release files / rpiSht1x-1.2.tar.gz
| Download URL | rpiSht1x-1.2.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a52772105b20900e52ce1b4761aef1c6a2f76c2b83c9bb0e207838641db6677c
|
|
BLAKE2b-256 checksum How to use checksums |
6d800d3c426bb135b34789434b0568bb1433d2e0b2070e4d8579f6ca84489087
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for rpiSht1x 1.2
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.