This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#This Script needs Python3. Original script from @funvill, | |
#edit (urllib and http/request support, also added gpu temperature) by @staubgeborener | |
#This edit allows to post raspberry pi stats on any php supported website. You could use this together with cron for example. | |
import os | |
import urllib.request, urllib.parse | |
# Return CPU temperature as a character string | |
def getCPUtemperature(): | |
res = os.popen('vcgencmd measure_temp').readline() |