11 lines
		
	
	
		
			272 B
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			272 B
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
	
	
| cpu=$(</sys/class/thermal/thermal_zone0/temp)
 | |
| 
 | |
| vccmd=$(which vcgencmd)
 | |
| gpu=$(${vccmd} measure_temp)
 | |
| gpu=$(echo "${gpu}"| sed 's|temp\=||g')
 | |
| 
 | |
| echo "$(date) @ $(hostname)"
 | |
| echo "-------------------------------------------"
 | |
| echo "GPU => ${gpu}"
 | |
| echo "CPU => $((cpu/1000))'C"
 |