Platch,
Copy the following bash script into a file and call it whatever you
want. eg: dt.sh
You should really use an existing .digitemprc file as a reference.
#!/bin/bash
A=0x${1:0:2}
B=0x${1:2:2}
C=0x${1:4:2}
D=0x${1:6:2}
E=0x${1:8:2}
F=0x${1:10:2}
G=0x${1:12:2}
H=0x${1:14:2}
echo "TTY /dev/ttyUSB0
READ_TIME 1000
LOG_TYPE 1
LOG_FORMAT \"%b %d %H:%M:%S Sensor %s C: %.3C F: %.2F\"
CNT_FORMAT \"%b %d %H:%M:%S Sensor %s #%n %C\"
HUM_FORMAT \"%b %d %H:%M:%S Sensor %s C: %.3C F: %.2F H: %h%%\"
SENSORS 1
ROM 0 $A $B $C $D $E $F $G $H
" > /usr/bin/.dtUSB0
/usr/bin/digitemp_DS9097U -c /usr/bin/.dtUSB0 -t 0
-------- CUT HERE -------
Modify the formats and and anything else you need changed.
Make the file executable.
Then just run dt.sh 28907AAA03000029
I hope this helps you and anyone else that may have the same
requirements.