Skip to main content

A simple library to use with the DockerPi SensorHub (EP-0106)

Project description


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:


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

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 sensorhub, version 1.0.3
Filename, size File type Python version Upload date Hashes
Filename, size sensorhub-1.0.3-py3-none-any.whl (4.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size sensorhub-1.0.3.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page