software_builds/someblocks/scripts/temp.sh

7 lines
105 B
Bash
Raw Permalink Normal View History

2022-12-31 17:37:03 +01:00
#!/bin/sh
temp=`cat /sys/class/hwmon/hwmon5/temp1_input`
n=1000
printf "Coffee: %s°C" $(($temp / $n))