A simple library to use with the DockerPi SensorHub (EP-0106)
Project description
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:
hub = SensorHub()
Then it's just a case of calling the method for the value that you're after:
temperature = hub.get_temperature()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for sensorhub-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cac1e2377329bf791adb13bf9cebf7bea7655349a0a14e2c684d6f5cace2262 |
|
MD5 | 9e5554b9303da359ad13a74633854397 |
|
BLAKE2b-256 | 1fb65ad2d15a87c05cf15fd3abe4f40d1433a5028de3ea0847c9dca0c6f2b058 |