Voor het Solis project heb ik een sensor facade ontwikkeld die de beheersbaarheid van verschillende sensoren bevordert.
Technische uitleg:
This library provides a facade for sensor data. It provides a way to attach, initialize, update and read the data. New sensors should inherit from the Sensor class. If the sensor needs periodic attention or the read out takes a long time, implement the update function. If the sensor is just a simple analog reader, implement the getData function. Each sensors is provided with a name so it can directly used for e.g. a MQTT topic. Sensors with multiple metrics should inherit from SensorSet with contains a set of sensors
Link naar de SensorFacade:
- Link to github: https://github.com/ThomasDevoogdt/SensorFacade.git
- Link to docs: http://sensorfacade.readthedocs.io