@c there's a command -
/opt/vc/bin/vcgencmd measure_temp
That tells me the temp in Celsius. I put it into a python script that's lights up a traffic light thingy via the GPIO pins, and shuts down the Pi if the temp goes above 50 degrees. But I don't want it to come to that.