e29796954a
Added iob-pi states for raspberry
6 lines
303 B
Bash
Executable File
6 lines
303 B
Bash
Executable File
#!/bin/bash
|
|
# Purpose: Display the ARM CPU and GPU temperature of Raspberry Pi 2/3
|
|
# -------------------------------------------------------
|
|
cpu=$(</sys/class/thermal/thermal_zone0/temp)
|
|
echo "$(date) | GPU => $(/opt/vc/bin/vcgencmd measure_temp) | CPU => $((cpu/1000))'C" >> /var/log/temperature.log
|