Linux Getting to the correct sensors for temperature monitoring - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52) +---- Thread: Linux Getting to the correct sensors for temperature monitoring (/showthread.php?tid=243409) |
Getting to the correct sensors for temperature monitoring - dcrdev - 2015-10-12 I have an AMD processor which only reports thermal margin through lm-sensors. I have to use the motherboard's onboard monitoring chip to get the correct values. I'd like to display these values in Kodi, but am having trouble putting together a command that will always report the correct values. My sensors output is this: Code: k10temp-pci-00c3 I'd like to get to the second temp1 reading. Can anyone help? RE: Getting to the correct sensors for temperature monitoring - ironic_monkey - 2015-10-12 not exactly proud, but it works. Code: sensorinput | tail -n 10 | grep ^temp1 | cut -d '.' -f1 | cut -d'+' -f2 'take the last then lines of the output, look for a line starting with temp1, then print all chars before a '.' (line is now temp1: +33) then print all chars behind the +'. RE: Getting to the correct sensors for temperature monitoring - dcrdev - 2015-10-12 Brilliant thank you. |