I was looking at the script, there is no reason to have a dependency on
vcgencmd to get the temperature.

Find these lines

Code:
--------------------
    
  temp = os.popen("vcgencmd measure_temp").readline()
  temp = temp.replace("temp=","")
  val = float(temp.replace("'C",""))
  
--------------------


and replace with

Code:
--------------------
    
  file = open('/sys/class/thermal/thermal_zone0/temp', 'r')
  temp = file.readline()
  file.close()
  val = float(temp) / 1000
  
--------------------



piCorePlayer a small player for the Raspberry Pi in RAM. 
Homepage: https://www.picoreplayer.org

Please 'donate'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=U7JHY5WYHCNRU&lc=GB&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)
if you like the piCorePlayer
------------------------------------------------------------------------
paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858
View this thread: http://forums.slimdevices.com/showthread.php?t=113575

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to