scripts/temp-avg
krempp b02d89129d nico a comment, pour eviter les mails d'ereur en attendant lm_sensors qui marche..
darcs-hash:20000928114636-92525-193b35296964bffbfb6c48a0163226e5d8bcddc7.gz
2000-09-28 13:46:36 +02:00

10 lines
342 B
Bash
Executable file

#!/bin/sh
# je pipe vers calculatrice pour enlever 30 °, ça donne plus de précision. Sam. (/1 fait truncate.)
#echo $(cat /proc/sys/dev/sensors/w83781d-i2c-0-2d/temp1 | tail -c 5 | head -c 2 )"/1-30"|bc
#echo $(cat /proc/sys/dev/sensors/w83781d-i2c-0-2d/temp2 | tail -c 5 | head -c 2 )"/1-30"|bc
echo 10
echo 12
echo
echo "Température-30°"