datalogd.plugins.libsensors_datasource module¶
-
class
datalogd.plugins.libsensors_datasource.
LibSensorsDataSource
(sinks=[], interval=1.0)[source]¶ Bases:
datalogd.DataSource
Provide data about the running system’s hardware obtained using the
libsensors
library.libsensors
is present on most Linux systems, or can be installed from the distribution’s repositories (apt install libsensors5
on Debian/Ubuntu,pacman -S lm_sensors
on 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
[source]¶ Bases:
enum.Enum
A utility
Enum
used 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¶
-
type
¶ The name of the type of sensor reading.
-
units
¶ The units associated with this sensor reading type.
-