software_builds/someblocks/scripts/temp.sh

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))