Sensor Support¶
Adding Hardware Support¶
Adding hardware support is relatively straightforward:
- Follow the instructions on installing for development (below).
- Add a new class under
sensors/
that implementsBaseSensor
and any other methods you require. See the existing sensor classes as examples. - Ensure full test coverage for the class.
- Add a new
rpymostat.sensors
entrypoint tosetup.py
that points to your new class. - Open a pull request for your changes.
rpymostat-sensor
uses Setuptools entrypoints setuptools entrypoints
for dynamic discovery of sensor classes. While it’s preferred that
new sensors be merged into this repository, it’s possible to implement them as
standalone packages as long as they have the required entrypoints.