mirror of
https://github.com/anatolykopyl/Twitter-Bot.git
synced 2026-03-26 04:44:50 +00:00
5 lines
179 B
Python
5 lines
179 B
Python
def check_temp(): #return temp. yours Rpi
|
|
cmd = '/opt/vc/bin/vcgencmd measure_temp'
|
|
line = os.popen(cmd).readline().strip()
|
|
temp = line.split('=')[1].split("'")[0]
|
|
return temp |