datalogd.plugins.libsensors_datasource module¶
- class datalogd.plugins.libsensors_datasource.LibSensorsDataSource(sinks=[], interval=1.0)[source]¶
Bases:
DataSourceProvide data about the running system’s hardware obtained using the
libsensorslibrary.libsensorsis present on most Linux systems, or can be installed from the distribution’s repositories (apt install libsensors5on Debian/Ubuntu,pacman -S lm_sensorson Arch etc.). The available sensors will depend on your hardware, Linux kernel, and version oflibsensors.Attempting to initialise this plugin on Windows operating systems will almost certianly fail.
- Parameters:
interval – How often to poll the sensors, in seconds.
- class datalogd.plugins.libsensors_datasource.LibSensorsFeatureType(value, names=None, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
Bases:
EnumA utility
Enumused to interpret integers representing sensor feature types.- BEEP_ENABLE = 24¶
- CURR = 5¶
- ENERGY = 4¶
- FAN = 1¶
- HUMIDITY = 6¶
- IN = 0¶
- INTRUSION = 17¶
- POWER = 3¶
- TEMP = 2¶
- UNKNOWN = 4294967295¶
- VID = 16¶
- property type¶
The name of the type of sensor reading.
- property units¶
The units associated with this sensor reading type.