mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-15 22:26:04 +00:00
98_SVG.pm: Patch for DbLog+PlotEditor combination (Forum #132313)
git-svn-id: https://svn.fhem.de/fhem/trunk@27261 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7a0efe8fa5
commit
0bb6734905
@ -724,12 +724,15 @@ SVG_WriteGplot($)
|
||||
my $prf = "par_${i}_";
|
||||
my @v = map {$FW_webArgs{"$prf$_"}}
|
||||
grep {defined($FW_webArgs{"$prf$_"})} (0..9);
|
||||
my $r = @v > 1 ?
|
||||
join(":", map { $v[$_] =~ s/:/\\x3a/g if($_<$#v); $v[$_] } 0..$#v) :
|
||||
$v[0];
|
||||
|
||||
my $src = $FW_webArgs{"src_$i"};
|
||||
my $typ = $defs{$src}{TYPE};
|
||||
my $r = @v > 1 ?
|
||||
join(":", map { $v[$_] =~ s/:/\\x3a/g if($_<$#v && $typ ne "DbLog");
|
||||
$v[$_] } 0..$#v) :
|
||||
$v[0];
|
||||
push @rows, "#$src $r";
|
||||
|
||||
push @plot, "\"<IN>\" using 1:2 axes ".
|
||||
($FW_webArgs{"axes_$i"} eq "right" ? "x1y2" : "x1y1").
|
||||
($FW_webArgs{"title_$i"} eq "notitle" ? " notitle" :
|
||||
|
Loading…
x
Reference in New Issue
Block a user