Advertisement
Guest User

Untitled

a guest
May 5th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #!/bin/bash
  2. # Script: my-pi-temp.sh
  3. # Purpose: Display the ARM CPU and GPU temperature of Raspberry Pi 2/3
  4. # Author: Vivek Gite <www.cyberciti.biz> under GPL v2.x+
  5. # -------------------------------------------------------
  6. cpu=$(</sys/class/thermal/thermal_zone0/temp)
  7. echo "$(date) @ $(hostname)"
  8. echo "-------------------------------------------"
  9. echo "GPU => $(/opt/vc/bin/vcgencmd measure_temp)"
  10. echo "CPU => $((cpu/1000))'C"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement