raspberry pi temperature monitoring
add to menu bar.
also one time reading from command line w/o gui widget.
vcgencmd measure_temp
--30--
vcgencmd measure_temp
https://github.com/hardkernel/EnergyMonitor
Need to install qt4 qwt dev and git
# sudo apt-get install qt4-default libqwt-dev
# git clone https://github.com/hardkernel/EnergyMonitor.git
# qmake-qt4
# make -j8
--30--
#!/usr/bin/env python
import tornado.ioloop
import tornado.web
import os
class MainHandler(tornado.web.RequestHandler):
def getCPUtemperature( self ):
res = os.popen('vcgencmd measure_temp').readline()
return(res.replace("temp=","").replace("'C\n",""))
def get(self):
self.write( "Temperature: %s" % ( self.getCPUtemperature() ) )
application = tornado.web.Application([
(r"/", MainHandler),
])
if __name__ == "__main__":
application.listen(8888)
tornado.ioloop.IOLoop.instance().start()
using RRD tool
http://lazydroid.com/2013/05/raspberry-pi-monitoring-cpu-temperature-with-rrdtool/
vcgencmd measure_tempMonitor loopwatch -n 1 vcgencmd measure_temp--30--