just show data, don't save anything
authorDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 26 Aug 2020 12:27:58 +0000 (14:27 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 26 Aug 2020 12:27:58 +0000 (14:27 +0200)
w1-ds18b20.sh

index 7c531f9..9b7a532 100755 (executable)
@@ -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