diff --git a/fhem/FHEM/98_logProxy.pm b/fhem/FHEM/98_logProxy.pm index 8884f4753..af743cfbc 100644 --- a/fhem/FHEM/98_logProxy.pm +++ b/fhem/FHEM/98_logProxy.pm @@ -655,7 +655,25 @@ logProxy_xy2Plot($) return ($ret,$min,$max,$last); } +#create plot data from date-y-array +sub +logProxy_values2Plot($) +{ + my ($array) = @_; + my $ret = ";c 0\n"; + my $min = 999999; + my $max = -999999; + my $last; + + return ($ret,$min,$max,$last) if( !ref($array) eq "ARRAY" ); + + foreach my $point ( @{$array} ) { + $ret .= "$point->[0] $point->[1]\n"; + } + + return ($ret,$min,$max,$last); +} sub logProxy_Get($@) { @@ -1282,6 +1300,8 @@ logProxy_Get($@) the following list: hour,qday,day,week,month,year and the values representing the step with for the zoom level.