From 500339eb62099e1feae87d2fa679dcb41ec6f40a Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Thu, 23 Jun 2011 11:35:02 +0000 Subject: [PATCH] Fixing Filter values git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@917 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- webfrontend/pgm2/98_SVG.pm | 3 ++- webfrontend/pgm2/hms.gplot | 4 ++-- webfrontend/pgm2/hms_t.gplot | 2 +- webfrontend/pgm2/ks300.gplot | 6 +++--- webfrontend/pgm2/ks300_2.gplot | 4 ++-- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/webfrontend/pgm2/98_SVG.pm b/webfrontend/pgm2/98_SVG.pm index 35b590f4e..68c7f6b8c 100755 --- a/webfrontend/pgm2/98_SVG.pm +++ b/webfrontend/pgm2/98_SVG.pm @@ -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\" ". diff --git a/webfrontend/pgm2/hms.gplot b/webfrontend/pgm2/hms.gplot index 92a49a4ce..863b7156c 100644 --- a/webfrontend/pgm2/hms.gplot +++ b/webfrontend/pgm2/hms.gplot @@ -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}' "\ diff --git a/webfrontend/pgm2/hms_t.gplot b/webfrontend/pgm2/hms_t.gplot index 62070d0c3..977c3d05a 100644 --- a/webfrontend/pgm2/hms_t.gplot +++ b/webfrontend/pgm2/hms_t.gplot @@ -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}' "\ diff --git a/webfrontend/pgm2/ks300.gplot b/webfrontend/pgm2/ks300.gplot index b1283faf2..53bca7cbb 100644 --- a/webfrontend/pgm2/ks300.gplot +++ b/webfrontend/pgm2/ks300.gplot @@ -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 "" using 1:4 axes x1y2 title 'Temperature' with lines lw 2,\ " | perl -ane '\ diff --git a/webfrontend/pgm2/ks300_2.gplot b/webfrontend/pgm2/ks300_2.gplot index d7ae65bf8..88895936e 100644 --- a/webfrontend/pgm2/ks300_2.gplot +++ b/webfrontend/pgm2/ks300_2.gplot @@ -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 "" using 1:8 axes x1y1 title 'Wind' with lines,\ "" using 1:6 axes x1y2 title 'Rel. Humidity (%)' with lines