software_builds/someblocks/scripts/temp.sh
2022-12-31 17:37:03 +01:00

7 lines
105 B
Bash
Executable File

#!/bin/sh
temp=`cat /sys/class/hwmon/hwmon5/temp1_input`
n=1000
printf "Coffee: %s°C" $(($temp / $n))