Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
$ python
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sensors
>>> sensors.init()
>>> try:
... for chip in sensors.iter_detected_chips():
... print '%s at %s' % (chip, chip.adapter_name)
... for feature in chip:
... print ' %s: %.2f' % (feature.label, feature.get_value())
... finally:
... sensors.cleanup()
...
acpitz-virtual-0 at Virtual device
temp1: 27.80
temp2: 29.80
coretemp-isa-0000 at ISA adapter
Physical id 0: 16.00
Core 0: 12.00
Core 1: 15.00
nct6791-isa-0290 at ISA adapter
in0: 0.88
in1: 1.01
in2: 3.30
in3: 3.30
in4: 1.01
in5: 2.02
in6: 0.64
in7: 3.44
in8: 3.25
in9: 1.01
in10: 0.21
in11: 0.16
in12: 1.01
in13: 1.01
in14: 0.19
fan1: 0.00
fan2: 1016.00
fan3: 0.00
fan4: 0.00
fan5: 0.00
SYSTIN: 7.00
CPUTIN: 10.00
AUXTIN0: 45.00
AUXTIN1: 112.00
AUXTIN2: 110.00
AUXTIN3: 110.00
PECI Agent 0: 15.50
PCH_CHIP_CPU_MAX_TEMP: 0.00
PCH_CHIP_TEMP: 0.00
PCH_CPU_TEMP: 0.00
intrusion0: 1.00
intrusion1: 1.00
beep_enable: 0.00
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment