Done: Displaying the RPi temperature
|
22nd Oct, 2013, 03:17 AM
Post: #1
|
|||
|
|||
Displaying the RPi temperature
Displaying the RPi temperature
As part of my testing procedure, I wanted to know the temperature of the RPi through various phases. There was nothing out there that served my purpose, so I wrote my own script, that would do that. It's written in python and utilises curses to do the display. It's not the most elaborate and probably full of errors that qualified python developers know about. However it works, and does not consume vast amounts of CPU. It polls the temperature every 60s and displays the current temperature, high and low, changing colour as the temperature increases so red is bad and purple is very bad. (you can change it you wish) I give it to you as free, I do not guarantee it will work, it should not trash your RPi, it should not have sex with your daughter nor should it communicate with aliens - you have been warned. Use at your own risk as all the SW companies now say - I cannot be responsible for your daughters purity Grab it from RPi Temp save to /home/xbian/bin. Call it what you like but add .py at the end. Make it executable chmod +x filename.py Before it will work you need to install python-psutils so sudo apt-get install -y python-psutil If you like it and improve it, please post your improvements so we can all benefit. Tnx If you get the error: No such file or directory: Some <cntl> M have got into it - vi it and remove all <cntl> M and it will work It's only there for 30 days so get if you want it. Please read before you post How to post a log file If you liked my help, click on "Thanks" to show your appreciation.
|
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Displaying the RPi temperature - IriDium - 22nd Oct, 2013 03:17 AM
RE: Displaying the RPi temperature - Skywatch - 28th Oct, 2013, 08:39 PM
RE: Displaying the RPi temperature - IriDium - 29th Oct, 2013, 03:24 AM
RE: Displaying the RPi temperature - Skywatch - 29th Oct, 2013, 03:52 AM
RE: Displaying the RPi temperature - IriDium - 29th Oct, 2013, 04:21 AM
RE: Displaying the RPi temperature - Skywatch - 29th Oct, 2013, 04:58 AM
RE: Displaying the RPi temperature - mk01 - 31st Oct, 2013, 06:32 PM
RE: Displaying the RPi temperature - IriDium - 1st Nov, 2013, 05:24 AM
RE: Displaying the RPi temperature - IriDium - 21st Nov, 2013, 04:09 AM
RE: Displaying the RPi temperature - CurlyMo - 21st Nov, 2013, 06:25 AM
RE: Displaying the RPi temperature - mk01 - 21st Nov, 2013, 01:38 PM
|