Skip to content

Instantly share code, notes, and snippets.

@gramian
Created March 28, 2017 18:35
Show Gist options
  • Save gramian/76a1806cdf76ce62a3f18147d31bc84d to your computer and use it in GitHub Desktop.
Save gramian/76a1806cdf76ce62a3f18147d31bc84d to your computer and use it in GitHub Desktop.
Read CPU temperature of Nanopi Neo
#!/bin/sh
echo $((`cat /sys/class/thermal/thermal_zone0/temp` / 1000))
@leiless
Copy link

leiless commented May 23, 2022

https://forum.armbian.com/topic/9657-get-cpu-temp/#comment-72575

HOWTO read CPU/GPU temperature of NnaoPi R4S

$ cat /sys/class/thermal/thermal_zone0/type
soc-thermal

$ cat /sys/class/thermal/thermal_zone0/temp
35000

$ cat /sys/class/thermal/thermal_zone1/type
gpu-thermal

$ cat /sys/class/thermal/thermal_zone1/temp
35000

$ echo $(($(cat /sys/class/thermal/thermal_zone1/temp) / 1000))
35

@Slavchu
Copy link

Slavchu commented Jul 1, 2023

NanoPi neo2 /sys/class/thermal/thermal_zone0/temp
That's everything I found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment