(12-25-2018, 07:39 AM)tuxd3v Wrote: You can find via SysFs the Temperature on this locations:I did not expect such a quick response, thank you.
Code:root@rockpro64:/# find /sys/class/thermal/thermal_zone{0,1}/ -name temp -exec ls {} \; -exec cat {} \;
/sys/class/thermal/thermal_zone0/temp
53888
/sys/class/thermal/thermal_zone1/temp
45000
I forgot to mention that, of course, I also found this command (in /etc/ats.conf) and used. I was not sure if he was right.
Code:
#!/bin/bash
TEMP1=`awk '{print substr($1,1,2)}' /sys/class/thermal/thermal_zone1/temp`
TEMP=`awk '{print substr($1,1,2)}' /sys/class/thermal/thermal_zone0/temp`
echo "
\033[0;35m+ \033[0;37mTemperatur \033[0;35m= \033[1;32mCPU $TEMP C GPU $TEMP1 C
"tput sgr0
output>
root@RockHomeServer:~# sh te.sh
+ Temperatur = CPU 39°C GPU 38°C
Test>
root@RockHomeServer:~# armbianmonitor -m
Stop monitoring using [ctrl]-[c]
Stop monitoring using [ctrl]-[c]
Time big.LITTLE load %cpu %sys %usr %nice %io %irq CPU C.St.
20:21:06: 408/ 408MHz 0.06 1% 0% 0% 0% 0% 0% 39.4°C 0/3
20:21:11: 408/ 408MHz 0.06 0% 0% 0% 0% 0% 0% 39.4°C 0/3^C
Perfect thank you
Ps: Waiting for the delivery from Aliexpress "KSD9700 40-NO" is coming soon!