]> git.itanic.dy.fi Git - rrdd/commit
onewire_parser: Add support for temperature offsets
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Mon, 2 Jul 2012 18:55:24 +0000 (21:55 +0300)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Mon, 2 Jul 2012 18:55:24 +0000 (21:55 +0300)
commitf22a79730e71555081b8ead548ece8ba281cb9b7
tree50bf4d41fe027d39ed4fce40ffa62d9e8358e91c
parentae2d7ce78d5a511bee096cc1d66397129696ffb3
onewire_parser: Add support for temperature offsets

Some temperature sensors may have a significant systematic error
offset on their readings. This patch makes it possible to define an
offset value that is added to the raw value before the result is
stored in the rrd database.

From now on it is assumed that each onewire path never contains white
space. If there is a white space within the server path, it is
expected that each string that is separated with white space contains
an option that is used to control the readout of the values returned
or available from the server.

At the moment only one option is supported; temperature offset. The
option string must contain "offset=" following a decimal number. The
offset value is added to the number read from the server.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
onewire_parser.c