I have a number of Raspberry Pi’s for different things. Some of those are quite heavy on the hardware usage, and although these are great little devices they do have their limits.
I am am by no means the best programmer, but this is a simple code I wrote to run a quick diagnostics on my Pi and print out the results into a file. Fairly simple. I have also got a temp limit in there to auto-shutdown prior to the overheat detection from the Pi. Although this might be a bit much, the log at least will tell me that it has shut down because of a temperature problem.
Here is an example of a log entry:
No issue to report
You can find the script and instructions at:
I expect someone could do a better job, but I am quite happy that this works. This is the first bit of code that I have published on github so thought I’d write a short about it.