Files
SaltStates/checkTemp.sh
T
Samuele-StackUser e29796954a Signed-off-by: Samuele-StackUser <ceo@steamware.net>
Added iob-pi states for raspberry
2020-06-03 18:52:31 +02:00

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