2007-03-27 14:50:04 +00:00
|
|
|
#
|
|
|
|
# Display the Temperature and the humidity values of a KS300.
|
|
|
|
# FileLog definition:
|
|
|
|
# define FileLog ks300log ks300:.*H:.* /var/log/ks300-%Y-%U.log
|
|
|
|
#
|
2007-12-03 10:34:34 +00:00
|
|
|
set terminal png size 800,200 crop
|
2007-03-27 14:50:04 +00:00
|
|
|
set output '<OUT>.png'
|
|
|
|
set xdata time
|
|
|
|
set timefmt "%Y-%m-%d_%H:%M:%S"
|
|
|
|
set xlabel " "
|
|
|
|
set ytics nomirror
|
|
|
|
set y2tics
|
2007-10-03 16:35:37 +00:00
|
|
|
set title '<TL>'
|
2007-03-27 14:50:04 +00:00
|
|
|
set grid
|
|
|
|
|
|
|
|
set ylabel "Temperature (Celsius)"
|
2007-07-01 07:30:48 +00:00
|
|
|
set y2label "Rain (l/m2)"
|
2007-03-27 14:50:04 +00:00
|
|
|
plot "<IN>" using 1:4 axes x1y1 title 'Temperature' with lines,\
|
2007-07-01 07:30:48 +00:00
|
|
|
"<grep -v avg_ <IN> | perl -ane '@a = split(\"[_:]\", $F[0]); if(defined($lh) && $lh ne $a[1]) { printf(\"${ld}_$lh:30:00 %f\n\", $hv); $hv = 0; } if($lv) { $hv += ($F[9]-$lv); } $lh = $a[1]; $ld = $a[0]; $lv = $F[9]; END { printf(\"${ld}_$lh:30:00 %f\n\", $hv) }'" using 1:2 axes x1y2 title 'Rain/h' with histeps,\
|
|
|
|
"<grep -v avg_ <IN> | perl -ane '@a = split(\"[_]\", $F[0]); if(defined($ld) && $ld ne $a[0]) { printf(\"${ld}_12:00:00 %f\n\", $dv); $dv = 0; } if($lv) { $dv += ($F[9]-$lv); } $ld = $a[0]; $lv = $F[9]; END {printf(\"${ld}_12:00:00 %f\n\", $dv)}'" using 1:2 axes x1y2 title 'Rain/day' with histeps
|