Tutorial:How to Configure ATS Fan control
#13
(12-25-2018, 01:19 PM)Neo2018 Wrote:
(12-25-2018, 07:39 AM)tuxd3v Wrote: You can find via SysFs the Temperature on this locations:
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 did not expect such a quick response, thank you.
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
That's right? Or can do better? Can you do it with decimal? So> 39.4°C

Perfect thank you
Ps: Waiting for the delivery from Aliexpress "KSD9700 40-NO" is coming soon!

Its ok, you can also use decimal values with awk..

Code:
TEMP=`awk '{ print substr( $1, 1, 3 ) / 10 }' /sys/class/thermal/thermal_zone0/temp`
TEMP1=`awk '{ print substr( $1, 1, 3 ) / 10 }' /sys/class/thermal/thermal_zone1/temp`

You welcome.
Regards


Messages In This Thread
RE: Tutorial:How to Configure ATS Fan control - by tuxd3v - 12-25-2018, 02:01 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  SkiffOS server with Docker ,NAS, Home assistant, Jellyfin, Snikket XMPP (tutorial) GreyLinux 12 9,794 04-04-2022, 05:26 AM
Last Post: GreyLinux
  SimpNas server with docker - home assistant, radicale , jellyfin & esphome (tutorial) GreyLinux 0 4,385 01-17-2021, 11:33 AM
Last Post: GreyLinux
  Serial Connection Tutorial: FTDI 232RL hmuller 0 3,224 10-23-2020, 11:56 AM
Last Post: hmuller
Wink Tutorial[ Seagate Disks ]: Optimize Life Span/Power Managment tuxd3v 14 24,052 06-19-2019, 04:40 AM
Last Post: Neo2018
Thumbs Up Tutorial[ Seagate Disks ]: Install Seagate OpenSeaChest Utilities tuxd3v 41 75,773 04-08-2019, 10:10 AM
Last Post: Neo2018
  Tutorial[ Multimedia ] : Play DVD movies tuxd3v 0 2,727 02-26-2019, 07:21 PM
Last Post: tuxd3v
  Tutorial[ OpenCL ]: OpenCL 1.2 FULL_PROFILE Working tuxd3v 0 3,972 11-06-2018, 01:03 PM
Last Post: tuxd3v

Forum Jump:


Users browsing this thread: 1 Guest(s)