This is a rather plain golang-based method of gathering data from common hardware sensors on Linux.
When it comes to temperature data on Linux, I expect there is a great deal of non-conformity, so go ahead and shoot me an email if you see any obvious mistakes on your hardware.
Part of my reason for writting this was a need for a more minimalist version of the current solution, lm-sensors, which perhaps a bit of a heavy-weight implementation.
Maybe one day it will be more fleshed out, but for now it is more of a simple tool. Feel free to fork it and use it for other projects if you find it useful.
The following is needed in order for this to function as intended:
- Linux kernel 4.4+
- golang
Older kernels could still give some kind of result, but I think most of the supported versions of popular Linux distros ought to be fine. Feel free to make an issue if this is incorrect.
Build this program as you would a simple POSIX program:
make
Run the program like so:
./sensorctl
Written by Robert Bisewski at Ibis Cybernetics. For more information, contact:
-
Website -> www.ibiscybernetics.com
-
Email -> contact@ibiscybernetics.com