Add hwmon /sensors support (#278)

* Add hwmon support (mainly known from lm-sensors)

This commit adds initial support for linux hardware sensors, exported
through sysfs.

Details of the interface can be found at
https://www.kernel.org/doc/Documentation/hwmon/sysfs-interface

* Add end-to-end test with some real life data

* Cleanup comments on hwmon collector

* Drop raw sensor name from hwmon output

* Let the sensor label be "sensor"

* Add hwmon short description to README.
This commit is contained in:
Rene Treffer 2016-10-06 17:33:24 +02:00 committed by Brian Brazil
commit 081ecc5db0
99 changed files with 753 additions and 79 deletions

View file

@ -0,0 +1 @@
../../devices/platform/coretemp.0/hwmon/hwmon0

View file

@ -0,0 +1 @@
../../devices/platform/nct6775.656/hwmon/hwmon1

View file

@ -0,0 +1 @@
../../devices/platform/applesmc.768/hwmon/hwmon2

View file

@ -0,0 +1 @@
0

View file

@ -0,0 +1 @@
Left side

View file

@ -0,0 +1 @@
6156

View file

@ -0,0 +1 @@
2160

View file

@ -0,0 +1 @@
2160

View file

@ -0,0 +1 @@
1998

View file

@ -0,0 +1 @@
Right side

View file

@ -0,0 +1 @@
5700

View file

@ -0,0 +1 @@
2000

View file

@ -0,0 +1 @@
2000

View file

@ -0,0 +1 @@
../../../applesmc.768

View file

@ -0,0 +1 @@
applesmc

View file

@ -0,0 +1 @@
coretemp

View file

@ -0,0 +1 @@
Physical id 0

View file

@ -0,0 +1 @@
nct6779