#!/bin/sh
#------------------------------------------------------------------------------
# OPT_EMBEDDED  /etc/rrdtool/surfstation.val                       __FLI4LVER__
# Creation:     2006-10-08 frankr
# Last Update:  $Id$
#
# rrdtool surfstation Datenerfassung
#------------------------------------------------------------------------------

[ -z "$RDTOOL_CONF_LOADED" ] && . /var/run/rrdtool.conf

local source=surfstation
eval local idx='$RRDTOOL_'$source'_ID'
eval local options='$RRDTOOL_'$idx'_OPTIONS_STRING'

for item in $options
do
    local db_file=$RRDTOOL_DB_PATH/$source/$item.rrd
    value="U"
    case "$item" in
    "temperature")
        value=`s_lm75`
        rrdtool update $db_file N:$value
        ;;
    esac
done
