From b9a32420441fa0e45ddbfa8b6693076b76c7535d Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Tue, 27 Jan 2015 20:12:24 +0000 Subject: [PATCH] 98_logProxy.pm: use logProxy_xy2Plot instead of logProxy_xy2Data, docu changes git-svn-id: https://svn.fhem.de/fhem/trunk@7746 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/98_logProxy.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/98_logProxy.pm b/fhem/FHEM/98_logProxy.pm index cf30ffe14..3aceba49a 100644 --- a/fhem/FHEM/98_logProxy.pm +++ b/fhem/FHEM/98_logProxy.pm @@ -638,7 +638,7 @@ logProxy_array2Data($$) } #create plot data from xy-array sub -logProxy_xy2Data($) +logProxy_xy2Plot($) { my ($array) = @_; my $ret = ";c 0\n"; @@ -1207,6 +1207,8 @@ Log 3, Dumper @a; function (3rd parameter) for a zoom factor dependent number of times. the current time is given in $sec. the step width can be given in an optional 4th parameter. either as a number or as an hash with the keys from the following list: hour,qday,day,week,month,year and the values representing the step with for the zoom level. +
  • logProxy_xy2Plot(\@xyArray) is a sample implementation of a function that will accept a ref to an array + of xy-cordinate pairs as the data to be plotted.
  • The perl expressions have access to $from and $to for the begining and end of the plot range and also to the SVG specials min, max, avg, cnt, sum, currval (last value) and currdate (last date) values of the individual curves already plotted are available as $data{<special-n>}.