Raspberry Pi stuff
Print the temperature in Fahrenheit (looks like this CPU Temp: 102°F
)
1
2
3
4
5
6
function pi-temp {
/usr/bin/vcgencmd measure_temp |\
awk -F "[=']" '{print($2 * 1.8)+32}' |\
awk -F "." '{print $1}' |\
echo "CPU Temp: $(cat)°F"
}
🕰️ Check NTP first for all network weirdness. The lack of a real-time clock means that if NTP ever fails (or there’s been a power outage), the time drift can knock DNSSEC or other time-dependent services into failure pretty fast.
This post is licensed under CC BY 4.0 by the author.