Commit graph

16 commits

Author SHA1 Message Date
Tobias Witek
0f53567f31 [modules/sensors(2)] Better (?) CPU reading
Add support for ARM/PowerPC (BogoMIPS) and make sure that the module
doesn't throw errors when problems reading the CPU frequency occurs.

fixes #458
2019-10-20 10:08:37 +02:00
Tobias Witek
bc569a11af [modules/sensors] Fix regex
fixes #308
2018-11-13 18:23:53 +01:00
Tobias Witek
2f7931753e [modules/sensors] Add parameter "match_pattern" to find correct adapter
Instead of providing match_number, it is now possible to specify a
second pattern that matches directly *before* the "match" value.

fixes #308
2018-11-08 18:56:26 +01:00
Tobias Witek
c39e2077e3 [modules/sensors] Add support for JSON-formatted sensors output
sensors -j give JSON output, which is much easier to parse than
raw output.

Use this, together with the "path" parameter, to allow robust reading of
sensor values.

fixes #308
2018-11-07 16:46:49 +01:00
Tobias Witek
7af04b0556 [modules/sensors] Use thermal zone, if specified on commandline
fixes #298
2018-09-24 18:15:04 +02:00
soenke
9ef3da8b88 [modules/sensors] Prefer sensors command if available, solves #275 2018-07-30 18:25:37 +02:00
Frederic Junod
57204a215e Fix bad-whitespace errors found by pylint 2017-10-17 18:59:23 +02:00
ibrokemypie
b544393c63 modules/sensors: Try intel scaling current frequency
On intel pstate drivers only the normal frequency is written to /proc/cpuinfo, not accounting for scaling/turbo.
This should fix that, though it needs testing on other computers (AMD, intel without pstate) because I am not
certain that the file only exists on Intel pstate.
2017-09-29 12:16:32 +10:00
Tobias Witek
a312269240 [modules/sensors] Add fallback for temperature retrieval
If /sys/class/ data cannot be read, fall back to "sensors -u", by
popular demand :P

see #145
2017-07-22 11:44:56 +02:00
ibrokemypie
58298d5e30 [modules/sensors] Remove sensors dependency and read from device
was having some problems with the current implementation as i have multiple values with the same name in sensors -u.
this way it is unambiguous and *should* just work everywhere with no lm_sensors required, though some distros might move the pseudo file elsewhere, not sure, but thats why it is configurable.
testing would be great.
also, the file is simpler too.
2017-07-19 22:14:00 +10:00
Tobias Witek
215bfd23df [modules/sensors] Remove unused imports and minor reformatting 2017-06-15 07:48:25 +02:00
Justin Wheeler
e93e1120f7 Show CPU MHz in sensors output.
This may need some tweaking (specifically parameters settings) to show
at what speed your CPU is running when showing sensors output.
2017-06-12 22:19:30 -04:00
ibrokemypie
644c55292d
[modules/sensors] Linting
Un-import os, fix indentation
2017-06-05 12:56:39 +10:00
mike-work
b1ce9645ac Remove decimal places for sensors. 2017-04-20 23:18:11 +01:00
Tobias Witek
2052f58dde [modules/sensors] Minor cosmetic changes + screenshot
Cosmetic changes:
* replace all single ticks with double ticks
* add vim line

Added screenshot for sensors module.
2017-04-19 18:53:45 +02:00
mike-work
3d50024e5f Create sensors module. 2017-04-19 12:36:35 +01:00