[modules/cpu3] Add new CPU module
Based on cpu2 module, but use `sensors -j` and some json path walking to better parse CPU temp and fan speeds. The output of `sensors -u` can contain many duplicates of the same sensor name, but from different sensor device paths. Signed-off-by: SuperQ <superq@gmail.com>
This commit is contained in:
parent
7cda35c1df
commit
0b4ff04be5
3 changed files with 166 additions and 0 deletions
6
tests/modules/contrib/test_cpu3.py
Normal file
6
tests/modules/contrib/test_cpu3.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
import pytest
|
||||
|
||||
pytest.importorskip("psutil")
|
||||
|
||||
def test_load_module():
|
||||
__import__("modules.contrib.cpu3")
|
Loading…
Add table
Add a link
Reference in a new issue