Showing posts with label raspberry pi. Show all posts
Showing posts with label raspberry pi. Show all posts
Tuesday, July 19, 2022
Wednesday, April 14, 2021
Print Raspberry Pi CPU and GPU temperature
cpu1=$(</sys/class/thermal/thermal_zone0/temp)
cpu2=$(echo "scale=1;$cpu1/1000" | bc)
gpu1=$(/opt/vc/bin/vcgencmd measure_temp)
gpu2=$(echo $gpu1 | tr -dc '.,0-9')
echo "$(date +'%d.%m.%Y %H:%M:%S') @ $(hostname)"
echo "CPU: $cpu2"
echo "GPU: $gpu2"
Labels:
bash,
raspberry pi
Friday, February 2, 2018
Tuesday, May 31, 2016
Tuesday, May 3, 2016
Monday, May 2, 2016
Sunday, May 1, 2016
Subscribe to:
Posts (Atom)