diff --git a/README.md b/README.md index 1d51864..14e3462 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Jetson-Nano-temperature -Bash script for measuring CPU and GPU temperature. +Bash script for measuring temperature components. ### Download ```sh @@ -11,6 +11,9 @@ $ chmod 755 temp.sh ### Run ```sh $ ./temp.sh -CPU 37°C -GPU 35°C +AO-therm: 36.00°C +CPU-therm: 27.00°C +GPU-therm: 27.50°C +PLL-therm: 25.50°C +thermal-fan-est: 27.00°C ``` diff --git a/temp.sh b/temp.sh index 61eac96..9dd1bcc 100644 --- a/temp.sh +++ b/temp.sh @@ -1,10 +1,7 @@ #!/bin/bash +echo "$(cat /sys/devices/virtual/thermal/thermal_zone0/type): $(echo "scale=2; $(cat /sys/devices/virtual/thermal/thermal_zone0/temp)/1000" |bc)°C" +echo "$(cat /sys/devices/virtual/thermal/thermal_zone1/type): $(echo "scale=2; $(cat /sys/devices/virtual/thermal/thermal_zone1/temp)/1000" |bc)°C" +echo "$(cat /sys/devices/virtual/thermal/thermal_zone2/type): $(echo "scale=2; $(cat /sys/devices/virtual/thermal/thermal_zone2/temp)/1000" |bc)°C" +echo "$(cat /sys/devices/virtual/thermal/thermal_zone3/type): $(echo "scale=2; $(cat /sys/devices/virtual/thermal/thermal_zone3/temp)/1000" |bc)°C" +echo "$(cat /sys/devices/virtual/thermal/thermal_zone5/type): $(echo "scale=2; $(cat /sys/devices/virtual/thermal/thermal_zone5/temp)/1000" |bc)°C" -CPU_temp=$(cat /sys/class/thermal/thermal_zone1/temp) -GPU_temp=$(cat /sys/class/thermal/thermal_zone2/temp) - -cpu=$((CPU_temp/1000)) -gpu=$((GPU_temp/1000)) - -echo "CPU $cpu°C" -echo "GPU $gpu°C" \ No newline at end of file