Note To Self

This is how you set up the digitemp device the next time the SSD breaks down and you’ve forgotten to back up the /etc directory:

[larsi@stories ~]$ cat /etc/udev/rules.d/20-digitemp.rules
ATTRS{idVendor}==”0403″, ATTRS{idProduct}==”6001″, MODE=”0666″, NAME=”digitemp”

It’s “ATTRS” now, not “ATTR”.  Or “SYSFS”.  Thanks a lot, udev people.  Changing the names to be used in the conf files all the time really helps.  A lot.  Thanks.

stories:~# digitemp_DS9097U -s /dev/digitemp -i -c /etc/digitemp.conf
DigiTemp v3.5.0 Copyright 1996-2007 by Brian C. Lane
GNU General Public License v2.0 –
Turning off all DS2409 Couplers
Searching the 1-Wire LAN
2815ECE002000053 : DS18B20 Temperature Sensor
ROM #0 : 2815ECE002000053
Wrote /etc/digitemp.conf

Now we have a conf file, so we can use the device:

[larsi@stories ~]$ digitemp_DS9097U -q -c /etc/digitemp.conf -a
Jun 28 13:55:11 Sensor 0 C: 23.81 F: 74.86

Couldn’t be simpler.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s