Raspberrypi_temp_logger/temp

8 lines
273 B
Plaintext
Raw Permalink Normal View History

2024-02-27 00:16:47 +00:00
#!/bin/bash
cpu=$(</sys/class/thermal/thermal_zone0/temp)
echo "CPU Temp: $((cpu/1000)) c"
gpu=$(vcgencmd measure_temp | cut -c 6-7 -)
echo "GPU Temp: $gpu c"
ssd=` sudo smartctl -d sat,12 --all /dev/sda | grep Temperature_Celsius | cut -c 88-89 -`
echo "SSD Temp: $ssd c"