2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

Fixing Filter values

git-svn-id: https://svn.fhem.de/fhem/trunk@917 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2011-06-23 11:35:02 +00:00
parent befb785573
commit f87d51dfce
5 changed files with 10 additions and 9 deletions

View File

@ -347,7 +347,8 @@ SVG_render($$$$$$$)
my $yh = $y+$h;
my $tl = $ltitle[$idx] ? $ltitle[$idx] : "";
my $dec = int(log($hmul*3)/log(10));
my $dec = int(log($hmul*3)/log(10)); # Some perl implementations do not have log()
# my $dec = 1;
$dec = 0 if($dec < 0);
my $js_helpers = "id=\"line_$idx\" decimals=\"$dec\" ".
"x_off=\"$fromsec\" x_min=\"$x\" x_mul=\"$tmul\" ".

View File

@ -25,8 +25,8 @@ set grid xtics y2tics
set y2label "Temperature in C"
set ylabel "Humidity (%)"
#FileLog 4:T:0:
#FileLog 6:H:0:
#FileLog 4:T\x3a:0:
#FileLog 6:H\x3a:0:
plot \
"< awk '/T:/ {print $1, $4}' <IN>"\

View File

@ -26,7 +26,7 @@ set grid xtics y2tics
set y2label "Temperature in C"
#FileLog 4:T:0:
#FileLog 4:T\x3a:0:
plot \
"< awk '/T:/ {print $1, $4}' <IN>"\

View File

@ -20,9 +20,9 @@ set yrange [0:]
# Computing Rain/h and Rain/d values by accumulating the changes.
#FileLog 4:IR:0:
#FileLog 10:IR:0:delta-h
#FileLog 10:IR:0:delta-d
#FileLog 4:IR\x3a:0:
#FileLog 10:IR\x3a:0:delta-h
#FileLog 10:IR\x3a:0:delta-d
plot "<IN>" using 1:4 axes x1y2 title 'Temperature' with lines lw 2,\
"<grep -v avg_ <IN> | perl -ane '\

View File

@ -16,8 +16,8 @@ set grid
set ylabel "Wind (km/h)"
set y2label "Humidity (%)"
#FileLog 8:IR:0:
#FileLog 6:IR:0:
#FileLog 8:IR\x3a:0:
#FileLog 6:IR\x3a:0:
plot "<IN>" using 1:8 axes x1y1 title 'Wind' with lines,\
"<IN>" using 1:6 axes x1y2 title 'Rel. Humidity (%)' with lines