====== 1-Wire Software ====== [[http://www.digitemp.com/|DigiTemp v3.5.0]] by Brian C. Lane \\ {{:projects:1-wire:digitemp-3.6.0.tar.gz|Download}} - download sources wget http://www.digitemp.com/software/linux/digitemp-3.6.0.tar.gz - untar archive tar xzvf digitemp-3.6.0.tar.gz - change directory cd digitemp-3.6.0/ - compile source make ds9097 - copy binary cp ./digitemp_DS9097 /usr/local/bin/ - create softlink ln -s /usr/local/bin/digitemp_DS9097 /usr/local/bin/digitemp - search for 1-wire sensors (walk the tree) digitemp -w -s /dev/ttyS0 sample output: DigiTemp v3.5.0 Copyright 1996-2007 by Brian C. Lane GNU Public License v2.0 - http://www.digitemp.com Turning off all DS2409 Couplers .. Devices on the Main LAN 10444341020800A3 : DS1820/DS18S20/DS1920 Temperature Sensor 28F4E539040000FD : DS18B20 Temperature Sensor - write config file to .digitemprc digitemp -q -i -s /dev/ttyS0 sample output: 10444341020800A3 : DS1820/DS18S20/DS1920 Temperature Sensor 28F4E539040000FD : DS18B20 Temperature Sensor ROM #0 : 10444341020800A3 ROM #1 : 28F4E539040000FD - edit config file vi .digitemprc TTY /dev/ttyS0 READ_TIME 1000 FAIL_TIME 5 LOG_TYPE 1 #LOG_FORMAT "%b %d %H:%M:%S Sensor %s C: %.2C F: %.2F" LOG_FORMAT "%Y-%m-%d %H:%M:%S Sensor_%s (%R) %.2C" CNT_FORMAT "%b %d %H:%M:%S Sensor %s #%n %C" HUM_FORMAT "%b %d %H:%M:%S Sensor %s C: %.2C F: %.2F H: %h%%" - request temperature from sensors digitemp -q -a sample output: 2012-12-07 00:48:51 Sensor_0 (10444341020800A3) 20.31 2012-12-07 00:48:52 Sensor_1 (28F4E539040000FD) 20.94