tsld is a daemon which reads temperature data from a temperature logger using Dallas DS1820 sensors and a PIC12C509. The hardware was designed by James Cameron, described on James' site here:
tsld can log the output of the sensors to a directory (one file per day), to a flat file (rotated with logrotate) or to an RRD database. It can log to both a directory or file and to an RRD database at the same time.
tsld is licenced under the GNU General Public Licence (GPL).
The latest version is available in source form here:
tsld-0.4.tar.gz (GPG signature)
A source RPM is available here:
A binary RPM for Redhat 7.3 is available here:
Both RPMs are signed with my PGP key (available here or on a public keyserver).
Do one of the following:
rpmbuild -ba
/usr/src/redhat/SPECS/tsld.spec
and install
the binary rpm. Requires rrdtool
and
rrdtool-devel
packages, but otherwise
should work on any rpm-based platform.
rpmbuild
-ta tsld-0.4.tar.gz
and install the binary
rpm. Requires rrdtool
and
rrdtool-devel
packages, but otherwise
should work on any rpm-based platform.
tar -xzf tsld-0.4.tar.gz
cd tsld-0.4
./configure
make all install
Connect your temperature sensor to /dev/ttyS0
and
run:
tsld -l /var/spool/tsld -r /var/run/tsld.pid
If you're using a different serial port, e.g. /dev/ttyS1,
add -s /dev/ttyS1
to the command line. You
can also run tsld as a
different user or group with the -u
and
-g
switches. See the man page or README file
for more information.
NOTE: tsld
will refuse to run as root. You must use -u
and -g
if you start tsld automatically at system startup.
A brief introduction can be found in the README file is here. For further detail, see the man page (unformatted) in the source or binary distributions.