The Raspberry Pi is something of a Swiss army knife, the enormous amount of applications it has been used is mind-boggling. It is simple math – make a certain technology wildly versatile, make it cheap and accessible for the masses and soon enough there will be a lot of good ideas in circulation. One of the many things you can check in the Raspberry Pi without the need of additional gear is to read the CPU temperature.
This website is hosted by a headless Raspberry Pi working away in the cold depths of my tool shed. This post will be about how to display sensor data on WordPress collected by the Raspberry Pi, such as the CPU temperature, in the “Google Charts” gauge as you can see below.
Running ‘vcgencmd measure_temp’ in my headless Raspberry Pi terminal (which also hosts this very website you’re currently reading) yields “temp=45.1°C” which is the current temperature of the processor. This is good since the shut-down limit is 85°C and the throttle-down from 1.4GHz to 1.2GHz (soft-limit) happens already at 60°C which is easily achieved in room-temperatures. Keeping up the performance is good no matter what you decide to do, for example running retropie or maybe hosting a web server even though I doubt that the CPU utilization would peak very often.
Work in progress…