From: Dobrica Pavlinusic Date: Wed, 26 Aug 2020 12:27:58 +0000 (+0200) Subject: just show data, don't save anything X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=9c2bcb0a4b098f7696054664f891cd5ace38623f;p=rpi-ds18b20 just show data, don't save anything --- diff --git a/w1-ds18b20.sh b/w1-ds18b20.sh index 7c531f9..9b7a532 100755 --- a/w1-ds18b20.sh +++ b/w1-ds18b20.sh @@ -6,7 +6,6 @@ ls /sys/bus/w1/devices/w1_bus_master*/*-*/w1_slave | while read path ; do temp=$( echo $temp | awk '{ printf "%.3f\n", $1 / 1000 }' ) id=$( echo $path | cut -d/ -f 7 ) name=$( grep "^$id" id2name.txt | cut -d' ' -f2 ) - echo -n "$id $name " - echo $temp | tee /dev/shm/ds18b20.$id + echo "$id $name $temp" fi done