nico a comment, pour eviter les mails d'ereur en attendant lm_sensors qui marche..
darcs-hash:20000928114636-92525-193b35296964bffbfb6c48a0163226e5d8bcddc7.gz
This commit is contained in:
parent
00f5843238
commit
b02d89129d
2 changed files with 9 additions and 3 deletions
6
temp-avg
6
temp-avg
|
@ -1,8 +1,10 @@
|
|||
#!/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 $(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°"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue