#!/bin/bash # Purpose: Display the ARM CPU and GPU temperature of Raspberry Pi 2/3 # ------------------------------------------------------- cpu=$( $(/opt/vc/bin/vcgencmd measure_temp) | CPU => $((cpu/1000))'C" >> /var/log/temperature.log