Coding with Titans

so breaking things happens constantly, but never on purpose

HowTo: Temperature on Raspberry Pi

One of the useful scripts I use to regularly check the temperature on my Raspberry Pi farm is following:


echo "$(date) @ $(hostname)"
echo "---------------------------------------"
echo "CPU => $((cpu / 1000))'C"
echo "GPU => $(vcgencmd measure_temp | cut -d'=' -f 2)"

It will print the current temperature values of the CPU and GPU separately.