X-Git-Url: https://git.realraum.at/?p=svn42.git;a=blobdiff_plain;f=sensor_graph%2Frrdtool.sh;h=374686ab713ffcc16821fcbf437204210d744a28;hp=f18ae9fd552ec10f99b0b7567c1b89a5b9ad26c8;hb=a34e51d757fe52cb19de2937ae1b211894167524;hpb=514a0e3aa78b091b9a5ed6e8f1ca68d5cdad144a diff --git a/sensor_graph/rrdtool.sh b/sensor_graph/rrdtool.sh index f18ae9f..374686a 100644 --- a/sensor_graph/rrdtool.sh +++ b/sensor_graph/rrdtool.sh @@ -1,5 +1,6 @@ -rrdtool create sensordata.rrd --step 30 DS:temp:GAUGE:1800:-20:60 DS:light:GAUGE:300:0:1023 DS:movement:GAUGE:300:0:1 RRA:LAST:0.5:2:2048 -rrdtool update sensordata.rrd -t temp N:26.0 -rrdtool update sensordata.rrd -t light N:200 -rrdtool update sensordata.rrd -t movement N:0 - +rrdtool create sensorlight.rrd --step 30 DS:light:GAUGE:300:0:1023 RRA:LAST:0.5:2:2048 +rrdtool create sensortemp.rrd --step 30 DS:temp:GAUGE:1800:-20:60 RRA:LAST:0.5:2:2048 +rrdtool create sensormovement.rrd --step 30 DS:movement:ABSOLUTE:604800:0:U RRA:LAST:0.5:2:2048 +rrdtool update sensorlight.rrd -t temp N:26.0 +rrdtool update sensortemp.rrd -t light N:200 +rrdtool update sensormovement.rrd -t movement N:0