Skip to main content

SensorHub

This is a simple library for use with the DockerPi/52Pi SensorHub (EP-0106). You may still need to set up the board as documented on the 52pi wiki (configuring/enabling I2C).

This library allows you to read from each sensor individually. It does not require the external temperature sensor to be connected, however an exception will be thrown if you try to read from it while it is disconnected.

How to use it

Interacting with the SensorHub is easy. First create an instance of the SensorHub, which will open communication with it:

from sensorhub.hub import SensorHub
hub = SensorHub()

Then it's just a case of calling the method for the value that you're after:

temperature = hub.get_temperature()

Other available methods are:

hub.get_off_board_temperature()
hub.get_humidity()
hub.get_temperature()
hub.is_motion_detected()
hub.get_brightness()
hub.get_barometer_temperature()
hub.get_barometer_pressure()

See the docstrings for more information on return types and exceptions that may be raised.

Metadata

Release files for sensorhub 2.0.3

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

Source distribution (sdist)

Source distribution for sensorhub 2.0.3
File Size Uploaded Provenance Actions
sensorhub-2.0.3.tar.gz 5.3 kB Without provenance Details for sensorhub-2.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sensorhub 2.0.3
File Interpreter ABI Platform Actions
sensorhub-2.0.3-py3-none-any.whl Python 3 none any Details for sensorhub-2.0.3-py3-none-any.whl

Total release size: 9.9 kB

Release files / sensorhub-2.0.3.tar.gz

Download URL sensorhub-2.0.3.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
77495f533a194001a9fa4a240b39eca361d253cb3350ef737f700eec6486c65d
BLAKE2b-256 checksum
How to use checksums
f23de4134b2f539351cd2b2339bc47d41e65e984236f26af0261dfe1f101f9f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Release files / sensorhub-2.0.3-py3-none-any.whl

Download URL sensorhub-2.0.3-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c5e98c591580e68fbeb029a9ec2eaf8c8f3370d6edf6947f13fcb01d075b8c6
BLAKE2b-256 checksum
How to use checksums
0ea725bd28a53a712eff80f98b8622d58b9234355d86dc247fdb0d1a9bd06b4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Security for sensorhub 2.0.3

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.

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